gitlab-ci-pipelines-exporter: add support for redis configuration options#107
Open
jkruke wants to merge 1 commit into
Open
gitlab-ci-pipelines-exporter: add support for redis configuration options#107jkruke wants to merge 1 commit into
jkruke wants to merge 1 commit into
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds redis TTL configuration options to the sanitized configmap.
Otherwise, redis entries always expire after 1h (metrics, refs) and 168h (projects). When using webhooks this leads to frequent metric loss for pipelines that don't run every hour. Missing metrics lead to a broken/empty Grafana Dashboard.
See TTL configuration options in the gitlab-ci-pipelines-exporter:
https://github.com/mvisonneau/gitlab-ci-pipelines-exporter/blob/721b566a8176b61e35d43e57f522df350698df8a/pkg/config/config.go#L136-L138