Grafana dashboard: Icinga2 with Graphite
Description: Icinga2 & Graphite Dashboard

# Icinga2 Dashboard
This dashboard can be used with a default icinga2 installation. It will show different states about a host and its services. Including UP/DOWN state, load, disk space, process count and more. The intention of the dashboard is to be extended as your icinga2 configuration grows. It includes special values like thresholds and downtimes.

## Icinga2 Graphite Feature
To enable the *GraphiteWriter* on your icinga2 installation, use the commandline:
`icinga2 feature enable graphite`

Configure your Graphite host in `/etc/icinga2/features-enabled/graphite.conf`:
```
object GraphiteWriter "graphite" {
  host = "127.0.0.1"
  port = 2003
}
```
Learn more about the GraphiteWriter in the [Docs](http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/object-types#objecttype-graphitewriter)
## Thresholds
Thresholds are not configured in graph panels, but retreived from icinga2.  It helps you to find alerts that happened in the past. Sending of thresholds disabled by default, you need to enable it in your icinga2 `graphite.conf`:
```
object GraphiteWriter "graphite" {
  host = "127.0.0.1"
  port = 2003

  enable_send_thresholds = true
}
```

## Metadata
Icinga2 can send metadata information about every host and service check. These data include information about downtimes, acknowledgements, states, execution time, latency and more. Sending metadata is disabled by default. To enable it, configure `graphite.conf`:
```
object GraphiteWriter "graphite" {
  host = "127.0.0.1"
  port = 2003

  enable_send_metadata = true
}
```

{
  "__inputs": [
    {
      "name": "DS_GRAPHITE",
      "label": "Graphite",
      "description": "",
      "type": "datasource",
      "pluginId": "graphite",
      "pluginName": "Graphite"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "4.1.0-beta1"
    },
    {
      "type": "datasource",
      "id": "graphite",
      "name": "Graphite",
      "version": "1.0.0"
    }
  ],
  "id": null,
  "title": "Icinga2 with Graphite",
  "description": "Icinga2 & Graphite Dashboard",
  "tags": [],
  "style": "dark",
  "timezone": "browser",
  "editable": true,
  "graphTooltip": 0,
  "hideControls": false,
  "time": {
    "from": "now-5m",
    "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"
    ]
  },
  "templating": {
    "list": [
      {
        "current": {},
        "datasource": "${DS_GRAPHITE}",
        "hide": 0,
        "includeAll": false,
        "label": "Hostname",
        "multi": false,
        "name": "hostname",
        "options": [],
        "query": "icinga2.*",
        "refresh": 1,
        "regex": "",
        "type": "query",
        "sort": 0,
        "allValue": null,
        "tagsQuery": null,
        "tagValuesQuery": null
      },
      {
        "current": {},
        "datasource": "${DS_GRAPHITE}",
        "hide": 0,
        "includeAll": true,
        "label": "Disk",
        "multi": false,
        "name": "disk",
        "options": [],
        "query": "icinga2.$hostname.services.disk.disk.perfdata.*",
        "refresh": 1,
        "regex": "",
        "type": "query",
        "sort": 0,
        "allValue": null,
        "tagsQuery": null,
        "tagValuesQuery": null
      }
    ]
  },
  "annotations": {
    "list": []
  },
  "refresh": false,
  "schemaVersion": 14,
  "version": 4,
  "links": [],
  "gnetId": 56,
  "rows": [
    {
      "title": "Row 1",
      "panels": [
        {
          "cacheTimeout": null,
          "colorBackground": true,
          "colorValue": false,
          "colors": [
            "rgba(50, 172, 45, 0.97)",
            "rgba(252, 0, 0, 0.89)",
            "rgba(245, 54, 54, 0.9)"
          ],
          "datasource": "${DS_GRAPHITE}",
          "editable": true,
          "error": false,
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "hideTimeOverride": true,
          "id": 1,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "span": 2,
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "targets": [
            {
              "hide": false,
              "refId": "A",
              "target": "icinga2.$hostname.host.hostalive.metadata.state"
            }
          ],
          "thresholds": "1",
          "timeFrom": "1m",
          "title": "Host Alive",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "UP",
              "value": "0"
            },
            {
              "op": "=",
              "text": "DOWN",
              "value": "1"
            }
          ],
          "valueName": "avg"
        },
        {
          "aliasColors": {
            "CRITICAL": "#890F02",
            "DOWNTIME": "#E0F9D7",
            "WARNING": "#CCA300",
            "critical": "#890F02",
            "packetloss": "#7EB26D",
            "removeAboveValue(icinga2.ubuntu.services.ping4.ping4.metadata.downtime_depth, 1)": "#E0F9D7",
            "rta": "#70DBED",
            "warning": "#CCA300"
          },
          "bars": false,
          "datasource": "${DS_GRAPHITE}",
          "editable": true,
          "error": false,
          "fill": 1,
          "grid": {},
          "id": 2,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "WARNING",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "CRITICAL",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "DOWNTIME",
              "fill": 2,
              "linewidth": 0,
              "steppedLine": true,
              "yaxis": 1,
              "zindex": -3
            }
          ],
          "span": 3,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "refId": "F",
              "target": "alias(icinga2.$hostname.services.ping4.ping4.perfdata.pl.value, 'packetloss')",
              "textEditor": false
            },
            {
              "hide": false,
              "refId": "G",
              "target": "alias(icinga2.$hostname.services.ping4.ping4.perfdata.rta.value, 'rta')"
            },
            {
              "hide": false,
              "refId": "A",
              "target": "alias(icinga2.$hostname.services.ping4.ping4.perfdata.rta.warn, 'WARNING')"
            },
            {
              "hide": false,
              "refId": "B",
              "target": "alias(icinga2.$hostname.services.ping4.ping4.perfdata.rta.crit, 'CRITICAL')"
            },
            {
              "hide": false,
              "refId": "H",
              "target": "alias(asPercent(removeBelowValue(icinga2.$hostname.services.ping4.ping4.metadata.downtime_depth, 1), 1), 'DOWNTIME')",
              "textEditor": false
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Ping4",
          "tooltip": {
            "msResolution": false,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "show": true,
            "mode": "time",
            "name": null,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": 100,
              "min": null,
              "show": false
            }
          ],
          "thresholds": []
        },
        {
          "aliasColors": {
            "CRITICAL": "#890F02",
            "DOWNTIME": "#E0F9D7",
            "WARNING": "#CCA300",
            "critical": "#890F02",
            "load1": "#6ED0E0",
            "load1-CRITICAL": "#890F02",
            "load15": "#0A50A1",
            "load15-CRITICAL": "#890F02",
            "load15-WARNING": "#CCA300",
            "load5": "#1F78C1",
            "load5-CRITICAL": "#890F02",
            "load5-WARNING": "#CCA300",
            "packetloss": "#7EB26D",
            "removeAboveValue(icinga2.ubuntu.services.ping4.ping4.metadata.downtime_depth, 1)": "#E0F9D7",
            "rta": "#70DBED",
            "warning": "#CCA300"
          },
          "bars": false,
          "datasource": "${DS_GRAPHITE}",
          "editable": true,
          "error": false,
          "fill": 1,
          "grid": {},
          "id": 3,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "load1-WARNING",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "load1-CRITICAL",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "DOWNTIME",
              "fill": 2,
              "linewidth": 0,
              "steppedLine": true,
              "yaxis": 2,
              "zindex": -3
            },
            {
              "alias": "load5-WARNING",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "load5-CRITICAL",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "load15-WARNING",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "load15-CRITICAL",
              "fill": 0,
              "yaxis": 1
            }
          ],
          "span": 5,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "refId": "A",
              "target": "aliasByNode(icinga2.$hostname.services.load.load.perfdata.load1.value, 6)"
            },
            {
              "refId": "B",
              "target": "alias(icinga2.$hostname.services.load.load.perfdata.load1.warn, 'load1-WARNING')"
            },
            {
              "refId": "C",
              "target": "alias(icinga2.$hostname.services.load.load.perfdata.load1.crit, 'load1-CRITICAL')"
            },
            {
              "refId": "D",
              "target": "aliasByNode(icinga2.$hostname.services.load.load.perfdata.load5.value, 6)"
            },
            {
              "refId": "E",
              "target": "alias(icinga2.$hostname.services.load.load.perfdata.load5.warn, 'load5-WARNING')"
            },
            {
              "refId": "F",
              "target": "alias(icinga2.$hostname.services.load.load.perfdata.load5.crit, 'load5-CRITICAL')"
            },
            {
              "refId": "G",
              "target": "aliasByNode(icinga2.$hostname.services.load.load.perfdata.load15.value, 6)"
            },
            {
              "refId": "H",
              "target": "alias(icinga2.$hostname.services.load.load.perfdata.load15.warn, 'load15-WARNING')"
            },
            {
              "refId": "J",
              "target": "alias(icinga2.$hostname.services.load.load.perfdata.load15.crit, 'load15-CRITICAL')"
            },
            {
              "hide": false,
              "refId": "K",
              "target": "alias(asPercent(removeBelowValue(icinga2.$hostname.services.load.load.metadata.downtime_depth, 1), 1), 'DOWNTIME')"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Load",
          "tooltip": {
            "msResolution": false,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "show": true,
            "mode": "time",
            "name": null,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": 100,
              "min": null,
              "show": false
            }
          ],
          "thresholds": []
        },
        {
          "content": "![alt text](https://www.icinga.org/wp-content/uploads/2014/06/logo_icinga_white-300x1161.png \"Icinga2\")\nExtend this dashboard by adding more services to your Icinga configuration. Correlate thresholds with performance data and maintenance works.",
          "editable": true,
          "error": false,
          "id": 9,
          "links": [],
          "mode": "markdown",
          "span": 2,
          "title": "",
          "transparent": true,
          "type": "text"
        }
      ],
      "showTitle": false,
      "titleSize": "h6",
      "height": "250px",
      "repeat": null,
      "repeatRowId": null,
      "repeatIteration": null,
      "collapse": false
    },
    {
      "title": "Row 2",
      "panels": [
        {
          "aliasColors": {
            "CRITICAL": "#890F02",
            "DOWNTIME": "#E0F9D7",
            "WARNING": "#CCA300",
            "critical": "#890F02",
            "free": "#6ED0E0",
            "load1": "#6ED0E0",
            "load1-CRITICAL": "#890F02",
            "load15": "#0A50A1",
            "load15-CRITICAL": "#890F02",
            "load15-WARNING": "#CCA300",
            "load5": "#1F78C1",
            "load5-CRITICAL": "#890F02",
            "load5-WARNING": "#CCA300",
            "max": "#0A437C",
            "packetloss": "#7EB26D",
            "processes": "#447EBC",
            "removeAboveValue(icinga2.ubuntu.services.ping4.ping4.metadata.downtime_depth, 1)": "#E0F9D7",
            "rta": "#70DBED",
            "warning": "#CCA300"
          },
          "bars": false,
          "datasource": "${DS_GRAPHITE}",
          "editable": true,
          "error": false,
          "fill": 8,
          "grid": {},
          "id": 6,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "minSpan": 4,
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "WARNING",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "CRITICAL",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "DOWNTIME",
              "fill": 2,
              "linewidth": 0,
              "steppedLine": true,
              "yaxis": 2,
              "zindex": -3
            }
          ],
          "span": 5,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "refId": "A",
              "target": "alias(icinga2.$hostname.services.procs.procs.perfdata.procs.value, 'processes')"
            },
            {
              "refId": "B",
              "target": "alias(icinga2.$hostname.services.procs.procs.perfdata.procs.warn, 'WARNING')"
            },
            {
              "refId": "D",
              "target": "alias(icinga2.$hostname.services.procs.procs.perfdata.procs.crit, 'CRITICAL')"
            },
            {
              "hide": false,
              "refId": "E",
              "target": "alias(asPercent(removeBelowValue(icinga2.$hostname.services.procs.procs.metadata.downtime_depth, 1), 1), 'DOWNTIME')"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Processes",
          "tooltip": {
            "msResolution": false,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "show": true,
            "mode": "time",
            "name": null,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": 100,
              "min": null,
              "show": false
            }
          ],
          "thresholds": []
        },
        {
          "aliasColors": {
            "CRITICAL": "#890F02",
            "DOWNTIME": "#E0F9D7",
            "WARNING": "#CCA300",
            "critical": "#890F02",
            "free": "#6ED0E0",
            "load1": "#6ED0E0",
            "load1-CRITICAL": "#890F02",
            "load15": "#0A50A1",
            "load15-CRITICAL": "#890F02",
            "load15-WARNING": "#CCA300",
            "load5": "#1F78C1",
            "load5-CRITICAL": "#890F02",
            "load5-WARNING": "#CCA300",
            "max": "#0A437C",
            "packetloss": "#7EB26D",
            "removeAboveValue(icinga2.ubuntu.services.ping4.ping4.metadata.downtime_depth, 1)": "#E0F9D7",
            "rta": "#70DBED",
            "swap": "#1F78C1",
            "warning": "#CCA300"
          },
          "bars": false,
          "datasource": "${DS_GRAPHITE}",
          "editable": true,
          "error": false,
          "fill": 8,
          "grid": {},
          "id": 7,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "minSpan": 4,
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "WARNING",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "CRITICAL",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "DOWNTIME",
              "fill": 2,
              "linewidth": 0,
              "steppedLine": true,
              "yaxis": 2,
              "zindex": -3
            }
          ],
          "span": 5,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "refId": "A",
              "target": "alias(icinga2.$hostname.services.swap.swap.perfdata.swap.value, 'swap')"
            },
            {
              "refId": "B",
              "target": "alias(icinga2.$hostname.services.swap.swap.perfdata.swap.warn, 'WARNING')"
            },
            {
              "refId": "D",
              "target": "alias(icinga2.$hostname.services.swap.swap.perfdata.swap.crit, 'CRITICAL')"
            },
            {
              "hide": false,
              "refId": "E",
              "target": "alias(asPercent(removeBelowValue(icinga2.$hostname.services.procs.procs.metadata.downtime_depth, 1), 1), 'DOWNTIME')"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Free Swap",
          "tooltip": {
            "msResolution": false,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "show": true,
            "mode": "time",
            "name": null,
            "values": []
          },
          "yaxes": [
            {
              "format": "bytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": 100,
              "min": null,
              "show": false
            }
          ],
          "thresholds": []
        },
        {
          "content": "#### **Thresholds**\nThe thresholds shown here are the thresholds you configured in your Icinga2 configuration. Changing them will automatically also change them in this dashboard. When values exceed thresholds, it is an indicator that alerts have been sent from your Icinga2 monitoring system.",
          "editable": true,
          "error": false,
          "id": 10,
          "links": [],
          "mode": "markdown",
          "span": 2,
          "title": "",
          "transparent": true,
          "type": "text"
        }
      ],
      "showTitle": false,
      "titleSize": "h6",
      "height": "250px",
      "repeat": null,
      "repeatRowId": null,
      "repeatIteration": null,
      "collapse": false
    },
    {
      "title": "Row 3",
      "panels": [
        {
          "aliasColors": {
            "CRITICAL": "#890F02",
            "DOWNTIME": "#E0F9D7",
            "WARNING": "#CCA300",
            "critical": "#890F02",
            "free": "#6ED0E0",
            "load1": "#6ED0E0",
            "load1-CRITICAL": "#890F02",
            "load15": "#0A50A1",
            "load15-CRITICAL": "#890F02",
            "load15-WARNING": "#CCA300",
            "load5": "#1F78C1",
            "load5-CRITICAL": "#890F02",
            "load5-WARNING": "#CCA300",
            "max": "#0A437C",
            "packetloss": "#7EB26D",
            "removeAboveValue(icinga2.ubuntu.services.ping4.ping4.metadata.downtime_depth, 1)": "#E0F9D7",
            "rta": "#70DBED",
            "warning": "#CCA300"
          },
          "bars": false,
          "datasource": "${DS_GRAPHITE}",
          "editable": true,
          "error": false,
          "fill": 8,
          "grid": {},
          "id": 5,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "minSpan": 4,
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "WARNING",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "CRITICAL",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "DOWNTIME",
              "fill": 2,
              "linewidth": 0,
              "steppedLine": true,
              "yaxis": 2,
              "zindex": -3
            }
          ],
          "span": 5,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "refId": "A",
              "target": "aliasByNode(icinga2.$hostname.services.disk.disk.perfdata.$disk.max, 7)"
            },
            {
              "refId": "B",
              "target": "alias(icinga2.$hostname.services.disk.disk.perfdata.$disk.value, 'free')"
            },
            {
              "refId": "D",
              "target": "alias(icinga2.$hostname.services.disk.disk.perfdata.$disk.warn, 'WARNING')"
            },
            {
              "refId": "E",
              "target": "alias(icinga2.$hostname.services.disk.disk.perfdata.$disk.crit, 'CRITICAL')"
            },
            {
              "hide": false,
              "refId": "F",
              "target": "alias(asPercent(removeBelowValue(icinga2.$hostname.services.disk.disk.metadata.downtime_depth, 1), 1), 'DOWNTIME')"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Disk $disk",
          "tooltip": {
            "msResolution": false,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "show": true,
            "mode": "time",
            "name": null,
            "values": []
          },
          "yaxes": [
            {
              "format": "bytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": 100,
              "min": null,
              "show": false
            }
          ],
          "thresholds": []
        },
        {
          "aliasColors": {
            "CRITICAL": "#890F02",
            "DOWNTIME": "#E0F9D7",
            "WARNING": "#CCA300",
            "critical": "#890F02",
            "free": "#6ED0E0",
            "load1": "#6ED0E0",
            "load1-CRITICAL": "#890F02",
            "load15": "#0A50A1",
            "load15-CRITICAL": "#890F02",
            "load15-WARNING": "#CCA300",
            "load5": "#1F78C1",
            "load5-CRITICAL": "#890F02",
            "load5-WARNING": "#CCA300",
            "max": "#0A437C",
            "packetloss": "#7EB26D",
            "removeAboveValue(icinga2.ubuntu.services.ping4.ping4.metadata.downtime_depth, 1)": "#E0F9D7",
            "rta": "#70DBED",
            "swap": "#1F78C1",
            "users": "#1F78C1",
            "warning": "#CCA300"
          },
          "bars": true,
          "datasource": "${DS_GRAPHITE}",
          "editable": true,
          "error": false,
          "fill": 8,
          "grid": {},
          "hideTimeOverride": false,
          "id": 8,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": false,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": false,
          "linewidth": 2,
          "links": [],
          "minSpan": 4,
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "WARNING",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "CRITICAL",
              "fill": 0,
              "yaxis": 1
            },
            {
              "alias": "DOWNTIME",
              "fill": 2,
              "linewidth": 0,
              "steppedLine": true,
              "yaxis": 2,
              "zindex": -3
            }
          ],
          "span": 5,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "refId": "A",
              "target": "aliasByNode(icinga2.$hostname.services.users.users.perfdata.users.value, 6)"
            },
            {
              "hide": false,
              "refId": "D",
              "target": "alias(asPercent(removeBelowValue(icinga2.$hostname.services.procs.procs.metadata.downtime_depth, 1), 1), 'DOWNTIME')"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Users logged in",
          "tooltip": {
            "msResolution": false,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "show": true,
            "mode": "time",
            "name": null,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": 100,
              "min": null,
              "show": false
            }
          ],
          "thresholds": []
        },
        {
          "content": "#### **Downtimes**\nWhen setting a downtime, for example in IcingaWeb or via API, it will be marked in the affected graph. To get a clean view, the graph legend will display downtimes only when they exist. Downtimes are usually set for maintenance work and are an indicator that graphed data is changing on purpose.",
          "editable": true,
          "error": false,
          "id": 11,
          "links": [],
          "mode": "markdown",
          "span": 2,
          "title": "",
          "transparent": true,
          "type": "text"
        }
      ],
      "showTitle": false,
      "titleSize": "h6",
      "height": "250px",
      "repeat": null,
      "repeatRowId": null,
      "repeatIteration": null,
      "collapse": false
    }
  ]
}