So, it is necessary to delete the timeseries not only at prometheus db side but also at prometheus client exporter side otherwise they will be recreated. I am supposing the prometheus client exporter saved only the last value for each metric (gauges, counter or others..) until it was not updated with a new set value while, actually all the values previously exposed persist on the prometheus client. Right?
Il giorno mercoledì 8 aprile 2020 10:57:17 UTC+2, Brian Candler ha scritto: > > Whenever prometheus scrape an exporter, it automatically creates any > timeseries which don't exist (i.e. unique combination of metric name + > labels) > > Therefore if your exporter is continuing to expose those timeseries - > which you can easily check with a curl scrape - they will be recreated. > > Things like gauges and counters set in a prometheus client library will > normally persist unless you delete them. Otherwise: (a) they wouldn't work > when being scraped by multiple prometheus servers, and (b) they would not > be present when the next scrape comes along - which would result in the > timeseries going "stale". Remember that the prometheus client library does > not know how often it's going to get scraped, and by whom. > > -- 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/ec21cb5d-5507-4404-b486-c718743beefe%40googlegroups.com.

