How to stop producing a metric defined with last_value
#228
Unanswered
colinsmetz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a question regarding the production of event-based metrics.
We use
Event.build
to define a few metrics usinglast_value
. Those metrics are later created with:telemetry.execute(event_name, measurements, metadata)
.Now we would like, at some point, to stop producing metrics to Prometheus for a given
event_name
andmetadata
. We already stop producing metrics with:telemetry.execute
but because of thelast_value
, it keeps producing to prometheus with the latest value.The only solutions we found are: restart the application (but it clears everything) and removing objects from ETS directly. None of these solutions are really satisfying. Is there a better approach that we have missed, or something wrong in the way we produce the metrics?
Beta Was this translation helpful? Give feedback.
All reactions