ping_exporter icon indicating copy to clipboard operation
ping_exporter copied to clipboard

Add Grafana dashboard

Open lapo-luchini opened this issue 2 years ago • 4 comments

It would be nice to have an "official" ping_exporter Grafana dashboard on this GitHub.

In the meanwhile, this is my (partial) attempt: ping.zip

image

PS: this assumes that VictoriaMetrics is used, as it uses the sort_by_label function, you can simply remove it if you use plain old Prometheus.

lapo-luchini avatar May 18 '22 09:05 lapo-luchini

@lapo-luchini : Could you explain what you mean by remove it? Are you referencing the sort_by_label component? I'm a bit new to this level of Grafana configuration and any help would be appreciated!

michaelmcdonald avatar Aug 26 '22 19:08 michaelmcdonald

Scratch that; I got it! Needed to alter the dashboard to so the queries were:

max(ping_rtt_mean_seconds{instance="$instance",target=~"$target"}) by (target, ip_version, ip)

and

max(ping_loss_ratio{instance="$instance",target=~"$target"}) by (target, ip_version, ip)

respectively.

michaelmcdonald avatar Aug 26 '22 19:08 michaelmcdonald

修改成: label_values(ping_loss_percent, instance) 和 label_values(ping_loss_percent{instance="$instance"}, target)

liuxuzxx avatar Oct 19 '22 11:10 liuxuzxx

Hi, i've fixed a previously existing grafana dashboard, this is the link if anybody stumble uppon this issue. https://grafana.com/grafana/dashboards/19761-pingexporter/ Tested on the latest docker version, czerwonk/ping_exporter:latest

MaxiStarling56 avatar Oct 16 '23 08:10 MaxiStarling56