Grafana dashboard: Melroy's Status Dashboard
Description: Melroy's Server Status Uptime metrics page.

Dashboard with showing the server uptime as well as your own defined services via the exec plugin of Telegraf (I'm using `pgrep` Linux command to collect data). Pgrep command is used to obtain information about the process and stored into the table called `nr_processes`.

You will need to install Telegraf & InfluxDB.

Notice the additional required plugin, called [flant-statusmap-panel](https://grafana.com/grafana/plugins/flant-statusmap-panel/) (thank you)

Demo: I'm actually using this dashboard as my public dashboard. I'm using a dedicated 'public' organization within [my Grafana server](https://stats.melroy.org/d/W3dcDjkGz/melroys-status-dashboard?orgId=2).


## Telegraf config

Add the following Telegraf configuration to your `/etc/telegraf/telegraf.conf` file:
```
[[inputs.system]]


# Below the list of applications you want to track
[[inputs.exec]]
  commands = ["pgrep -c nginx"]
  name_override = "nr_processes"
  data_format = "value"
  data_type = "integer"
  interval = "1m"
  [inputs.exec.tags]
    instance = "Nginx"

[[inputs.exec]]
  commands = ["pgrep -c gitea"]
  name_override = "nr_processes"
  data_format = "value"
  interval = "1m"
  [inputs.exec.tags]
    instance = "Gitea"

[[inputs.exec]]
  commands = ["pgrep -c gitlab-runner"]
  name_override = "nr_processes"
  data_format = "value"
  interval = "1m"
  [inputs.exec.tags]
    instance = "GitLab Runner"

[[inputs.exec]]
  commands = ["pgrep -c gitlab-workhors"]
  name_override = "nr_processes"
  data_format = "value"
  interval = "1m"
  [inputs.exec.tags]
    instance = "GitLab Workhors"

[[inputs.exec]]
  commands = ["pgrep -fc -u git puma"]
  name_override = "nr_processes"
  data_format = "value"
  interval = "1m"
  [inputs.exec.tags]
    instance = "GitLab Puma"

[[inputs.exec]]
  commands = ["pgrep -fc -u git sidekiq"]
  name_override = "nr_processes"
  data_format = "value"
  interval = "1m"
  [inputs.exec.tags]
    instance = "GitLab Sidekiq"

[[inputs.exec]]
  commands = ["pgrep -c -u redis redis-server"]
  name_override = "nr_processes"
  data_format = "value"
  interval = "1m"
  [inputs.exec.tags]
    instance = "Redis"

[[inputs.exec]]
  commands = ["pgrep -c -u postgres postgres"]
  name_override = "nr_processes"
  data_format = "value"
  interval = "1m"
  [inputs.exec.tags]
    instance = "PostgreSQL"

[[inputs.exec]]
  commands = ["pgrep -c mysql"]
  name_override = "nr_processes"
  data_format = "value"
  interval = "1m"
  [inputs.exec.tags]
    instance = "MariaDB"

[[inputs.exec]]
  commands = ["pgrep -c php-fpm"]
  name_override = "nr_processes"
  data_format = "value"
  interval = "1m"
  [inputs.exec.tags]
    instance = "PHP-FPM"

[[inputs.exec]]
  commands = ["pgrep -c ts3server"]
  name_override = "nr_processes"
  data_format = "value"
  interval = "1m"
  [inputs.exec.tags]
    instance = "TeamSpeak"

[[inputs.exec]]
  commands = ["pgrep -fc synapse.app.homeserver"]
  name_override = "nr_processes"
  data_format = "value"
  interval = "1m"
  [inputs.exec.tags]
    instance = "Synapse"

[[inputs.exec]]
  commands = ["pgrep -c lbrynet"]
  name_override = "nr_processes"
  data_format = "value"
  interval = "1m"
  [inputs.exec.tags]
    instance = "LBRYnet"
```

{
  "__inputs": [
    {
      "name": "DS_TELEGRAFINFLUXDB",
      "label": "TelegrafInfluxDB",
      "description": "Telegram data stored in InfluxDB",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "panel",
      "id": "flant-statusmap-panel",
      "name": "Statusmap",
      "version": "0.4.2"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.3.6"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph (old)",
      "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": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "datasource",
          "uid": "grafana"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "description": "Melroy's Server Status Uptime metrics page.",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 15226,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "influxdb",
        "uid": "si7HUVfGk"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 54,
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "si7HUVfGk"
          },
          "refId": "A"
        }
      ],
      "title": "General",
      "type": "row"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAFINFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "options": {
                "null": {
                  "index": 0,
                  "text": "N/A"
                }
              },
              "type": "value"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "days"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 3,
        "x": 0,
        "y": 1
      },
      "id": 62,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "9.3.6",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAFINFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "system",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"uptime\")/3600/24 FROM \"system\" WHERE $timeFilter GROUP BY time($__interval) ",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "uptime"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        }
      ],
      "title": "Uptime",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAFINFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "mappings": [
            {
              "options": {
                "0": {
                  "text": "Alert"
                }
              },
              "type": "value"
            },
            {
              "options": {
                "from": 1,
                "result": {
                  "text": "OK"
                },
                "to": 9999999
              },
              "type": "range"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "green",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 3,
        "y": 1
      },
      "id": 29,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "9.3.6",
      "targets": [
        {
          "alias": "",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAFINFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "nr_processes",
          "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": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "min"
              }
            ]
          ],
          "tags": [
            {
              "key": "host",
              "operator": "=~",
              "value": "/^$host$/"
            },
            {
              "condition": "AND",
              "key": "instance",
              "operator": "=~",
              "value": "/^$instance$/"
            }
          ]
        }
      ],
      "title": "Global Status",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAFINFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "noValue": "None",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "orange",
                "value": 1
              },
              {
                "color": "red",
                "value": 2
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 3,
        "x": 7,
        "y": 1
      },
      "id": 40,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "9.3.6",
      "targets": [
        {
          "alias": "",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAFINFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "processes_processes",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(\"value\") FROM \"nr_processes\" WHERE (\"host\" =~ /^$host$/ AND \"instance\" =~ /^$instance$/) AND \"value\" = 0 AND $timeFilter GROUP BY time($__interval) 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"
            }
          ]
        }
      ],
      "title": "Current Alert(s)",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAFINFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 3,
        "x": 10,
        "y": 1
      },
      "id": 36,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "9.3.6",
      "targets": [
        {
          "alias": "",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAFINFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "1m"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "processes_processes",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(\"value\") FROM (\n  SELECT last(\"value\") AS \"value\" FROM \"nr_processes\" WHERE (\"host\" =~ /^$host$/ AND \"instance\" =~ /^$instance$/) AND $timeFilter GROUP BY instance fill(null)\n)",
          "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"
            }
          ]
        }
      ],
      "title": "Monitored services",
      "type": "stat"
    },
    {
      "aliasColors": {
        "Alert raised": "red",
        "Raised alert(s)": "red",
        "processes_processes.count": "red"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAFINFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 0,
      "fillGradient": 0,
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 13,
        "y": 1
      },
      "hiddenSeries": false,
      "id": 33,
      "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": "9.3.6",
      "pointradius": 5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAFINFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "1m"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "processes_processes",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(\"value\") FROM \"nr_processes\" WHERE (\"host\" =~ /^$host$/ AND \"instance\" =~ /^$instance$/) AND \"value\" = 0 AND $timeFilter GROUP BY time($__interval) fill(none)",
          "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"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeRegions": [],
      "title": "Raised Alert(s)",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "mode": "time",
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 0,
          "format": "short",
          "label": "",
          "logBase": 1,
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false
      }
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAFINFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": "center",
            "displayMode": "auto",
            "filterable": false,
            "inspect": false
          },
          "mappings": [
            {
              "options": {
                "0": {
                  "text": "alert triggered"
                }
              },
              "type": "value"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 5,
        "x": 19,
        "y": 1
      },
      "id": 39,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": false,
        "sortBy": [
          {
            "desc": true,
            "displayName": "Time"
          }
        ]
      },
      "pluginVersion": "9.3.6",
      "targets": [
        {
          "alias": "",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAFINFLUXDB}"
          },
          "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 min(\"value\") AS \"number\" FROM \"nr_processes\" WHERE (\"host\" =~ /^$host$/ AND \"instance\" =~ /^$instance$/) AND \"value\" = 0 AND $timeFilter GROUP BY time($__interval), \"host\", \"instance\" fill(none)",
          "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$/"
            }
          ]
        }
      ],
      "title": "Last events",
      "type": "table"
    },
    {
      "collapsed": false,
      "datasource": {
        "type": "influxdb",
        "uid": "si7HUVfGk"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 6
      },
      "id": 48,
      "panels": [],
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "si7HUVfGk"
          },
          "refId": "A"
        }
      ],
      "title": "Services Status",
      "type": "row"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAFINFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "options": {
                "0": {
                  "index": 0,
                  "text": "✖"
                }
              },
              "type": "value"
            },
            {
              "options": {
                "from": 1,
                "result": {
                  "index": 1,
                  "text": "✔"
                },
                "to": 999
              },
              "type": "range"
            },
            {
              "options": {
                "match": "null",
                "result": {
                  "index": 2,
                  "text": "✖"
                }
              },
              "type": "special"
            }
          ],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "green",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 7
      },
      "id": 60,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "9.3.6",
      "targets": [
        {
          "alias": "$tag_instance",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAFINFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "host"
              ],
              "type": "tag"
            },
            {
              "params": [
                "instance"
              ],
              "type": "tag"
            }
          ],
          "hide": false,
          "measurement": "nr_processes",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "host",
              "operator": "=~",
              "value": "/^$host$/"
            },
            {
              "condition": "AND",
              "key": "instance",
              "operator": "=~",
              "value": "/^$instance$/"
            }
          ]
        }
      ],
      "title": "Service Stats",
      "transformations": [],
      "type": "stat"
    },
    {
      "collapsed": false,
      "datasource": {
        "type": "influxdb",
        "uid": "si7HUVfGk"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 15
      },
      "id": 56,
      "panels": [],
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "si7HUVfGk"
          },
          "refId": "A"
        }
      ],
      "title": "Services Uptime",
      "type": "row"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAFINFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "decimals": 3,
          "mappings": [],
          "max": 100,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "orange",
                "value": 98
              },
              {
                "color": "green",
                "value": 99
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 6,
        "x": 0,
        "y": 16
      },
      "id": 34,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "9.3.6",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAFINFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT sum(\"value\") * 100 / count(\"value\") FROM (SELECT (\"value\" / \"value\") AS \"value\" FROM \"nr_processes\" WHERE \"host\"=~/^$host$/ AND \"instance\" =~ /^$instance$/ AND $timeFilter)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "title": "Overall Uptime (Last 24 hours)",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAFINFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "decimals": 3,
          "mappings": [],
          "max": 100,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "orange",
                "value": 98
              },
              {
                "color": "green",
                "value": 99
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 6,
        "x": 6,
        "y": 16
      },
      "id": 52,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "9.3.6",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAFINFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT sum(\"value\") * 100 / count(\"value\") FROM (SELECT (\"value\" / \"value\") AS \"value\" FROM \"nr_processes\" WHERE \"host\"=~/^$host$/ AND \"instance\" =~ /^$instance$/ AND time > now() - 7d)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "title": "Overall Uptime (Last 7 days)",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAFINFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "decimals": 3,
          "mappings": [],
          "max": 100,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "orange",
                "value": 98
              },
              {
                "color": "green",
                "value": 99
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 6,
        "x": 12,
        "y": 16
      },
      "id": 57,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "9.3.6",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAFINFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT sum(\"value\") * 100 / count(\"value\") FROM (SELECT (\"value\" / \"value\") AS \"value\" FROM \"nr_processes\" WHERE \"host\"=~/^$host$/ AND \"instance\" =~ /^$instance$/ AND time > now() - 30d)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "title": "Overall Uptime (Last 30 days)",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAFINFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "decimals": 3,
          "mappings": [],
          "max": 100,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "orange",
                "value": 98
              },
              {
                "color": "green",
                "value": 99
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 6,
        "x": 18,
        "y": 16
      },
      "id": 58,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "9.3.6",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAFINFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT sum(\"value\") * 100 / count(\"value\") FROM (SELECT (\"value\" / \"value\") AS \"value\" FROM \"nr_processes\" WHERE \"host\"=~/^$host$/ AND \"instance\" =~ /^$instance$/ AND time > now() - 90d)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "title": "Overall Uptime (Last 90 days)",
      "type": "stat"
    },
    {
      "collapsed": false,
      "datasource": {
        "type": "influxdb",
        "uid": "si7HUVfGk"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 20
      },
      "id": 42,
      "panels": [],
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "si7HUVfGk"
          },
          "refId": "A"
        }
      ],
      "title": "Services Status",
      "type": "row"
    },
    {
      "cards": {
        "cardHSpacing": 3,
        "cardMinWidth": 2,
        "cardRound": 1,
        "cardVSpacing": 3
      },
      "color": {
        "cardColor": "#b4ff00",
        "colorScale": "linear",
        "colorScheme": "interpolateGnYlRd",
        "defaultColor": "#757575",
        "exponent": 0.5,
        "max": 1,
        "min": 0,
        "mode": "spectrum",
        "thresholds": []
      },
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAFINFLUXDB}"
      },
      "gridPos": {
        "h": 13,
        "w": 24,
        "x": 0,
        "y": 21
      },
      "highlightCards": true,
      "id": 37,
      "legend": {
        "show": false
      },
      "nullPointMode": "as zero",
      "pageSize": 15,
      "pluginVersion": "7.0.1",
      "seriesFilterIndex": -1,
      "statusmap": {
        "ConfigVersion": "v1"
      },
      "targets": [
        {
          "alias": "$tag_instance",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAFINFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "host"
              ],
              "type": "tag"
            },
            {
              "params": [
                "instance"
              ],
              "type": "tag"
            }
          ],
          "measurement": "nr_processes",
          "orderByTime": "ASC",
          "policy": "default",
          "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$/"
            }
          ]
        }
      ],
      "title": "Uptime",
      "tooltip": {
        "extraInfo": "",
        "freezeOnClick": false,
        "items": [],
        "show": true,
        "showExtraInfo": false,
        "showItems": false
      },
      "transformations": [],
      "type": "flant-statusmap-panel",
      "useMax": false,
      "usingPagination": false,
      "xAxis": {
        "show": true
      },
      "yAxis": {
        "maxWidth": -1,
        "minWidth": -4,
        "show": false
      },
      "yAxisSort": "metrics",
      "yLabel": {
        "delimiter": "",
        "labelTemplate": "",
        "usingSplitLabel": false
      }
    }
  ],
  "refresh": "15m",
  "schemaVersion": 37,
  "style": "dark",
  "tags": [
    "influxdb",
    "telegraf",
    "pgrep"
  ],
  "templating": {
    "list": [
      {
        "current": {},
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_TELEGRAFINFLUXDB}"
        },
        "definition": "",
        "hide": 0,
        "includeAll": true,
        "label": "Hostname",
        "multi": true,
        "name": "host",
        "options": [],
        "query": "SHOW TAG VALUES FROM system WITH KEY=host",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {},
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_TELEGRAFINFLUXDB}"
        },
        "definition": "",
        "hide": 0,
        "includeAll": true,
        "label": "Service",
        "multi": true,
        "name": "instance",
        "options": [],
        "query": "SHOW TAG VALUES FROM \"nr_processes\" WITH KEY = \"instance\" WHERE \"host\"=~/^$host$/",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-90d",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Melroy's Status Dashboard",
  "uid": "W3dcDjkGz",
  "version": 53,
  "weekStart": ""
}