Howdy, Stranger!

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


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop

In this Discussion

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.