Grafana dashboard: Prometheus Web Service Exporter
Description: Prometheus Web Service Exporter

This dashboard gives an overview of HTTP stats and selected web services (from Blackbox Exporter), as well as status for selected systemd services (from Node Exporter).

Uses Prometheus with the following exporters:

- Node Exporter
- Blackbox Exporter

With Grafana variables/constants, you can easily add:

- More web services
- More systemd services

{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS_(XENOBYTE)",
      "label": "Prometheus (XenoByte)",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    },
    {
      "name": "VAR_WEBSERVICE1",
      "type": "constant",
      "label": "webservice1",
      "value": "https://webmin.yourdomain.com",
      "description": ""
    },
    {
      "name": "VAR_WEBSERVICE2",
      "type": "constant",
      "label": "webservice2",
      "value": "http://10.10.2.2:8201",
      "description": ""
    },
    {
      "name": "VAR_WEBSERVICE3",
      "type": "constant",
      "label": "webservice3",
      "value": "http://10.10.2.4:8181",
      "description": ""
    },
    {
      "name": "VAR_SYSTEMDSERVICE1",
      "type": "constant",
      "label": "systemdservice1",
      "value": "docker.service",
      "description": ""
    },
    {
      "name": "VAR_SYSTEMDSERVICE2",
      "type": "constant",
      "label": "systemdservice2",
      "value": "unbound.service",
      "description": ""
    },
    {
      "name": "VAR_SYSTEMDSERVICE3",
      "type": "constant",
      "label": "systemdservice3",
      "value": "smartmontools.service",
      "description": ""
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.2.5"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "description": "Prometheus Web Service Exporter",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 15296,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1637682175460,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 4,
      "panels": [],
      "title": "Portal Services",
      "type": "row"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "white",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 2,
        "w": 3,
        "x": 0,
        "y": 1
      },
      "id": 25,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.2.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "probe_http_version{job=\"blackbox\",instance=~\"$webservice1\"}",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "HTTP Version",
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "options": {
                "0": {
                  "text": "No"
                },
                "1": {
                  "text": "Yes"
                }
              },
              "type": "value"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "white",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 2,
        "w": 3,
        "x": 3,
        "y": 1
      },
      "id": 26,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.2.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "probe_http_ssl{job=\"blackbox\",instance=~\"$webservice1\"}",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "SSL Connection",
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 1,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "white",
                "value": null
              }
            ]
          },
          "unit": "dtdurations"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 2,
        "w": 3,
        "x": 6,
        "y": 1
      },
      "id": 27,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.2.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "probe_ssl_earliest_cert_expiry{job=\"blackbox\",instance=~\"$webservice1\"} - time()",
          "format": "time_series",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "SSL Expiration",
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "white",
                "value": null
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 2,
        "w": 3,
        "x": 9,
        "y": 1
      },
      "id": 28,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.2.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "avg(probe_duration_seconds{job=\"blackbox\",instance=~\"$webservice1\"})",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Avg. Probe Duration",
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "white",
                "value": null
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 2,
        "w": 3,
        "x": 12,
        "y": 1
      },
      "id": 29,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.2.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "avg(probe_dns_lookup_time_seconds{job=\"blackbox\",instance=~\"$webservice1\"})",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Avg. DNS Lookup",
      "type": "stat"
    },
    {
      "datasource": null,
      "description": "",
      "gridPos": {
        "h": 2,
        "w": 3,
        "x": 15,
        "y": 1
      },
      "id": 36,
      "options": {
        "content": "",
        "mode": "markdown"
      },
      "pluginVersion": "8.2.5",
      "timeFrom": null,
      "timeShift": null,
      "type": "text"
    },
    {
      "datasource": null,
      "description": "",
      "gridPos": {
        "h": 2,
        "w": 3,
        "x": 18,
        "y": 1
      },
      "id": 45,
      "options": {
        "content": "",
        "mode": "markdown"
      },
      "pluginVersion": "8.2.5",
      "timeFrom": null,
      "timeShift": null,
      "type": "text"
    },
    {
      "datasource": null,
      "description": "",
      "gridPos": {
        "h": 2,
        "w": 3,
        "x": 21,
        "y": 1
      },
      "id": 44,
      "options": {
        "content": "",
        "mode": "markdown"
      },
      "pluginVersion": "8.2.5",
      "timeFrom": null,
      "timeShift": null,
      "type": "text"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "options": {
                "0": {
                  "index": 0,
                  "text": "Down"
                },
                "1": {
                  "index": 1,
                  "text": "Up"
                }
              },
              "type": "value"
            }
          ],
          "max": 2,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "semi-dark-red",
                "value": null
              },
              {
                "color": "semi-dark-green",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 0,
        "y": 3
      },
      "id": 13,
      "links": [],
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.2.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "probe_success{job=\"blackbox\",instance=~\"$webservice1\"}",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Webmin Status",
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "options": {
                "0": {
                  "index": 0,
                  "text": "Down"
                },
                "1": {
                  "index": 1,
                  "text": "Up"
                }
              },
              "type": "value"
            }
          ],
          "max": 2,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "semi-dark-red",
                "value": null
              },
              {
                "color": "semi-dark-green",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 3,
        "y": 3
      },
      "id": 14,
      "links": [],
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.2.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "probe_success{job=\"blackbox\",instance=~\"$webservice2\"}",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Portainer Status",
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "options": {
                "0": {
                  "index": 0,
                  "text": "Down"
                },
                "1": {
                  "index": 1,
                  "text": "Up"
                }
              },
              "type": "value"
            }
          ],
          "max": 2,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "semi-dark-red",
                "value": null
              },
              {
                "color": "semi-dark-green",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 6,
        "y": 3
      },
      "id": 15,
      "links": [],
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.2.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "probe_success{job=\"blackbox\",instance=~\"$webservice3\"}",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Nginx Proxy Status",
      "type": "stat"
    },
    {
      "datasource": null,
      "description": "",
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 9,
        "y": 3
      },
      "id": 34,
      "options": {
        "content": "",
        "mode": "markdown"
      },
      "pluginVersion": "8.2.5",
      "timeFrom": null,
      "timeShift": null,
      "type": "text"
    },
    {
      "datasource": null,
      "description": "",
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 12,
        "y": 3
      },
      "id": 39,
      "options": {
        "content": "",
        "mode": "markdown"
      },
      "pluginVersion": "8.2.5",
      "timeFrom": null,
      "timeShift": null,
      "type": "text"
    },
    {
      "datasource": null,
      "description": "",
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 15,
        "y": 3
      },
      "id": 42,
      "options": {
        "content": "",
        "mode": "markdown"
      },
      "pluginVersion": "8.2.5",
      "timeFrom": null,
      "timeShift": null,
      "type": "text"
    },
    {
      "datasource": null,
      "description": "",
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 18,
        "y": 3
      },
      "id": 46,
      "options": {
        "content": "",
        "mode": "markdown"
      },
      "pluginVersion": "8.2.5",
      "timeFrom": null,
      "timeShift": null,
      "type": "text"
    },
    {
      "datasource": null,
      "description": "",
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 21,
        "y": 3
      },
      "id": 47,
      "options": {
        "content": "",
        "mode": "markdown"
      },
      "pluginVersion": "8.2.5",
      "timeFrom": null,
      "timeShift": null,
      "type": "text"
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 6
      },
      "id": 2,
      "panels": [],
      "title": "Systemd Services",
      "type": "row"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisGridShow": false,
            "axisLabel": "",
            "axisPlacement": "auto",
            "axisWidth": 10,
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 50,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 2,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 0,
          "mappings": [],
          "max": 1,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "docker - active"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "docker - inactive"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "light-yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "docker - activating"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "light-blue",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "docker - deactivating"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "orange",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "docker - failed"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 0,
        "y": 7
      },
      "id": 6,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "pluginVersion": "8.2.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice1\",state=\"active\"}",
          "interval": "",
          "legendFormat": "docker - active",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice1\",state=\"inactive\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "docker - inactive",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice1\",state=\"activating\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "docker - activating",
          "refId": "C"
        },
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice1\",state=\"deactivating\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "docker - deactivating",
          "refId": "D"
        },
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice1\",state=\"failed\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "docker - failed",
          "refId": "E"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Systemd - docker",
      "transformations": [],
      "type": "timeseries"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisGridShow": false,
            "axisLabel": "",
            "axisPlacement": "auto",
            "axisWidth": 10,
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 50,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 2,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 0,
          "mappings": [],
          "max": 1,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "unbound - active"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "unbound - inactive"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "light-yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "unbound - activating"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "light-blue",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "unbound - deactivating"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "orange",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "unbound - failed"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 6,
        "y": 7
      },
      "id": 10,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "pluginVersion": "8.2.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice2\",state=\"active\"}",
          "interval": "",
          "legendFormat": "unbound - active",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice2\",state=\"inactive\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "unbound - inactive",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice2\",state=\"activating\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "unbound - activating",
          "refId": "C"
        },
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice2\",state=\"deactivating\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "unbound - deactivating",
          "refId": "D"
        },
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice2\",state=\"failed\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "unbound - failed",
          "refId": "E"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Systemd - unbound",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisGridShow": false,
            "axisLabel": "",
            "axisPlacement": "auto",
            "axisWidth": 10,
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 50,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 2,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 0,
          "mappings": [],
          "max": 1,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "smartmontools - active"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "smartmontools - inactive"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "light-yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "smartmontools - activating"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "light-blue",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "smartmontools - deactivating"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "orange",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "smartmontools - failed"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 12,
        "y": 7
      },
      "id": 11,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "pluginVersion": "8.2.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice3\",state=\"active\"}",
          "interval": "",
          "legendFormat": "smartmontools - active",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice3\",state=\"inactive\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "smartmontools - inactive",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice3\",state=\"activating\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "smartmontools - activating",
          "refId": "C"
        },
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice3\",state=\"deactivating\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "smartmontools - deactivating",
          "refId": "D"
        },
        {
          "exemplar": true,
          "expr": "node_systemd_unit_state{instance=\"$node\",job=\"$job\",name=\"$systemdservice3\",state=\"failed\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "smartmontools - failed",
          "refId": "E"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Systemd - smartmontools",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "description": "",
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 18,
        "y": 7
      },
      "id": 43,
      "options": {
        "content": "",
        "mode": "markdown"
      },
      "pluginVersion": "8.2.5",
      "timeFrom": null,
      "timeShift": null,
      "type": "text"
    }
  ],
  "refresh": "30s",
  "schemaVersion": 32,
  "style": "dark",
  "tags": [
    "linux",
    "prometheus"
  ],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "Prometheus (XenoByte)",
          "value": "Prometheus (XenoByte)"
        },
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Source:",
        "multi": false,
        "name": "DS_PROMETHEUS",
        "options": [],
        "query": "prometheus",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS_(XENOBYTE)}",
        "definition": "label_values(node_uname_info, job)",
        "description": null,
        "error": null,
        "hide": 2,
        "includeAll": false,
        "label": "Job",
        "multi": false,
        "name": "job",
        "options": [],
        "query": {
          "query": "label_values(node_uname_info, job)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {
          "selected": false,
          "text": "10.10.2.2:9100",
          "value": "10.10.2.2:9100"
        },
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Host:",
        "multi": false,
        "name": "node",
        "options": [
          {
            "selected": true,
            "text": "10.10.2.2:9100",
            "value": "10.10.2.2:9100"
          },
          {
            "selected": false,
            "text": "10.10.2.4:9100",
            "value": "10.10.2.4:9100"
          },
          {
            "selected": false,
            "text": "10.10.2.6:9100",
            "value": "10.10.2.6:9100"
          }
        ],
        "query": "10.10.2.2:9100, 10.10.2.4:9100, 10.10.2.6:9100",
        "queryValue": "",
        "skipUrlSync": false,
        "type": "custom"
      },
      {
        "description": null,
        "error": null,
        "hide": 2,
        "label": null,
        "name": "webservice1",
        "query": "${VAR_WEBSERVICE1}",
        "skipUrlSync": false,
        "type": "constant",
        "current": {
          "value": "${VAR_WEBSERVICE1}",
          "text": "${VAR_WEBSERVICE1}",
          "selected": false
        },
        "options": [
          {
            "value": "${VAR_WEBSERVICE1}",
            "text": "${VAR_WEBSERVICE1}",
            "selected": false
          }
        ]
      },
      {
        "description": null,
        "error": null,
        "hide": 2,
        "label": null,
        "name": "webservice2",
        "query": "${VAR_WEBSERVICE2}",
        "skipUrlSync": false,
        "type": "constant",
        "current": {
          "value": "${VAR_WEBSERVICE2}",
          "text": "${VAR_WEBSERVICE2}",
          "selected": false
        },
        "options": [
          {
            "value": "${VAR_WEBSERVICE2}",
            "text": "${VAR_WEBSERVICE2}",
            "selected": false
          }
        ]
      },
      {
        "description": null,
        "error": null,
        "hide": 2,
        "label": null,
        "name": "webservice3",
        "query": "${VAR_WEBSERVICE3}",
        "skipUrlSync": false,
        "type": "constant",
        "current": {
          "value": "${VAR_WEBSERVICE3}",
          "text": "${VAR_WEBSERVICE3}",
          "selected": false
        },
        "options": [
          {
            "value": "${VAR_WEBSERVICE3}",
            "text": "${VAR_WEBSERVICE3}",
            "selected": false
          }
        ]
      },
      {
        "description": null,
        "error": null,
        "hide": 2,
        "label": null,
        "name": "systemdservice1",
        "query": "${VAR_SYSTEMDSERVICE1}",
        "skipUrlSync": false,
        "type": "constant",
        "current": {
          "value": "${VAR_SYSTEMDSERVICE1}",
          "text": "${VAR_SYSTEMDSERVICE1}",
          "selected": false
        },
        "options": [
          {
            "value": "${VAR_SYSTEMDSERVICE1}",
            "text": "${VAR_SYSTEMDSERVICE1}",
            "selected": false
          }
        ]
      },
      {
        "description": null,
        "error": null,
        "hide": 2,
        "label": null,
        "name": "systemdservice2",
        "query": "${VAR_SYSTEMDSERVICE2}",
        "skipUrlSync": false,
        "type": "constant",
        "current": {
          "value": "${VAR_SYSTEMDSERVICE2}",
          "text": "${VAR_SYSTEMDSERVICE2}",
          "selected": false
        },
        "options": [
          {
            "value": "${VAR_SYSTEMDSERVICE2}",
            "text": "${VAR_SYSTEMDSERVICE2}",
            "selected": false
          }
        ]
      },
      {
        "description": null,
        "error": null,
        "hide": 2,
        "label": null,
        "name": "systemdservice3",
        "query": "${VAR_SYSTEMDSERVICE3}",
        "skipUrlSync": false,
        "type": "constant",
        "current": {
          "value": "${VAR_SYSTEMDSERVICE3}",
          "text": "${VAR_SYSTEMDSERVICE3}",
          "selected": false
        },
        "options": [
          {
            "value": "${VAR_SYSTEMDSERVICE3}",
            "text": "${VAR_SYSTEMDSERVICE3}",
            "selected": false
          }
        ]
      }
    ]
  },
  "time": {
    "from": "now-24h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Prometheus Web Service Exporter",
  "uid": "nT2_e4p7k",
  "version": 7
}