From c7d21dd3efe7e84b2c518266c1c2a38181dd4248 Mon Sep 17 00:00:00 2001 From: "Marcelo E. Magallon" Date: Thu, 9 Jul 2020 15:51:31 -0600 Subject: [PATCH] Use probe_dns_duration_seconds This PR: https://github.com/grafana/synthetic-monitoring-agent/pull/54 uses an updated version of blackbox_exporter that exposes a metric called "probe_dns_duration_seconds", which is the time it takes for DNS check to complete from connection to getting back the RR from the DNS server. The metric has a label "phase" with three different values for each phase of the query, just like probe_http_duration_seconds. Signed-off-by: Marcelo E. Magallon --- src/dashboards/sm-dns.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dashboards/sm-dns.json b/src/dashboards/sm-dns.json index a80ac736c..653032d7c 100644 --- a/src/dashboards/sm-dns.json +++ b/src/dashboards/sm-dns.json @@ -78,7 +78,7 @@ "gnetId": null, "graphTooltip": 0, "id": null, - "iteration": 1591627233669, + "iteration": 1594330906000, "links": [], "panels": [ { @@ -285,7 +285,7 @@ "pluginVersion": "7.0.3", "targets": [ { - "expr": "sum(rate(probe_dns_lookup_time_seconds_sum{probe=~\"$probe\", instance=\"$instance\", job=\"$job\"}[$__range])) / sum(rate(probe_dns_lookup_time_seconds_count{probe=~\"$probe\", instance=\"$instance\", job=\"$job\"}[$__range]))", + "expr": "sum(rate(probe_dns_duration_seconds_sum{probe=~\"$probe\", instance=\"$instance\", job=\"$job\"}[$__range])) / sum(rate(probe_dns_duration_seconds_count{probe=~\"$probe\", instance=\"$instance\", job=\"$job\"}[$__range]))", "hide": false, "instant": true, "interval": "", @@ -626,7 +626,7 @@ "steppedLine": false, "targets": [ { - "expr": "avg(probe_dns_lookup_time_seconds{probe=~\"$probe\", instance=\"$instance\", job=\"$job\"} * on (instance, job,probe,config_version) group_left probe_success{probe=~\"$probe\",instance=\"$instance\", job=\"$job\"} > 0) by (probe)", + "expr": "avg(probe_dns_duration_seconds{probe=~\"$probe\", instance=\"$instance\", job=\"$job\"} * on (instance, job,probe,config_version) group_left probe_success{probe=~\"$probe\",instance=\"$instance\", job=\"$job\"} > 0) by (probe)", "instant": false, "interval": "", "intervalFactor": 1, @@ -948,5 +948,5 @@ "timezone": "", "title": "Synthetic Monitoring - DNS", "uid": "lgL6odgGz", - "version": 8 - } \ No newline at end of file + "version": 9 + }