Grafana dashboard: Icinga2 with InfluxDB
Description: Icinga2 & InfluxDB 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 InfluxDB Feature
To enable the *InfluxdbWriter* on your icinga2 installation, use the commandline:
`icinga2 feature enable influxdb`

Configure your InfluxDB host and database in `/etc/icinga2/features-enabled/influxdb.conf`:
```
object InfluxdbWriter "influxdb" {
  host = "127.0.0.1"
  port = 8086
  database = "icinga2"
  username = "icinga2"
  password = "icinga2"
  host_template = {
    measurement = "$host.check_command$"
    tags = {
      hostname = "$host.name$"
    }
  }
  service_template = {
    measurement = "$service.check_command$"
    tags = {
      hostname = "$host.name$"
      service = "$service.name$"
    }
  }
}
```
Learn more about the InfluxdbWriter in the [Docs](http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/object-types#objecttype-influxdbwriter)
## 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 `influxdb.conf`:
```
object InfluxdbWriter "influxdb" {
  [ ... ]

  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 `influxdb.conf`:
```
object InfluxdbWriter "influxdb" {
  [ ... ]

  enable_send_metadata = true
}
}
```

{
  "__inputs": [
    {
      "name": "DS_INFLUXDB",
      "label": "InfluxDB",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__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": "3.1.1"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    }
  ],
  "id": null,
  "title": "Icinga2 with InfluxDB",
  "description": "Icinga2 & InfluxDB Dashboard",
  "tags": [],
  "style": "dark",
  "timezone": "browser",
  "editable": true,
  "hideControls": false,
  "sharedCrosshair": false,
  "rows": [
    {
      "collapse": false,
      "editable": true,
      "height": "250px",
      "panels": [
        {
          "cacheTimeout": null,
          "colorBackground": true,
          "colorValue": false,
          "colors": [
            "rgba(28, 197, 0, 0.9)",
            "rgb(229, 0, 0)",
            "rgba(192, 17, 17, 0.97)"
          ],
          "datasource": "${DS_INFLUXDB}",
          "editable": true,
          "error": false,
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "id": 1,
          "interval": null,
          "isNew": true,
          "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": [
            {
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "ping4",
              "policy": "default",
              "query": "SELECT last(\"state\") FROM \"ping4\" WHERE \"hostname\" =~ /^$hostname$/ AND $timeFilter",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "state"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "last"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            }
          ],
          "thresholds": "1",
          "title": "Host Alive",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "UP",
              "value": "0"
            },
            {
              "op": "=",
              "text": "DOWN",
              "value": "1"
            },
            {
              "op": "=",
              "text": "DOWN",
              "value": "2"
            }
          ],
          "valueName": "avg"
        },
        {
          "aliasColors": {
            "CRITICAL": "#BF1B00",
            "DOWNTIME": "#E0F9D7",
            "WARNING": "#EAB839",
            "rta": "#6ED0E0"
          },
          "bars": false,
          "datasource": "${DS_INFLUXDB}",
          "editable": true,
          "error": false,
          "fill": 1,
          "grid": {
            "threshold1": null,
            "threshold1Color": "rgba(216, 200, 27, 0.27)",
            "threshold2": null,
            "threshold2Color": "rgba(234, 112, 112, 0.22)"
          },
          "id": 2,
          "isNew": true,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "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": 2,
              "zindex": -3
            }
          ],
          "span": 3,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "packetloss",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "ping4",
              "policy": "default",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "pl"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "rta",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "ping4",
              "policy": "default",
              "refId": "B",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "rta"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "WARNING",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "ping4",
              "policy": "default",
              "refId": "C",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "warn"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "rta"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "CRITICAL",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "ping4",
              "policy": "default",
              "refId": "D",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "crit"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "rta"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "DOWNTIME",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "ping4",
              "policy": "default",
              "refId": "E",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "downtime_depth"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  },
                  {
                    "params": [
                      " * 100"
                    ],
                    "type": "math"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "rta"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Ping4",
          "tooltip": {
            "msResolution": true,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "show": true
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "percent",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ]
        },
        {
          "aliasColors": {
            "CRITICAL": "#BF1B00",
            "DOWNTIME": "#E0F9D7",
            "WARNING": "#EAB839",
            "load1": "#1F78C1",
            "load1-CRITICAL": "#BF1B00",
            "load15": "#0A437C",
            "load15-CRITICAL": "#BF1B00",
            "load15-WARNING": "#CCA300",
            "load5": "#1F78C1",
            "load5-CRITICAL": "#BF1B00",
            "load5-WARNING": "#CCA300",
            "rta": "#6ED0E0"
          },
          "bars": false,
          "datasource": "${DS_INFLUXDB}",
          "editable": true,
          "error": false,
          "fill": 1,
          "grid": {
            "threshold1": null,
            "threshold1Color": "rgba(216, 200, 27, 0.27)",
            "threshold2": null,
            "threshold2Color": "rgba(234, 112, 112, 0.22)"
          },
          "id": 3,
          "isNew": true,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "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": "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
            },
            {
              "alias": "DOWNTIME",
              "fill": 2,
              "linewidth": 0,
              "steppedLine": true,
              "yaxis": 2,
              "zindex": -3
            }
          ],
          "span": 5,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "load1",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "load",
              "policy": "default",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "load1"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "load1-WARNING",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "load",
              "policy": "default",
              "refId": "B",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "warn"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "load1"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "load1-CRITICAL",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "load",
              "policy": "default",
              "refId": "C",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "crit"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "load1"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "load5",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "load",
              "policy": "default",
              "refId": "D",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "load5"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "load5-WARNING",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "load",
              "policy": "default",
              "refId": "F",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "warn"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "load5"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "load5-CRITICAL",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "load",
              "policy": "default",
              "refId": "G",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "crit"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "load5"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "load15",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "load",
              "policy": "default",
              "refId": "H",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "load15"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "load15-WARNING",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "load",
              "policy": "default",
              "refId": "I",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "warn"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "load15"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "load15-CRITICAL",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "load",
              "policy": "default",
              "refId": "J",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "crit"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "load15"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "DOWNTIME",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "load",
              "policy": "default",
              "refId": "K",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "downtime_depth"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  },
                  {
                    "params": [
                      " * 100"
                    ],
                    "type": "math"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "load1"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Load",
          "tooltip": {
            "msResolution": true,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "show": true
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "percent",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ]
        },
        {
          "content": "[![Icinga](https://www.icinga.org/wp-content/uploads/2014/06/logo_icinga_white-300x1161.png)](https://www.icinga.org/)\nExtend this dashboard by adding more services to your Icinga configuration. Correlate thresholds with performance data and maintenance works.",
          "editable": true,
          "error": false,
          "id": 4,
          "isNew": true,
          "links": [],
          "mode": "markdown",
          "span": 2,
          "title": "",
          "transparent": true,
          "type": "text"
        }
      ],
      "title": "Row 1"
    },
    {
      "collapse": false,
      "editable": true,
      "height": "250px",
      "panels": [
        {
          "aliasColors": {
            "CRITICAL": "#BF1B00",
            "DOWNTIME": "#E0F9D7",
            "WARNING": "#EAB839",
            "processes": "#447EBC",
            "rta": "#6ED0E0"
          },
          "bars": false,
          "datasource": "${DS_INFLUXDB}",
          "editable": true,
          "error": false,
          "fill": 8,
          "grid": {
            "threshold1": null,
            "threshold1Color": "rgba(216, 200, 27, 0.27)",
            "threshold2": null,
            "threshold2Color": "rgba(234, 112, 112, 0.22)"
          },
          "id": 5,
          "isNew": true,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "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": 2,
              "zindex": -3
            }
          ],
          "span": 5,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "processes",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "procs",
              "policy": "default",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "procs"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "WARNING",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "procs",
              "policy": "default",
              "refId": "C",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "warn"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "procs"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "CRITICAL",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "procs",
              "policy": "default",
              "refId": "D",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "crit"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "procs"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "DOWNTIME",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "procs",
              "policy": "default",
              "refId": "E",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "downtime_depth"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  },
                  {
                    "params": [
                      " * 100"
                    ],
                    "type": "math"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "procs"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Processes",
          "tooltip": {
            "msResolution": true,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "show": true
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "percent",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ]
        },
        {
          "aliasColors": {
            "CRITICAL": "#BF1B00",
            "DOWNTIME": "#E0F9D7",
            "WARNING": "#EAB839",
            "processes": "#447EBC",
            "rta": "#6ED0E0"
          },
          "bars": false,
          "datasource": "${DS_INFLUXDB}",
          "editable": true,
          "error": false,
          "fill": 8,
          "grid": {
            "threshold1": null,
            "threshold1Color": "rgba(216, 200, 27, 0.27)",
            "threshold2": null,
            "threshold2Color": "rgba(234, 112, 112, 0.22)"
          },
          "id": 6,
          "isNew": true,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "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": 2,
              "zindex": -3
            }
          ],
          "span": 5,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "processes",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "swap",
              "policy": "default",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "swap"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "WARNING",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "swap",
              "policy": "default",
              "refId": "C",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "warn"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "swap"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "CRITICAL",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "swap",
              "policy": "default",
              "refId": "D",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "crit"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "swap"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "DOWNTIME",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "swap",
              "policy": "default",
              "refId": "E",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "downtime_depth"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  },
                  {
                    "params": [
                      " * 100"
                    ],
                    "type": "math"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "swap"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Free Swap",
          "tooltip": {
            "msResolution": true,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "show": true
          },
          "yaxes": [
            {
              "format": "bytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "percent",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ]
        },
        {
          "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": 7,
          "isNew": true,
          "links": [],
          "mode": "markdown",
          "span": 2,
          "title": "",
          "transparent": true,
          "type": "text"
        }
      ],
      "title": "Row 2"
    },
    {
      "collapse": false,
      "editable": true,
      "height": "250px",
      "panels": [
        {
          "aliasColors": {
            "CRITICAL": "#BF1B00",
            "DOWNTIME": "#E0F9D7",
            "WARNING": "#EAB839",
            "free": "#70DBED",
            "max": "#0A437C",
            "processes": "#447EBC",
            "rta": "#6ED0E0"
          },
          "bars": false,
          "datasource": "${DS_INFLUXDB}",
          "editable": true,
          "error": false,
          "fill": 8,
          "grid": {
            "threshold1": null,
            "threshold1Color": "rgba(216, 200, 27, 0.27)",
            "threshold2": null,
            "threshold2Color": "rgba(234, 112, 112, 0.22)"
          },
          "id": 8,
          "isNew": true,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "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": 2,
              "zindex": -3
            }
          ],
          "span": 5,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "max",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "disk",
              "policy": "default",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "max"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=~",
                  "value": "/^$disk$/"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "free",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "disk",
              "policy": "default",
              "refId": "B",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=~",
                  "value": "/^$disk$/"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "WARNING",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "disk",
              "policy": "default",
              "refId": "F",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "warn"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=~",
                  "value": "/^$disk$/"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "CRITICAL",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "disk",
              "policy": "default",
              "refId": "C",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "crit"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=~",
                  "value": "/^$disk$/"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "DOWNTIME",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "disk",
              "policy": "default",
              "refId": "D",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "downtime_depth"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  },
                  {
                    "params": [
                      " * 100"
                    ],
                    "type": "math"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=~",
                  "value": "/^$disk$/"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Disk $disk",
          "tooltip": {
            "msResolution": true,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "show": true
          },
          "yaxes": [
            {
              "format": "bytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "percent",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ]
        },
        {
          "aliasColors": {
            "CRITICAL": "#BF1B00",
            "DOWNTIME": "#E0F9D7",
            "WARNING": "#EAB839",
            "free": "#70DBED",
            "max": "#0A437C",
            "processes": "#447EBC",
            "rta": "#6ED0E0",
            "users": "#1F78C1"
          },
          "bars": true,
          "datasource": "${DS_INFLUXDB}",
          "editable": true,
          "error": false,
          "fill": 8,
          "grid": {
            "threshold1": null,
            "threshold1Color": "rgba(216, 200, 27, 0.27)",
            "threshold2": null,
            "threshold2Color": "rgba(234, 112, 112, 0.22)"
          },
          "id": 9,
          "isNew": true,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": false,
          "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": 2,
              "zindex": -3
            }
          ],
          "span": 5,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "users",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "users",
              "policy": "default",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "users"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            },
            {
              "alias": "DOWNTIME",
              "dsType": "influxdb",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "users",
              "policy": "default",
              "refId": "D",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "downtime_depth"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  },
                  {
                    "params": [
                      " * 100"
                    ],
                    "type": "math"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "metric",
                  "operator": "=",
                  "value": "users"
                },
                {
                  "condition": "AND",
                  "key": "hostname",
                  "operator": "=~",
                  "value": "/^$hostname$/"
                }
              ]
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Users logged in",
          "tooltip": {
            "msResolution": true,
            "shared": true,
            "sort": 0,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "show": true
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "percent",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "interval": "> 20s"
        },
        {
          "title": "",
          "error": false,
          "span": 2,
          "editable": true,
          "type": "text",
          "isNew": true,
          "id": 10,
          "mode": "markdown",
          "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.",
          "links": [],
          "transparent": true
        }
      ],
      "title": "Row 3"
    }
  ],
  "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"
    ]
  },
  "templating": {
    "list": [
      {
        "current": {},
        "datasource": "${DS_INFLUXDB}",
        "hide": 0,
        "includeAll": false,
        "label": "Hostname",
        "multi": false,
        "name": "hostname",
        "options": [],
        "query": "SHOW TAG VALUES FROM \"ping4\" WITH KEY = \"hostname\"",
        "refresh": 1,
        "regex": "",
        "type": "query"
      },
      {
        "current": {},
        "datasource": "${DS_INFLUXDB}",
        "hide": 0,
        "includeAll": true,
        "label": "Disk",
        "multi": false,
        "name": "disk",
        "options": [],
        "query": "SHOW TAG VALUES FROM \"disk\" WITH KEY = \"metric\" WHERE \"hostname\" =~ /^$hostname$/",
        "refresh": 1,
        "regex": "",
        "type": "query"
      }
    ]
  },
  "annotations": {
    "list": []
  },
  "refresh": false,
  "schemaVersion": 12,
  "version": 25,
  "links": [],
  "gnetId": 381
}