Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion

Remove host from Grafana
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.

Remove host from Grafana

nfnnfn Veteran
edited October 2022 in Help

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

  • nfnnfn Veteran

    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 ExecStart

    https://prometheus.io/docs/prometheus/latest/storage/#compaction

    Thanked by 1tjn
Sign In or Register to comment.