New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Remove host from Grafana
Hi
I'm using Grafana + Prometheus + Node Exporter with Node Exporter Full Dashboard and would like to remove an old host from Grafana Dashboard.
Whenever I delete a series, the data is removed from Prometheus but in the Grafana Dashboard, the host remains there.
These are the commands I use:
curl -s -X POST -g 'http://localhost:9090/api/v1/admin/tsdb/delete_series?match[]={instance="my.instance.tld:9100",job="job_name"}'
curl -s -X POST -g 'http://localhost:9090/api/v1/admin/tsdb/clean_tombstones'
How can I remove the host from Grafana Dashboard?
Thanks
Comments
if someone is interested, it looks like the only way to do this is to wait up to the retention period (15 days by default)
After removing the instance, I forced two hours and the host was purged from Prometheus.
If you need to configure retention to a value other than 15d, you'll need to set
--storage.tsdb.retention.time
in the system's service on ExecStarthttps://prometheus.io/docs/prometheus/latest/storage/#compaction