-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
No option to delete value related to specific set of tags in ETS table #46
Comments
That is expected behavior for Prometheus. If you're running into size issues that would be an indication that your tags have too much cardinality. |
Let's assume, that I have a system, that has many jobs running inside it. Every job has its lifetime and I want to have a tool, that will help me aggregate some metrics about these jobs. In this case, job |
Prometheus is simply not the right tool for the requirements you're describing. Prometheus creates a timeseries for every combination of metric * attributes * attribute values and those are stored in the prometheus server for the whatever the duration of the storage is set to. I think for the use case you're describing you would be better served with tracing where cardinality in attributes is not a concern and you can get insights on multiple operations by a common attribute+value, in your case a job id. https://github.com/open-telemetry/opentelemetry-erlang combined with Lightstep, Honeycomb, Zipkin, Grafana, etc would better fit your requirements. If you want more help or opinions you can get a lot of help in the #opentelemetry channel in the Elixir Slack. |
It's true that prometheus is storing everything, but it still has a retention time in the server configuration. So by default after 15 days the old time series will be removed. |
Hi @bryannaegele, what do you think about a suggestion from @hairyhum? |
I'm fine with that if someone wanted to submit a PR for an expiration setting but I am not personally adding features to this library at this time. |
There is no option, to delete an existing entry in ETS table. For example, if I have a
sum
metric with sometags
, there is no option to remove value related to a specific set of tags. Because of that, size of reports generated during scrapes can only grow, and there is no possibility to remove values, that are no longer needed from these reports.The text was updated successfully, but these errors were encountered: