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

fix: reduce Prometheus scrape_interval to work with Kong Prometheus plugin #674

Merged
merged 2 commits into from
Apr 16, 2020

Conversation

devadvocado
Copy link
Contributor

@devadvocado devadvocado commented Apr 11, 2020

Summary

Update the Prometheus scrape_interval to 10s to support the Kong Gateway Prometheus plugin. Scrape interval for the Kong gateway Prometheus proxy doesn't work well if the intervals are too far apart, so the easiest fix is to just lower the interval. Default Prometheus setting for the interval is 15s so no reason to have it at set to 1 minute to begin with.

@devadvocado devadvocado requested a review from a team April 11, 2020 01:33
@devadvocado devadvocado force-pushed the interval-change branch 2 times, most recently from 53a45c8 to 1d8d9e2 Compare April 11, 2020 03:50
@jakubdyszkiewicz
Copy link
Contributor

I need more context. Why does this change fix stuff?

@devadvocado
Copy link
Contributor Author

Updated the PR summary with explanation.

@jakubdyszkiewicz
Copy link
Contributor

I think 1m was the default value from prometheus helm chart.
I think 10s might be a bit too often for a fleet of Envoys, but I'm ok with this PR since this is not hardcoded but can be reconfigured after deployment.

Please add a changelog

@devadvocado devadvocado changed the title fix: change interval for gateway metrics fix: reduce Prometheus scrape_interval to work with Kong Prometheus plugin Apr 14, 2020
@jakubdyszkiewicz
Copy link
Contributor

Please rebase to master @devadvocado to fix the CI

@devadvocado
Copy link
Contributor Author

rebased onto master to resolve conflict on CHANGELOG file

@jakubdyszkiewicz jakubdyszkiewicz merged commit 896d961 into master Apr 16, 2020
@jakubdyszkiewicz jakubdyszkiewicz deleted the interval-change branch April 16, 2020 12:38
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.

None yet

2 participants