Grafana dashboard: Website Response Times
Description: Sample report using a Heatmap visualizing response times from web sites using OpenNMS.

This is a sample report which shows how to monitor website response times using a Heatmap. It is required to configure the website monitoring described in the article [Monitoring Websites with OpenNMS](https://blog.no42.org/code/monitoring-websites-with-opennms/).

The dashboard is version controlled in [GitHub](https://github.com/opennms-forge/grafana-dashboards).

{
  "__inputs": [
    {
      "name": "DS_OPENNMS_HORIZON PM",
      "label": "OpenNMS Horizon PM",
      "description": "",
      "type": "datasource",
      "pluginId": "opennms-helm-performance-datasource",
      "pluginName": "OpenNMS Performance"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "5.3.4"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": "5.0.0"
    },
    {
      "type": "panel",
      "id": "heatmap",
      "name": "Heatmap",
      "version": "5.0.0"
    },
    {
      "type": "datasource",
      "id": "opennms-helm-performance-datasource",
      "name": "OpenNMS Performance",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 9775,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1549549085569,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 7,
      "panels": [],
      "repeat": "node",
      "title": "$node - Heatmap",
      "type": "row"
    },
    {
      "cards": {
        "cardPadding": null,
        "cardRound": null
      },
      "color": {
        "cardColor": "#b4ff00",
        "colorScale": "sqrt",
        "colorScheme": "interpolateRdYlGn",
        "exponent": 0.5,
        "max": 5000,
        "min": 0,
        "mode": "spectrum"
      },
      "dataFormat": "tsbuckets",
      "datasource": "$instance",
      "gridPos": {
        "h": 4,
        "w": 24,
        "x": 0,
        "y": 1
      },
      "heatmap": {},
      "highlightCards": true,
      "id": 4,
      "legend": {
        "show": true
      },
      "links": [],
      "minSpan": 12,
      "repeat": "attribute",
      "repeatDirection": "v",
      "targets": [
        {
          "aggregation": "AVERAGE",
          "attribute": "$attribute",
          "filter": {
            "clauses": [],
            "limit": 1000
          },
          "label": "",
          "nodeId": "$node",
          "refId": "A",
          "resourceId": "$interface",
          "type": "attribute"
        }
      ],
      "title": "Respone Time - $attribute",
      "tooltip": {
        "show": true,
        "showHistogram": false
      },
      "type": "heatmap",
      "xAxis": {
        "show": true
      },
      "xBucketNumber": null,
      "xBucketSize": "1h",
      "yAxis": {
        "decimals": null,
        "format": "ms",
        "logBase": 1,
        "max": null,
        "min": null,
        "show": true,
        "splitFactor": null
      },
      "yBucketBound": "auto",
      "yBucketNumber": null,
      "yBucketSize": null
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 5
      },
      "id": 10,
      "panels": [],
      "repeat": "node",
      "title": "$node - Response Times",
      "type": "row"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$instance",
      "fill": 1,
      "gridPos": {
        "h": 9,
        "w": 24,
        "x": 0,
        "y": 6
      },
      "id": 13,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": false,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "repeat": "attribute",
      "repeatDirection": "v",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "aggregation": "AVERAGE",
          "attribute": "$attribute",
          "filter": {
            "clauses": [],
            "limit": 1000
          },
          "label": "$attribute",
          "nodeId": "$node",
          "refId": "A",
          "resourceId": "$interface",
          "type": "attribute"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Response Times",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "ms",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 16,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "text": "OpenNMS Horizon PM",
          "value": "OpenNMS Horizon PM"
        },
        "hide": 0,
        "label": "Instance",
        "name": "instance",
        "options": [],
        "query": "opennms-helm-performance-datasource",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_OPENNMS_HORIZON PM}",
        "definition": "nodeFilter(serviceName like 'Web-Landing-Page%')",
        "hide": 0,
        "includeAll": false,
        "label": "Node Label",
        "multi": false,
        "name": "node",
        "options": [],
        "query": "nodeFilter(serviceName like 'Web-Landing-Page%')",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_OPENNMS_HORIZON PM}",
        "hide": 0,
        "includeAll": false,
        "label": "IP Interface",
        "multi": false,
        "name": "interface",
        "options": [],
        "query": "nodeResources($node)",
        "refresh": 2,
        "regex": "^responseTime.*",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {
          "selected": true,
          "text": "All",
          "value": "$__all"
        },
        "hide": 0,
        "includeAll": true,
        "label": "Metric",
        "multi": true,
        "name": "attribute",
        "options": [
          {
            "selected": true,
            "text": "All",
            "value": "$__all"
          },
          {
            "selected": false,
            "text": "webLanding",
            "value": "webLanding"
          },
          {
            "selected": false,
            "text": "webLandingSsl",
            "value": "webLandingSsl"
          }
        ],
        "query": "webLanding, webLandingSsl",
        "skipUrlSync": false,
        "type": "custom"
      }
    ]
  },
  "time": {
    "from": "now-24h",
    "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": "",
  "title": "Website Response Times",
  "uid": "4erjyT_ik",
  "version": 33,
  "description": "Sample report using a Heatmap visualizing response times from web sites using OpenNMS."
}