I use the python client for storing metrics for a user's online presence. For 
example when a user comes online I start counting seconds and then as soon as 
he goes offline ,I post the metric to grafana. Now after posting the online 
timespan I immediately need to update that user has gone offline so I set the 
metric value to 0.

The last update remains and the one value before it does not appear on grafana 
as prometheus metric show the last metric reading only (checked via /metrics)

# Steps to reproduce

# Example using a Gauge class in the client

- User 1 comes online for 20 seconds
- /metrics updated with 20seconds 
- Now set /metrics to 0 since user has gone offline.
- Earlier metric disappeared.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ccf799be-4c02-4e94-a1fc-7f172c76bbda%40googlegroups.com.

Reply via email to