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

Dashboard for hostnames with IPv4 and IPv6 #90

Open
strayer opened this issue Feb 3, 2023 · 3 comments
Open

Dashboard for hostnames with IPv4 and IPv6 #90

strayer opened this issue Feb 3, 2023 · 3 comments

Comments

@strayer
Copy link

strayer commented Feb 3, 2023

Thanks for building this and providing a dashboard!

I'm trying to monitor both IPv4 and IPv6 pings to Hetzner datacenters:

---
targets:
- hosts:
  - fsn.icmp.hetzner.com
  - nbg.icmp.hetzner.com
  - hel.icmp.hetzner.com
  network: ip4
  protocol: icmp
- hosts:
  - fsn.icmp.hetzner.com
  - nbg.icmp.hetzner.com
  - hel.icmp.hetzner.com
  network: ip6
  protocol: icmp

This seems to work fine in general, but the dashboard included in this repository seems to mix up the hosts in the graphs:

grafik

While the latency and packet loss graph can be easily extended to have {{ip}} in their labels I'm not quite sure how this could be done with the Smoke Ping graph, as it sums up the buckets. The packet loss graph also has some issues with the override when changing the Count label.

I don't have much experience with more complex graphs in Grafana and Prometheus, so any guidance would be appreciated!

@SuperQ
Copy link
Owner

SuperQ commented Feb 4, 2023

Probably need to adjust the variable selection to include the IP in addition to the host.

@dadapapapa
Copy link

感谢您构建它并提供仪表板!

我正在尝试监控到 Hetzner 数据中心的 IPv4 和 IPv6 ping:

---
targets:
- hosts:
  - fsn.icmp.hetzner.com
  - nbg.icmp.hetzner.com
  - hel.icmp.hetzner.com
  network: ip4
  protocol: icmp
- hosts:
  - fsn.icmp.hetzner.com
  - nbg.icmp.hetzner.com
  - hel.icmp.hetzner.com
  network: ip6
  protocol: icmp

这似乎在一般情况下工作正常,但包含在这个存储库中的仪表板似乎混淆了图中的主机:

涂鸦

While the latency and packet loss graph can be easily extended to have {{ip}} in their labels I'm not quite sure how this could be done with the Smoke Ping graph, as it sums up the buckets. The packet loss graph also has some issues with the override when changing the Count label.

I don't have much experience with more complex graphs in Grafana and Prometheus, so any guidance would be appreciated!

Please ask the configuration file of Prometheus

@Nachtfalkeaw
Copy link

I changed the promQL query a little bit and added "host" and "ip" to use it in legend or description;

sum(rate(smokeping_response_duration_seconds_bucket{host=~"$target"}[1m])) by (le,ip,host)

If I now select two targets in Grafana dashboard I have both in the same smokeping window.
May this works the same if you have the ipv4 and ipv6 destination there.

However I am not sure but you have two "-hosts" blocks and both have the same targets and same spelling. I think the problem ist that smokeping_rpober can not make a difference between both. I checked this - both with IPv4 - but different packet sizes and from smokeping_perspective the two destinations were handled as the same.

As far as I understand you have to use - if you want to ping the same target several imes - one time IP and another time DNS or use different smokeping_prober instances, so start smokeping_prober two times and scrape both.

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