-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the promtail
and loki
optional components
#474
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
component/THREDDS
Features or components related to THREDDS
documentation
Improvements or additions to documentation
labels
Nov 7, 2024
E2E Test ResultsDACCS-iac Pipeline ResultsBuild URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/2873/Result ✅ SUCCESS BIRDHOUSE_DEPLOY_BRANCH : prometheus-log-parser-loki DACCS_IAC_BRANCH : master DACCS_CONFIGS_BRANCH : master PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master PAVICS_SDI_BRANCH : master DESTROY_INFRA_ON_EXIT : true PAVICS_HOST : https://host-140-216.rdext.crim.ca PAVICS-e2e-workflow-tests Pipeline ResultsTests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/1736/NOTEBOOK TEST RESULTS |
E2E Test ResultsDACCS-iac Pipeline ResultsBuild URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/2874/Result ✅ SUCCESS BIRDHOUSE_DEPLOY_BRANCH : prometheus-log-parser-loki DACCS_IAC_BRANCH : master DACCS_CONFIGS_BRANCH : master PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master PAVICS_SDI_BRANCH : master DESTROY_INFRA_ON_EXIT : true PAVICS_HOST : https://host-140-216.rdext.crim.ca PAVICS-e2e-workflow-tests Pipeline ResultsTests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/1737/NOTEBOOK TEST RESULTS |
mishaschwartz
added a commit
that referenced
this pull request
Nov 19, 2024
## Overview This component parses log files from other components and converts their logs to prometheus metrics that are then ingested by the monitoring Prometheus instance (the one created by the`components/monitoring` component). For more information on how this component reads log files and converts them to prometheus components see the [log-parser](https://github.com/DACCS-Climate/log-parser/) documentation. To configure this component: * set the `PROMETHEUS_LOG_PARSER_POLL_DELAY` variable to a number of seconds to set how often the log parser checks if new lines have been added to log files (default: 1) * set the `PROMETHEUS_LOG_PARSER_TAIL` variable to `"true"` to only parse new lines in log files. If unset, this will parse all existing lines in the log file as well (default: `"true"`) To view all metrics exported by the log parser: * Navigate to the `https://<BIRDHOUSE_FQDN>/prometheus/graph` search page * Put `{job="log_parser"}` in the search bar and click the "Execute" button Update the prometheus version to the current latest `v2.53.3`. This is required to support loading multiple prometheus scrape configuration files with the `scrape_config_files` configuration option. ## Changes **Non-breaking changes** - New component version prometheus:v2.53.3 **Breaking changes** - None ## Related Issue / Discussion - #444 ## Additional Information - implements parser given as an example here: #444 (comment) - this is an alternative to #474. See discussion in #444 to help decide which we should pick. ## CI Operations <!-- The test suite can be run using a different DACCS config with ``birdhouse_daccs_configs_branch: branch_name`` in the PR description. To globally skip the test suite regardless of the commit message use ``birdhouse_skip_ci`` set to ``true`` in the PR description. Using ``[<cmd>]`` (with the brackets) where ``<cmd> = skip ci`` in the commit message will override ``birdhouse_skip_ci`` from the PR description. Such commit command can be used to override the PR description behavior for a specific commit update. However, a commit message cannot 'force run' a PR which the description turns off the CI. To run the CI, the PR should instead be updated with a ``true`` value, and a running message can be posted in following PR comments to trigger tests once again. --> birdhouse_daccs_configs_branch: master birdhouse_skip_ci: false
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
component/THREDDS
Features or components related to THREDDS
documentation
Improvements or additions to documentation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Promtail and loki are components of the Grafana stack (see the monitoring component at
components/monitoring
) that parses and ships logs to Grafana through loki.It can also generate prometheus metrics from the logs that it parses that can be ingested by the monitoring Prometheus instance (the one created by the
components/monitoring
component).Promtail can be deployed separately from loki if you just want to generate prometheus metrics.
For instructions on how to configure these components and start generating metrics see the documentation in
optional-components/README.md
.Update the prometheus version to the current latest
v2.53.3
. This is required to support loading multiple prometheus scrape configuration files with thescrape_config_files
configuration option.Changes
Non-breaking changes
Breaking changes
None
Related Issue / Discussion
Additional Information
Links to other issues or sources.
implements parser given as an example here: 💡 [Feature] Log download stats from THREDDS server #444 (comment)
this is an alternative to Add the
prometheus-log-parser
optional component #473. See discussion in 💡 [Feature] Log download stats from THREDDS server #444 to help decide which we should pick.CI Operations
birdhouse_daccs_configs_branch: master
birdhouse_skip_ci: false