Grafana dashboard: HTTP/Duration: Site per Region
Description: HTTPTrace based Blackbox Exporter Metric Dashboard.



This Dashboard is built for Latency.at. It can be used without but it expects a 'region' label that needs to be added via relabling.

{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "4.4.1"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": []
  },
  "editable": true,
  "gnetId": 3341,
  "graphTooltip": 0,
  "hideControls": false,
  "id": null,
  "links": [],
  "refresh": "1m",
  "rows": [
    {
      "collapse": false,
      "height": "500px",
      "panels": [
        {
          "aliasColors": {
            "Standard Deviation": "#DEDAF7"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_PROMETHEUS}",
          "decimals": 3,
          "editable": true,
          "error": false,
          "fill": 1,
          "grid": {},
          "height": "",
          "id": 1,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "max": false,
            "min": true,
            "rightSide": false,
            "show": true,
            "sideWidth": null,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "minSpan": 2,
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "repeat": "region",
          "seriesOverrides": [
            {
              "alias": "down",
              "bars": true,
              "color": "#BF1B00",
              "legend": false,
              "stack": false,
              "yaxis": 2
            },
            {
              "alias": "resolve",
              "color": "#2F575E",
              "zindex": -3
            },
            {
              "alias": "connect",
              "color": "#EAB839",
              "zindex": -2
            },
            {
              "alias": "tls",
              "color": "#6D1F62",
              "zindex": -1
            },
            {
              "alias": "processing",
              "color": "#629E51",
              "zindex": 1
            },
            {
              "alias": "transfer",
              "color": "#64B0C8",
              "zindex": 2
            }
          ],
          "spaceLength": 10,
          "span": 2.4,
          "stack": true,
          "steppedLine": true,
          "targets": [
            {
              "expr": "sum by (phase) (probe_http_duration_seconds{instance=~\"$site\",region=~\"$region\"})\n",
              "format": "time_series",
              "hide": false,
              "interval": "",
              "intervalFactor": 2,
              "legendFormat": "{{phase}}",
              "refId": "A",
              "step": 4
            },
            {
              "expr": "(1 - probe_success{instance=~\"$site\",region=~\"$region\"} > 0)",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 2,
              "legendFormat": "down",
              "refId": "B",
              "step": 4
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "$region",
          "tooltip": {
            "msResolution": false,
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "s",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": "1",
              "min": 0,
              "show": false
            }
          ]
        }
      ],
      "repeat": "site",
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": true,
      "title": "$site",
      "titleSize": "h6"
    }
  ],
  "schemaVersion": 14,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "hide": 0,
        "includeAll": true,
        "label": "Site",
        "multi": true,
        "name": "site",
        "options": [],
        "query": "label_values(probe_http_status_code, instance)",
        "refresh": 1,
        "regex": "",
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": ".+",
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "hide": 0,
        "includeAll": true,
        "label": "Region",
        "multi": true,
        "name": "region",
        "options": [],
        "query": "label_values(probe_http_status_code{region!=\"\"}, region)",
        "refresh": 1,
        "regex": "",
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "hide": 2,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "ssl_expires",
        "options": [],
        "query": "query_result(bottomk(5, min by (instance) (probe_ssl_earliest_cert_expiry) - time()))",
        "refresh": 1,
        "regex": "/instance=\"([^\"]*)\"/",
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-15m",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "browser",
  "title": "HTTP/Duration: Site per Region",
  "version": 1,
  "description": "HTTPTrace based Blackbox Exporter Metric Dashboard.\r\n"
}