On 26/09/2022 13:10, BHARATH KUMAR wrote:
*Query:* up{instance=~"$unreachbale_instance"} and up
This query is giving me some instances which were already removed from
promethues.yml
That's expected.
The jobs in prometheus.yaml and the targets referenced are just what
Prometheus should scrape "now". You can add and remove targets whenever
you want, which will change what new data is collected. However it has
nothing to do with the ongoing storage of data within the timeseries
database. The main configuration for local storage is the number of days
(or total storage) values, which default to storing 14 days of data. So
by default if you stop scraping something today it would continue to
exist (with all previous metrics) for another two weeks. Note also that
any remote read system could also continue to return data depending on
how that external system was configured.
If you have something stored in the local Prometheus store (rather than
something you are using remote read with) and don't want to wait until
it expires (14 days or whatever you configured) you can use the deletion
API.
--
Stuart Clark
--
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/042d05bd-173d-8af9-b44d-fe8c53df0547%40Jahingo.com.