Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Grafana dashboard #70

Open
lapo-luchini opened this issue May 18, 2022 · 4 comments
Open

Add Grafana dashboard #70

lapo-luchini opened this issue May 18, 2022 · 4 comments

Comments

@lapo-luchini
Copy link

lapo-luchini commented May 18, 2022

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.

@michaelmcdonald
Copy link

@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
Copy link

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.

@liuxuzxx
Copy link

修改成:
label_values(ping_loss_percent, instance)

label_values(ping_loss_percent{instance="$instance"}, target)

@MaxiStarling56
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants