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

check retention policy of metrics in prometheus server #277

Open
KalmanMeth opened this issue Aug 2, 2022 · 2 comments
Open

check retention policy of metrics in prometheus server #277

KalmanMeth opened this issue Aug 2, 2022 · 2 comments

Comments

@KalmanMeth
Copy link
Collaborator

No description provided.

@KalmanMeth
Copy link
Collaborator Author

By default, Prometheus metrics are stored for N days (based on configuration, typically 7 or 15 [AWS]).
Can set retention period and size in config file by setting the storage retention options.
--storage.tsdb.retention.time=30d
--storage.tsdb.retention.size=10GB

@KalmanMeth
Copy link
Collaborator Author

In the client, any metrics we want to stop reporting must be explicitly deleted. In the old implementation of encode_prom there was a bug causing the data to never be cleaned up. This seems to be fixed in the more recent implementation. #266

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

No branches or pull requests

1 participant