Grafana dashboard: SystemD Services Status
Description: SystemD services status dashboard for the python script for Telegraf exec plugin.

More information here : https://github.com/b4b857f6ee/srvstatus

{
  "__inputs": [
    {
      "name": "DS_INFLUXDB",
      "label": "InfluxDB",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "flant-statusmap-panel",
      "name": "Statusmap",
      "version": "0.3.4"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.2.1"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "yesoreyeram-boomtable-panel",
      "name": "Boom Table",
      "version": "1.4.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "limit": 100,
        "name": "Annotations & Alerts",
        "showIn": 0,
        "type": "dashboard"
      }
    ]
  },
  "description": "SystemD services status dashboard for the python script for Telegraf exec plugin.",
  "editable": true,
  "gnetId": 13309,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1604070380549,
  "links": [],
  "panels": [
    {
      "datasource": "$datasource",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null
          },
          "mappings": [
            {
              "from": "",
              "id": 0,
              "operator": "",
              "text": "Alert",
              "to": "",
              "type": 1,
              "value": "0"
            },
            {
              "from": "1",
              "id": 1,
              "operator": "",
              "text": "Ok",
              "to": "1024",
              "type": 2,
              "value": "1"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "green",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 5,
        "x": 0,
        "y": 0
      },
      "id": 27,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.2.1",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "services_stats",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT min(\"value\") FROM \"processes_processes\" WHERE (\"host\" =~ /^$host$/ AND \"instance\" =~ /^$instance$/ AND \"type\" = 'ps_count') AND $timeFilter GROUP BY time(1m) fill(null)",
          "rawQuery": false,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "status"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "min"
              }
            ]
          ],
          "tags": [
            {
              "key": "host",
              "operator": "=~",
              "value": "/^$host$/"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Global Status",
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB}",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null,
            "filterable": false
          },
          "mappings": [],
          "noValue": "None",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "orange",
                "value": 1
              },
              {
                "color": "red",
                "value": 2
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 4,
        "x": 5,
        "y": 0
      },
      "id": 23,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.2.1",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "processes_processes",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(\"status\") FROM \"services_stats\" WHERE (\"host\" =~ /^$host$/) AND \"status\" = 0 AND $timeFilter GROUP BY time(1m) fill(null)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "min"
              }
            ]
          ],
          "tags": [
            {
              "key": "host",
              "operator": "=~",
              "value": "/^$host$/"
            },
            {
              "condition": "AND",
              "key": "instance",
              "operator": "=~",
              "value": "/^$instance$/"
            },
            {
              "condition": "AND",
              "key": "type",
              "operator": "=",
              "value": "ps_count"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Current Alert(s)",
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null
          },
          "decimals": 3,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "orange",
                "value": 98
              },
              {
                "color": "green",
                "value": 99
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 5,
        "x": 9,
        "y": 0
      },
      "id": 25,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.2.1",
      "targets": [
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT sum(\"status\") * 100 / count(\"status\") FROM (SELECT (\"status\" / \"status\") AS \"status\" FROM \"services_stats\" WHERE \"host\"=~/^$host$/ AND $timeFilter)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Global Availability",
      "type": "stat"
    },
    {
      "datasource": "$datasource",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null,
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#ffffff",
                "value": null
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 5,
        "x": 14,
        "y": 0
      },
      "id": 20,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.2.1",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "1h"
              ],
              "type": "time"
            },
            {
              "params": [
                "host"
              ],
              "type": "tag"
            }
          ],
          "measurement": "services_stats",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SHOW TAG VALUES FROM \"services_stats\" WITH KEY = \"host\"",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "status"
                ],
                "type": "field"
              }
            ]
          ],
          "tags": [
            {
              "key": "host",
              "operator": "=~",
              "value": "/^$host$/"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Monitored hosts",
      "transformations": [
        {
          "id": "calculateField",
          "options": {
            "alias": "Host",
            "binary": {
              "left": "services_stats",
              "operator": "+",
              "reducer": "sum",
              "right": "services_stats"
            },
            "mode": "reduceRow",
            "reduce": {
              "include": [
                "services_stats"
              ],
              "reducer": "count"
            },
            "replaceFields": true
          }
        },
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "Host": {
                "aggregations": [
                  "count"
                ],
                "operation": "aggregate"
              },
              "Time": {
                "aggregations": [],
                "operation": "groupby"
              }
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true
            },
            "indexByName": {},
            "renameByName": {}
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": "$datasource",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null,
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#ffffff",
                "value": null
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 5,
        "x": 19,
        "y": 0
      },
      "id": 21,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.2.1",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "1h"
              ],
              "type": "time"
            },
            {
              "params": [
                "host"
              ],
              "type": "tag"
            }
          ],
          "measurement": "services_stats",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SHOW TAG VALUES WITH KEY = \"service\"",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "status"
                ],
                "type": "field"
              }
            ]
          ],
          "tags": [
            {
              "key": "host",
              "operator": "=~",
              "value": "/^$host$/"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Monitored services",
      "transformations": [
        {
          "id": "calculateField",
          "options": {
            "alias": "Host",
            "binary": {
              "left": "services_stats",
              "operator": "+",
              "reducer": "sum",
              "right": "services_stats"
            },
            "mode": "reduceRow",
            "reduce": {
              "include": [
                "services_stats"
              ],
              "reducer": "count"
            },
            "replaceFields": true
          }
        },
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "Host": {
                "aggregations": [
                  "count"
                ],
                "operation": "aggregate"
              },
              "Time": {
                "aggregations": [],
                "operation": "groupby"
              }
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true
            },
            "indexByName": {},
            "renameByName": {}
          }
        }
      ],
      "type": "stat"
    },
    {
      "aliasColors": {
        "Alert raised": "red",
        "Raised alert(s)": "red",
        "processes_processes.count": "red"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "fill": 0,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 14,
        "x": 0,
        "y": 4
      },
      "hiddenSeries": false,
      "id": 12,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": false,
        "total": false,
        "values": false
      },
      "lines": false,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.2.1",
      "pointradius": 5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "services_stats",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(\"status\") FROM \"services_stats\" WHERE (\"host\" =~ /^$host$/ AND \"service\" =~ /^$service$/) AND \"status\"= 0 AND $timeFilter GROUP BY time($__interval) fill(none)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "status"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "count"
              }
            ]
          ],
          "tags": [
            {
              "key": "host",
              "operator": "=~",
              "value": "/^$host$/"
            },
            {
              "condition": "AND",
              "key": "service",
              "operator": "=~",
              "value": "/^$service$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Raised Alert(s)",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:80",
          "decimals": 0,
          "format": "short",
          "label": "",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:81",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "datasource": "${DS_INFLUXDB}",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": "center",
            "filterable": false
          },
          "mappings": [
            {
              "from": "1",
              "id": 0,
              "operator": "",
              "text": "alert triggered",
              "to": "1024",
              "type": 1,
              "value": "0"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 10,
        "x": 14,
        "y": 4
      },
      "id": 18,
      "options": {
        "showHeader": false,
        "sortBy": [
          {
            "desc": true,
            "displayName": "Time"
          }
        ]
      },
      "pluginVersion": "7.2.1",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "host"
              ],
              "type": "tag"
            },
            {
              "params": [
                "instance"
              ],
              "type": "tag"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "processes_processes",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT mean(\"status\") FROM \"services_stats\" WHERE (\"host\" =~ /^$host$/ AND \"service\" =~ /^$service$/ ) AND \"status\" = 0 AND $timeFilter GROUP BY time($__interval), \"host\", \"service\" fill(null)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "min"
              },
              {
                "params": [
                  "number"
                ],
                "type": "alias"
              }
            ]
          ],
          "tags": [
            {
              "key": "host",
              "operator": "=~",
              "value": "/^$host$/"
            },
            {
              "condition": "AND",
              "key": "instance",
              "operator": "=~",
              "value": "/^$instance$/"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Last events",
      "type": "table"
    },
    {
      "datasource": "${DS_INFLUXDB}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 12
      },
      "id": 29,
      "title": "Global Services Status",
      "type": "row"
    },
    {
      "activePatternIndex": -3,
      "cacheTimeout": null,
      "datasource": "${DS_INFLUXDB}",
      "debug_mode": false,
      "defaultPattern": {
        "bgColors": "green|orange|red",
        "bgColors_overrides": "0->green|2->red|1->yellow",
        "clickable_cells_link": "",
        "col_name": "Value",
        "decimals": 2,
        "defaultBGColor": "transparent",
        "defaultTextColor": "",
        "delimiter": ".",
        "displayTemplate": "_value_",
        "enable_bgColor": false,
        "enable_bgColor_overrides": false,
        "enable_clickable_cells": false,
        "enable_textColor": false,
        "enable_textColor_overrides": false,
        "enable_time_based_thresholds": false,
        "enable_transform": false,
        "enable_transform_overrides": false,
        "filter": {
          "value_above": "",
          "value_below": ""
        },
        "format": "none",
        "name": "Default Pattern",
        "null_color": "darkred",
        "null_textcolor": "black",
        "null_value": "No data",
        "pattern": "*",
        "row_col_wrapper": "_",
        "row_name": "_series_",
        "textColors": "red|orange|green",
        "textColors_overrides": "0->red|2->green|1->yellow",
        "thresholds": "70,90",
        "time_based_thresholds": [],
        "tooltipTemplate": "Series : _series_ <br/>Row Name : _row_name_ <br/>Col Name : _col_name_ <br/>Value : _value_",
        "transform_values": "_value_|_value_|_value_",
        "transform_values_overrides": "0->down|1->up",
        "valueName": "avg"
      },
      "default_title_for_rows": "",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "gridPos": {
        "h": 12,
        "w": 24,
        "x": 0,
        "y": 13
      },
      "hide_first_column": false,
      "hide_headers": false,
      "id": 8,
      "links": [],
      "non_matching_cells_color_text": "black",
      "non_matching_cells_text": "n/a",
      "patterns": [
        {
          "bgColors": "red|orange|green",
          "bgColors_overrides": "0->green|2->red|1->yellow",
          "clickable_cells_link": "",
          "col_name": "_2_",
          "decimals": "0",
          "defaultBGColor": "",
          "defaultTextColor": "",
          "delimiter": ":",
          "displayTemplate": "_value_",
          "enable_bgColor": true,
          "enable_bgColor_overrides": false,
          "enable_clickable_cells": false,
          "enable_textColor": false,
          "enable_textColor_overrides": false,
          "enable_time_based_thresholds": false,
          "enable_transform": true,
          "enable_transform_overrides": false,
          "filter": {
            "value_above": "",
            "value_below": ""
          },
          "format": "none",
          "name": "Status",
          "null_color": "darkred",
          "null_textcolor": "black",
          "null_value": "No data",
          "pattern": "^status:.*$",
          "row_col_wrapper": "_",
          "row_name": "_1_",
          "textColors": "red|orange|green",
          "textColors_overrides": "0->red|2->green|1->yellow",
          "thresholds": "0,1",
          "time_based_thresholds": [],
          "tooltipTemplate": "Series : _series_ <br/>Row Name : _row_name_ <br/>Col Name : _col_name_ <br/>Value : _value_",
          "transform_values": "n/a|Alert|Ok",
          "transform_values_overrides": "0->down|1->up",
          "valueName": "current"
        }
      ],
      "pluginVersion": "7.2.1",
      "row_col_wrapper": "_",
      "sorting_props": {
        "col_index": 0,
        "direction": "desc"
      },
      "targets": [
        {
          "alias": "status:$tag_host:$tag_service",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "host"
              ],
              "type": "tag"
            },
            {
              "params": [
                "service"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "services_stats",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "status"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "host",
              "operator": "=~",
              "value": "/^$host$/"
            },
            {
              "condition": "AND",
              "key": "service",
              "operator": "=~",
              "value": "/^$service$/"
            }
          ]
        }
      ],
      "text_alignment_firstcolumn": "left",
      "text_alignment_header": "center",
      "text_alignment_values": "center",
      "timeFrom": null,
      "timeShift": null,
      "title": "Services Status",
      "type": "yesoreyeram-boomtable-panel"
    },
    {
      "collapsed": false,
      "datasource": "${DS_INFLUXDB}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 25
      },
      "id": 16,
      "panels": [],
      "title": "Status History",
      "type": "row"
    },
    {
      "cacheTimeout": null,
      "cards": {
        "cardHSpacing": 2,
        "cardMinWidth": 5,
        "cardRound": null,
        "cardVSpacing": 2
      },
      "color": {
        "cardColor": "#b4ff00",
        "colorScale": "sqrt",
        "colorScheme": "interpolateGnYlRd",
        "defaultColor": "#757575",
        "exponent": 0.5,
        "max": 1,
        "min": 0,
        "mode": "spectrum",
        "thresholds": []
      },
      "datasource": "${DS_INFLUXDB}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "gridPos": {
        "h": 32,
        "w": 24,
        "x": 0,
        "y": 26
      },
      "highlightCards": true,
      "id": 10,
      "legend": {
        "show": false
      },
      "links": [],
      "nullPointMode": "as empty",
      "pageSize": 15,
      "pluginVersion": "7.2.1",
      "seriesFilterIndex": -1,
      "statusmap": {
        "ConfigVersion": "v1"
      },
      "targets": [
        {
          "alias": "$tag_host:$tag_service",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "host"
              ],
              "type": "tag"
            },
            {
              "params": [
                "service"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "services_stats",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT mean(\"status\") FROM \"services_stats\" WHERE (\"host\" =~ /^$host$/ AND \"service\" =~ /^$service$/) AND $timeFilter GROUP BY time($__interval), \"host\", \"service\" fill(null)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "status"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "host",
              "operator": "=~",
              "value": "/^$host$/"
            },
            {
              "condition": "AND",
              "key": "service",
              "operator": "=~",
              "value": "/^$service$/"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "STATUS",
      "tooltip": {
        "freezeOnClick": true,
        "items": [],
        "show": true,
        "showItems": false
      },
      "type": "flant-statusmap-panel",
      "useMax": true,
      "usingPagination": false,
      "xAxis": {
        "show": true
      },
      "yAxis": {
        "maxWidth": -1,
        "minWidth": -1,
        "show": true
      },
      "yAxisSort": "a → z"
    }
  ],
  "refresh": "1m",
  "schemaVersion": 26,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "default",
          "value": "default"
        },
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "datasource",
        "options": [],
        "query": "influxdb",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$datasource",
        "definition": "",
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "host",
        "options": [],
        "query": "SHOW TAG VALUES WITH KEY = \"host\"",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$datasource",
        "definition": "",
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "service",
        "options": [],
        "query": "SHOW TAG VALUES WITH KEY = \"service\"",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$datasource",
        "definition": "",
        "hide": 0,
        "includeAll": true,
        "label": "Service",
        "multi": true,
        "name": "instance",
        "options": [],
        "query": "SHOW TAG VALUES FROM \"services_stats\" WITH KEY = \"host\" ",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-1h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "SystemD Services Status",
  "uid": "6wtmoQJmt",
  "version": 18
}