Skip to content

Commit

Permalink
Use probe_dns_duration_seconds
Browse files Browse the repository at this point in the history
This PR:

grafana/synthetic-monitoring-agent#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 <[email protected]>
  • Loading branch information
mem committed Jul 13, 2020
1 parent 5505a95 commit c7d21dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/dashboards/sm-dns.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1591627233669,
"iteration": 1594330906000,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -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": "",
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -948,5 +948,5 @@
"timezone": "",
"title": "Synthetic Monitoring - DNS",
"uid": "lgL6odgGz",
"version": 8
}
"version": 9
}

0 comments on commit c7d21dd

Please sign in to comment.