ping_exporter
ping_exporter copied to clipboard
Add Grafana dashboard
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

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 : 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!
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.
修改成: label_values(ping_loss_percent, instance) 和 label_values(ping_loss_percent{instance="$instance"}, target)
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