Skip to content
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

adjust default value of credhub_alerts.scrape_too_old.threshold #415

Merged
merged 1 commit into from
Apr 1, 2021
Merged

adjust default value of credhub_alerts.scrape_too_old.threshold #415

merged 1 commit into from
Apr 1, 2021

Conversation

schemmeltobi
Copy link

The currently used version of the credhub_exporter uses 6h as the default
scraping interval [1,2]. This commit adjusts the default value of
scrape_too_old for credhub_alerts to 6h, in order to not throw any
alerts for a default deployment.

[1] https://github.com/orange-cloudfoundry/credhub_exporter/blob/v0.2.2/README.md#flags
[2] https://github.com/orange-cloudfoundry/credhub_exporter/blob/v0.2.2/credhub_exporter.go#L65

The currently used version of the credhub_exporter uses 6h as the default
scraping interval [1,2]. This commit adjusts the default value of
scrape_too_old for credhub_alerts to 6h, in order to not throw any
alerts for a default deployment.

[1] https://github.com/orange-cloudfoundry/credhub_exporter/blob/v0.2.2/README.md#flags
[2] https://github.com/orange-cloudfoundry/credhub_exporter/blob/v0.2.2/credhub_exporter.go#L65
@frodenas
Copy link
Contributor

@psycofdj Do you mind taking a look at this PR please?

@psycofdj
Copy link
Contributor

psycofdj commented Apr 1, 2021

This is a 100% legitimate fix. On my production instances we also have set 21600 (6h) with an ops-file.

I've introduced this inconsistency in PR #385 when I changed the scrapping strategy (oupsy)

@frodenas frodenas merged commit 9cccf94 into cloudfoundry:master Apr 1, 2021
@frodenas
Copy link
Contributor

frodenas commented Apr 1, 2021

Thanks @psycofdj for reviewing it! Thanks @schemmeltobi for the fix!

@schemmeltobi schemmeltobi deleted the fix/adjust-default-time-of-scrape-too-old-alert-threshold branch September 21, 2021 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants