diff --git a/homelab/stacks/monitoring/.env b/homelab/stacks/monitoring/.env deleted file mode 100644 index c58bb107..00000000 --- a/homelab/stacks/monitoring/.env +++ /dev/null @@ -1 +0,0 @@ -DOCKER_DATA=/home/admin/data/monitoring \ No newline at end of file diff --git a/homelab/stacks/monitoring/README.md b/homelab/stacks/monitoring/README.md deleted file mode 100644 index 5e808820..00000000 --- a/homelab/stacks/monitoring/README.md +++ /dev/null @@ -1,145 +0,0 @@ -# Grafana - -## Updating Configuration File -The Grafana config is edited by providing overrides in `$DOCKER_DATA/custom.ini`, which maps to `/etc/grafana/grafana.ini` inside the container. - -The `custom.ini` file stores secrets in plain text, so we can't keep it in version control. But I've included snippets for reference below: - -### Basic Server Config -```ini -[server] -domain = grafana.jafner.net -root_url = %(protocol)s://%(domain)s/ -force_migration = true -``` - -### Configure Auth to Sign In via Keycloak -```ini -[auth] -oauth_auto_login = true - -[auth.anonymous] -enabled = true - -[auth.generic_oauth] -name = OAuth -icon = signin -enabled = true -client_id = grafana.jafner.net -client_secret = ************************** -scopes = email openid profile -empty_scopes = false -auth_url = https://keycloak.jafner.net/realms/Jafner.net/protocol/openid-connect/auth -token_url = https://keycloak.jafner.net/realms/Jafner.net/protocol/openid-connect/token -api_url = https://keycloak.jafner.net/realms/Jafner.net/protocol/ -signout_redirect_url = https://grafana.jafner.net -``` - -### Configure Email Sending via SMTP (Protonmail) -```ini -[smtp] -enabled = true -host = smtp.protonmail.ch:587 -user = noreply@jafner.net -password = **************** -from_address = noreply@jafner.net -from_name = Grafana -startTLS_policy = OpportunisticStartTLS -``` - -# Monitoring Specification -Monitors are split into three types: Host, Application, and IoT -All monitors use a Prometheus exporter. - -## Hosts -| Name | IP (if static) | OS | Exporter | -|:----:|:--------------:|:--:|:--------:| -| Router | 192.168.1.1 | Linux 4.14) | [node_exporter](https://github.com/prometheus/node_exporter) | -| Server | 192.168.1.23 | Linux 5.10) | [node_exporter](https://github.com/prometheus/node_exporter) | -| Seedbox | 192.168.1.21 | Linux 5.10) | [node_exporter](https://github.com/prometheus/node_exporter) | -| NAS | 192.168.1.10 | FreeBSD 12.2) | ??? -| PiHole | 192.168.1.22 | Linux 5.10) | [node_exporter](https://github.com/prometheus/node_exporter) | - -## Applications -| Name | Address(es) | Exporter | -|:----:|:-------:|:--------:| -| Minecraft | e6.jafner.net, vanilla.jafner.net | [mc-monitor](https://github.com/itzg/mc-monitor) -| GitLab | gitlab.jafner.net | [GitLab Integrated Exporter](https://docs.gitlab.com/ee/administration/monitoring/prometheus/gitlab_metrics.html) -| Traefik | traefik.jafner.net | [Prometheus - Traefik.io](https://doc.traefik.io/traefik/observability/metrics/prometheus/) | -| Deluge | jafner.seedbox:52000, jafner.seedbox:52100, jafner.seedbox:52200 | [deluge_exporter](https://github.com/tobbez/deluge_exporter) | -| Plex | plex.jafner.net | [Tautulli](https://github.com/Tautulli/Tautulli) and [tautulli-exporter](https://github.com/nwalke/tautulli-exporter), or [plex_exporter](https://github.com/arnarg/plex_exporter) | -| PeerTube | peertube.jafner.net | [Add a Prometheus Exporter - GitHub Issue](https://github.com/Chocobozzz/PeerTube/issues/3742) | -| WordPress | nvgm.jafner.net | [wordpress-exporter](https://github.com/aorfanos/wordpress-exporter) | -| SabNZBD | sabnzbd.jafner.net | [sabnzbd_exporter](https://github.com/msroest/sabnzbd_exporter) | -| Uptime Kuma | uptime.jafner.tools | [Prometheus Integration - Uptime Kuma Wiki](https://github.com/louislam/uptime-kuma/wiki/Prometheus-Integration) | -| PiHole | jafner.pi1 | [pihole-exporter](https://github.com/eko/pihole-exporter) | -| ZFS | nas.jafner.net | [zfs_exporter](https://github.com/pdf/zfs_exporter) | - -## IoT -| Name | Hostname | Assigned IP | Note | -|:----:|:--------:|:-----------:|:----:| -| tasmota-1 | tasmota-F6441E-1054 | 192.168.1.50 | -| tasmota-2 | tasmota-F6D7D3-6099 | 192.168.1.51 | -| tasmota-3 | tasmota-F6F062-4194 | 192.168.1.52 | - -# Adding Loki and Promtail -Followed [this guide from Techno Tim](https://docs.technotim.live/posts/grafana-loki/). -Non-tracked changes include: -1. `docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions` to install the Loki docker plugin. - -## Instrumenting: Daemon-Level Logging -Edit `/etc/docker/daemon.json` to add the following block: - -```json -{ - "log-driver": "loki", - "log-opts": { - "loki-url": "http://localhost:3100/loki/api/v1/push", - "loki-batch-size": "400", - "loki-retries": "1", - "loki-timeout": "2s" - } -} -``` -NOTE: All logging will fail if the Loki container is inaccessible. This may cause the Docker daemon to lock up. These parameters are applied when a container is created, so all containers must be destroyed to resolve the issue. -NOTE: The batch size here is in lines for *all docker logs*. - -## Instrumenting: Per-Container Logging -Add the following logging parameter to each main-service container within a stack. -```yml -services: - : - logging: - driver: loki - options: - loki-url: http://localhost:3100/loki/api/v1/push - loki-batch-size: "50" - loki-retries: "1" - loki-timeout: "2s" - keep-file: "true" -``` -NOTE: The batch size here is in lines for *only the selected container*. - -See [loki log-opts](https://grafana.com/docs/loki/latest/clients/docker-driver/configuration/#supported-log-opt-options) for list of available configuration options for loki logging driver. -See [docker-compose logging](https://docs.docker.com/compose/compose-file/compose-file-v3/#logging) for Docker-compose logging reference. - -## Instrumenting: Default Docker Logging -Per: [Docker docs](https://docs.docker.com/config/containers/logging/configure/) -> The default logging driver is `json-file`. - -The configuration options for the `json-file` logging driver are [here](https://docs.docker.com/config/containers/logging/json-file/). - -Docker-compose adds a few labels to containers it starts. This feature is not comprehensively documented, but here: [Compose Specification](https://docs.docker.com/compose/compose-file/). And we can see what labels are added by default by simply looking at a deployed application (wg-easy): - -| Label Key | Value | -|:---------:|:-----:| -| `com.docker.compose.config-hash` | `f75588baa1056ddc618b1741805d2600b4380e13c5114106de6c8322f79dfd3f` | -| `com.docker.compose.container-number` | `1` | -| `com.docker.compose.oneoff` | `False` | -| `com.docker.compose.project` | `wireguard` | -| `com.docker.compose.project.config_files` | `docker-compose.yml` | -| `com.docker.compose.project.working_dir` | `/home/joey/homelab/jafner-net/config/wireguard` | -| `com.docker.compose.service` | `wg-easy` | -| `com.docker.compose.version` | `1.29.2` | - -These are *labels* on the container, which are distinct from *tags* in the actual json log payload. Log tags are [documented here](https://docs.docker.com/config/containers/logging/log_tags/). \ No newline at end of file diff --git a/homelab/stacks/monitoring/docker-compose.yml b/homelab/stacks/monitoring/docker-compose.yml index 0b3598ff..dc400a15 100644 --- a/homelab/stacks/monitoring/docker-compose.yml +++ b/homelab/stacks/monitoring/docker-compose.yml @@ -1,81 +1,10 @@ services: - grafana: - image: grafana/grafana-oss:latest - container_name: monitoring_grafana - restart: "no" - networks: - - monitoring - - web - user: "0" - volumes: - - ${DOCKER_DATA}/grafana:/var/lib/grafana - - ${DOCKER_DATA}/custom.ini:/etc/grafana/grafana.ini - labels: - - traefik.http.routers.grafana.rule=Host(`grafana.jafner.net`) - - traefik.http.routers.grafana.tls.certresolver=lets-encrypt - - traefik.http.routers.grafana.tls.options=tls12@file - - traefik.http.routers.grafana.middlewares=securityheaders@file - - prometheus: - image: prom/prometheus:latest - container_name: monitoring_prometheus - user: 1001:1001 - networks: - - monitoring - - web - ports: - - 9090:9090 - volumes: - - ./prometheus.yml:/etc/prometheus/prometheus.yml - - ${DOCKER_DATA}/prometheus:/prometheus - restart: "no" - command: - - "--config.file=/etc/prometheus/prometheus.yml" - labels: - - traefik.http.routers.prometheus-monitoring.rule=Host(`prometheus.jafner.net`) - - traefik.http.routers.prometheus-monitoring.tls.certresolver=lets-encrypt - - traefik.http.routers.prometheus-monitoring.middlewares=traefik-forward-auth-privileged@file - - exporter-ping: - image: czerwonk/ping_exporter:latest - container_name: monitoring_exporter-ping - restart: "no" - networks: - - monitoring - volumes: - - ./exporter-ping/config.yml:/config/config.yml - - exporter-docker: - image: prometheusnet/docker_exporter:latest - container_name: monitoring_exporter-docker - restart: "no" - networks: - - monitoring - volumes: - - /var/run/docker.sock:/var/run/docker.sock:ro - labels: - - traefik.enable=false - - exporter-pihole: - image: ekofr/pihole-exporter:latest - container_name: monitoring_exporter-pihole - env_file: - - path: ./exporter-pihole.env - required: true - - path: ./exporter-pihole_secrets.env - required: false - restart: "no" - networks: - - monitoring - labels: - - traefik.enable=false - uptime-kuma: image: louislam/uptime-kuma:latest container_name: monitoring_uptime-kuma restart: "no" volumes: - - $DOCKER_DATA/uptime-kuma:/app/data + - $APPDATA/uptime-kuma:/app/data - /var/run/docker.sock:/var/run/docker.sock networks: - web @@ -84,7 +13,5 @@ services: - traefik.http.routers.uptime-kuma.tls.certresolver=lets-encrypt networks: - monitoring: - external: true web: external: true diff --git a/homelab/stacks/monitoring/exporter-pihole.env b/homelab/stacks/monitoring/exporter-pihole.env deleted file mode 100644 index f5700630..00000000 --- a/homelab/stacks/monitoring/exporter-pihole.env +++ /dev/null @@ -1,2 +0,0 @@ -PIHOLE_HOSTNAME=192.168.1.32 -PORT=9617 \ No newline at end of file diff --git a/homelab/stacks/monitoring/exporter-ping/config.yml b/homelab/stacks/monitoring/exporter-ping/config.yml deleted file mode 100644 index ef0e7e53..00000000 --- a/homelab/stacks/monitoring/exporter-ping/config.yml +++ /dev/null @@ -1,29 +0,0 @@ -targets: - - 8.8.8.8 # google primary - - 1.1.1.1 # cloudflare primary - - 9.9.9.9 # quad9 primary - - 192.168.1.1 # local gateway - - jafner.net # own public ip - - tukw-dsl-gw76.tukw.qwest.net # Owned by CENTURYLINK-US-LEGACY-QWEST (ASN: 209) (https://www.findip-address.com/63.231.10.76) - - tukw-agw1.inet.qwest.net # Owned by CENTURYLINK-US-LEGACY-QWEST (ASN: 209) (https://www.findip-address.com/63.226.198.89) - - sea-edge-15.inet.qwest.net # Owned by CENTURYLINK-US-LEGACY-QWEST (ASN: 209) (https://www.findip-address.com/205.171.0.59) - - 4.68.38.173 # Owned by LEVEL3 (ASN: 3356) (https://www.findip-address.com/4.68.38.173) - - 4.69.219.210 # Owned by LEVEL3 (ASN: 3356) (https://www.findip-address.com/4.69.219.210) - - 4.30.140.62 # Owned by LEVEL3 (ASN: 3356) (https://www.findip-address.com/4.30.140.62) - - 172.71.144.3 # Owned by CLOUDFLARENET (ASN: 13335) (https://www.findip-address.com/172.71.144.3) - - 192.168.1.10 # Primary NAS - - 192.168.1.11 # Backup NAS - - 192.168.1.32 # Local DNS server - -dns: - refresh: 1m - nameserver: 1.1.1.1 - -ping: - interval: 5s - timeout: 3s - history-size: 5 - payload-size: 32 - -options: - disableIPv6: true \ No newline at end of file diff --git a/homelab/stacks/monitoring/grafana-dashboards/Home.json b/homelab/stacks/monitoring/grafana-dashboards/Home.json deleted file mode 100644 index cf36e35e..00000000 --- a/homelab/stacks/monitoring/grafana-dashboards/Home.json +++ /dev/null @@ -1,2942 +0,0 @@ -{ - "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" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 1, - "iteration": 1652428153868, - "links": [], - "liveNow": false, - "panels": [ - { - "aliasColors": { - "Busy": "#EAB839", - "Busy Iowait": "#890F02", - "Busy other": "#1F78C1", - "Idle": "#052B51", - "Idle - Waiting for something to happen": "#052B51", - "guest": "#9AC48A", - "idle": "#052B51", - "iowait": "#EAB839", - "irq": "#BF1B00", - "nice": "#C15C17", - "softirq": "#E24D42", - "steal": "#FCE2DE", - "system": "#508642", - "user": "#5195CE" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "decimals": 2, - "description": "Percentage of CPU utilized (averaged over last minute)", - "fieldConfig": { - "defaults": { - "links": [], - "unit": "short" - }, - "overrides": [] - }, - "fill": 4, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 4, - "x": 0, - "y": 0 - }, - "hiddenSeries": false, - "id": 111, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": 250, - "total": false, - "values": false - }, - "libraryPanel": { - "description": "Percentage of CPU utilized (averaged over last minute)", - "meta": { - "connectedDashboards": 1, - "created": "2022-05-13T05:32:44Z", - "createdBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - }, - "folderName": "General", - "folderUid": "", - "updated": "2022-05-13T05:32:44Z", - "updatedBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - } - }, - "name": "CPU Utilization", - "type": "graph", - "uid": "BZtVki_7k", - "version": 1 - }, - "lines": true, - "linewidth": 1, - "links": [], - "maxPerRow": 6, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": true, - "pluginVersion": "8.5.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:376", - "alias": "Idle", - "fill": 0 - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (instance)(rate(node_cpu_seconds_total{mode!=\"idle\",job=\"$job\"}[1m])) * 100", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "Utilization", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "sum by (mode)(rate(node_cpu_seconds_total{mode='idle',job=\"$job\"}[1m])) * 100", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Idle", - "refId": "F", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:143", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "CPU Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:123", - "format": "short", - "label": "", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:124", - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Non available RAM memory", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 4, - "x": 4, - "y": 0 - }, - "hiddenSeries": false, - "hideTimeOverride": false, - "id": 119, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "libraryPanel": { - "description": "Non available RAM memory", - "meta": { - "connectedDashboards": 1, - "created": "2022-05-13T05:32:44Z", - "createdBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - }, - "folderName": "General", - "folderUid": "", - "updated": "2022-05-13T05:32:44Z", - "updatedBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - } - }, - "name": "RAM Utilization", - "type": "graph", - "uid": "6VhEki_nk", - "version": 1 - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "((node_memory_MemTotal_bytes{job=\"$job\"} - node_memory_MemFree_bytes{job=\"$job\"}) / (node_memory_MemTotal_bytes{job=\"$job\"} )) * 100", - "format": "time_series", - "hide": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "100 - ((node_memory_MemAvailable_bytes{job=\"$job\"} * 100) / node_memory_MemTotal_bytes{job=\"$job\"})", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "Memory Utilization", - "refId": "B", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:430", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "RAM Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:409", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:410", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Recv_bytes_eth2": "#7EB26D", - "Recv_bytes_lo": "#0A50A1", - "Recv_drop_eth2": "#6ED0E0", - "Recv_drop_lo": "#E0F9D7", - "Recv_errs_eth2": "#BF1B00", - "Recv_errs_lo": "#CCA300", - "Trans_bytes_eth2": "#7EB26D", - "Trans_bytes_lo": "#0A50A1", - "Trans_drop_eth2": "#6ED0E0", - "Trans_drop_lo": "#E0F9D7", - "Trans_errs_eth2": "#BF1B00", - "Trans_errs_lo": "#CCA300", - "recv_bytes_lo": "#0A50A1", - "recv_drop_eth0": "#99440A", - "recv_drop_lo": "#967302", - "recv_errs_eth0": "#BF1B00", - "recv_errs_lo": "#890F02", - "trans_bytes_eth0": "#7EB26D", - "trans_bytes_lo": "#0A50A1", - "trans_drop_eth0": "#99440A", - "trans_drop_lo": "#967302", - "trans_errs_eth0": "#BF1B00", - "trans_errs_lo": "#890F02" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Basic network info per interface", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 4, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 4, - "x": 8, - "y": 0 - }, - "hiddenSeries": false, - "id": 115, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": false - }, - "libraryPanel": { - "description": "Basic network info per interface", - "meta": { - "connectedDashboards": 1, - "created": "2022-05-13T05:32:44Z", - "createdBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - }, - "folderName": "General", - "folderUid": "", - "updated": "2022-05-13T05:32:44Z", - "updatedBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - } - }, - "name": "Network Traffic Basic", - "type": "graph", - "uid": "_daeim_7k", - "version": 1 - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:618", - "alias": "Download", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (job) (rate(node_network_receive_bytes_total{job=\"$job\"}[1m])*8)", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Download", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "sum by (job) (rate(node_network_transmit_bytes_total{job=\"$job\"}[1m])*8)", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Upload", - "refId": "B", - "step": 240 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Network Traffic Basic", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:625", - "format": "bps", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:626", - "format": "pps", - "label": "", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Percentage of boot disk used", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 4, - "x": 12, - "y": 0 - }, - "hiddenSeries": false, - "id": 107, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "libraryPanel": { - "description": "Percentage of boot disk used", - "meta": { - "connectedDashboards": 1, - "created": "2022-05-13T05:32:44Z", - "createdBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - }, - "folderName": "General", - "folderUid": "", - "updated": "2022-05-13T05:32:44Z", - "updatedBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - } - }, - "name": "Boot Disk Used", - "type": "graph", - "uid": "iE_Hiil7k", - "version": 1 - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "100 - ((node_filesystem_avail_bytes{job=\"$job\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"} * 100) / node_filesystem_size_bytes{job=\"$job\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"})", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Boot Disk Utilization", - "refId": "A", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:588", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "Boot Disk Used", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:570", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:571", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Used Swap", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 4, - "x": 16, - "y": 0 - }, - "hiddenSeries": false, - "id": 123, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "libraryPanel": { - "description": "Used Swap", - "meta": { - "connectedDashboards": 1, - "created": "2022-05-13T05:32:44Z", - "createdBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - }, - "folderName": "General", - "folderUid": "", - "updated": "2022-05-13T05:32:44Z", - "updatedBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - } - }, - "name": "Swap Utilization", - "type": "graph", - "uid": "4owPkil7z", - "version": 1 - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "((node_memory_SwapTotal_bytes{job=\"$job\"} - node_memory_SwapFree_bytes{job=\"$job\"}) / (node_memory_SwapTotal_bytes{job=\"$job\"} )) * 100", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Swap Utilization", - "refId": "A", - "step": 240 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Swap Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:456", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:457", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total number of CPU cores", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 20, - "y": 0 - }, - "id": 109, - "libraryPanel": { - "description": "Total number of CPU cores", - "meta": { - "connectedDashboards": 1, - "created": "2022-05-13T05:32:44Z", - "createdBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - }, - "folderName": "General", - "folderUid": "", - "updated": "2022-05-13T05:32:44Z", - "updatedBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - } - }, - "name": "CPU Cores", - "type": "stat", - "uid": "P_X6zi_nz", - "version": 1 - }, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "count(count(node_cpu_seconds_total{job=\"$job\"}) by (cpu))", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "CPU Cores", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total RAM", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 22, - "y": 0 - }, - "id": 117, - "libraryPanel": { - "description": "Total RAM", - "meta": { - "connectedDashboards": 1, - "created": "2022-05-13T05:32:44Z", - "createdBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - }, - "folderName": "General", - "folderUid": "", - "updated": "2022-05-13T05:32:44Z", - "updatedBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - } - }, - "name": "RAM Total", - "type": "stat", - "uid": "8ZF6zmlnk", - "version": 1 - }, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_memory_MemTotal_bytes{job=\"$job\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "RAM Total", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "System uptime", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 2, - "x": 20, - "y": 4 - }, - "id": 113, - "libraryPanel": { - "description": "System uptime", - "meta": { - "connectedDashboards": 1, - "created": "2022-05-13T05:32:44Z", - "createdBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - }, - "folderName": "General", - "folderUid": "", - "updated": "2022-05-13T05:32:44Z", - "updatedBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - } - }, - "name": "Host Uptime", - "type": "stat", - "uid": "MhbURm_nz", - "version": 1 - }, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_time_seconds{job=\"$job\"} - node_boot_time_seconds{job=\"$job\"}", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Host Uptime", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total disk capacity", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(50, 172, 45, 0.97)", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 70 - }, - { - "color": "rgba(245, 54, 54, 0.9)", - "value": 90 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 1, - "x": 22, - "y": 4 - }, - "id": 105, - "libraryPanel": { - "description": "Total disk capacity", - "meta": { - "connectedDashboards": 1, - "created": "2022-05-13T05:32:44Z", - "createdBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - }, - "folderName": "General", - "folderUid": "", - "updated": "2022-05-13T05:32:44Z", - "updatedBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - } - }, - "name": "Boot Disk Total", - "type": "stat", - "uid": "zxE6zilnz", - "version": 1 - }, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_filesystem_size_bytes{job=\"$job\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"}", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "Boot Disk Total", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total SWAP", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 1, - "x": 23, - "y": 4 - }, - "id": 121, - "libraryPanel": { - "description": "Total SWAP", - "meta": { - "connectedDashboards": 1, - "created": "2022-05-13T05:32:44Z", - "createdBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - }, - "folderName": "General", - "folderUid": "", - "updated": "2022-05-13T05:32:44Z", - "updatedBy": { - "avatarUrl": "/avatar/2e9c3cc799d14624f820eb9d921be788", - "id": 1, - "name": "jafner" - } - }, - "name": "SWAP Total", - "type": "stat", - "uid": "GW0eki_nz", - "version": 1 - }, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_memory_SwapTotal_bytes{job=\"$job\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "SWAP Total", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "fillOpacity": 70, - "lineWidth": 0, - "spanNulls": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "dark-red", - "value": null - }, - { - "color": "green", - "value": 1 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byFrameRefID", - "options": "A" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "index": 0, - "text": "Down" - }, - "1": { - "index": 1, - "text": "Up" - } - }, - "type": "value" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 4, - "x": 0, - "y": 7 - }, - "id": 101, - "options": { - "alignValue": "left", - "legend": { - "displayMode": "hidden", - "placement": "bottom" - }, - "mergeValues": true, - "rowHeight": 0.9, - "showValue": "never", - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.1.0", - "targets": [ - { - "exemplar": true, - "expr": "sum by (server_host) (minecraft_status_healthy{})", - "format": "time_series", - "instant": false, - "interval": "", - "legendFormat": "{{ server_host }}", - "refId": "A" - } - ], - "title": "Minecraft Server Status", - "type": "state-timeline" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 4, - "x": 4, - "y": 7 - }, - "id": 22, - "options": { - "legend": { - "calcs": [], - "displayMode": "hidden", - "placement": "bottom" - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "minecraft_status_response_time_seconds{}", - "interval": "", - "legendFormat": "{{ server_host }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Minecraft Server Ping", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "mappings": [], - "max": 20, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 3, - "x": 8, - "y": 7 - }, - "id": 24, - "options": { - "legend": { - "calcs": [], - "displayMode": "hidden", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "minecraft_status_players_online_count{}", - "interval": "", - "legendFormat": "{{ server_host }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Minecraft Players Online", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 4, - "x": 11, - "y": 7 - }, - "id": 28, - "options": { - "legend": { - "calcs": [], - "displayMode": "hidden", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "sum by (service) (traefik_service_open_connections{})", - "interval": "", - "legendFormat": "{{ service }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Traefik Open Connections", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 5, - "x": 15, - "y": 7 - }, - "id": 30, - "options": { - "legend": { - "calcs": [], - "displayMode": "hidden", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.1.0", - "targets": [ - { - "exemplar": true, - "expr": "sum by (service) (rate(traefik_service_requests_total{}[1m]))", - "interval": "", - "legendFormat": "{{ service }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Traefik Requests in last minute", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Each point is a counter for the last 24 hours.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [] - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 3, - "x": 20, - "y": 7 - }, - "id": 8, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom" - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.1.0", - "targets": [ - { - "expr": "pihole_queries_cached", - "interval": "", - "legendFormat": "Cached", - "refId": "B" - }, - { - "expr": "pihole_queries_forwarded", - "interval": "", - "legendFormat": "Forwarded", - "refId": "C" - }, - { - "expr": "pihole_ads_blocked_today", - "interval": "", - "legendFormat": "Blocked", - "refId": "D" - } - ], - "title": "PiHole DNS Queries", - "type": "piechart" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 1, - "x": 23, - "y": 7 - }, - "id": 43, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "pihole_unique_clients{}", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "PiHole Unique Clients", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 3, - "x": 0, - "y": 15 - }, - "id": 59, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "value_and_name" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "sum by (tracker) (deluge_torrents{job=\"deluge\", tracker=~\"ggn|mam|emp|pub\"})", - "interval": "", - "legendFormat": "{{ tracker }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Deluge Torrents", - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "unit": "decbytes" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 3, - "x": 3, - "y": 15 - }, - "hiddenSeries": false, - "id": 61, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:18", - "alias": "/download/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (tracker) (rate(deluge_libtorrent_net_recv_bytes_total{tracker=~\"ggn|mam|emp|pub\"}[24h]))", - "interval": "", - "legendFormat": "{{ tracker }} download", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum by (tracker) (rate(deluge_libtorrent_net_sent_bytes_total{tracker=~\"ggn|mam|emp|pub\"}[24h]))", - "hide": false, - "interval": "", - "legendFormat": "{{ tracker }} upload", - "refId": "B" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Deluge Traffic", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "logBase": 1, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "left", - "displayMode": "auto", - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 4, - "x": 6, - "y": 15 - }, - "id": 63, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "deluge_libtorrent_ses_num_seeding_torrents{}", - "hide": false, - "instant": false, - "interval": "", - "legendFormat": "{{tracker}} seeding", - "refId": "A" - }, - { - "exemplar": true, - "expr": "deluge_libtorrent_ses_num_checking_torrents{} ", - "hide": false, - "interval": "", - "legendFormat": "{{tracker}} checking", - "refId": "B" - }, - { - "exemplar": true, - "expr": "deluge_libtorrent_ses_num_downloading_torrents{}", - "hide": false, - "interval": "", - "legendFormat": "{{tracker}} downloading", - "refId": "C" - }, - { - "exemplar": true, - "expr": "deluge_libtorrent_ses_num_error_torrents{}", - "hide": false, - "interval": "", - "legendFormat": "{{tracker}} error", - "refId": "D" - }, - { - "exemplar": true, - "expr": "deluge_libtorrent_ses_num_stopped_torrents{}", - "hide": false, - "interval": "", - "legendFormat": "{{tracker}} stopped", - "refId": "E" - } - ], - "title": "Deluge Torrent States", - "transformations": [ - { - "id": "reduce", - "options": { - "includeTimeField": false, - "mode": "seriesToRows", - "reducers": [ - "lastNotNull" - ] - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" - }, - "custom": { - "fillOpacity": 70, - "lineWidth": 0, - "spanNulls": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "transparent", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byFrameRefID", - "options": "A" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "red", - "index": 0, - "text": "Down" - }, - "1": { - "color": "green", - "index": 1, - "text": "Up" - } - }, - "type": "value" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 4, - "x": 10, - "y": 15 - }, - "id": 103, - "options": { - "alignValue": "left", - "legend": { - "displayMode": "list", - "placement": "bottom" - }, - "mergeValues": true, - "rowHeight": 0.9, - "showValue": "never", - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.1.0", - "targets": [ - { - "exemplar": true, - "expr": "sum by (monitor_name) (monitor_status{})", - "instant": false, - "interval": "", - "legendFormat": "{{ monitor_name }}", - "refId": "A" - } - ], - "title": "Uptime Kuma Server Status", - "type": "state-timeline" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 90, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "dark-red", - "value": null - }, - { - "color": "green", - "value": 14 - } - ] - }, - "unit": "d" - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 5, - "x": 14, - "y": 15 - }, - "id": 32, - "options": { - "displayMode": "lcd", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "monitor_cert_days_remaining{}", - "interval": "", - "legendFormat": "{{ monitor_name }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Uptime Kuma Time until Cert Expiry", - "type": "bargauge" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "log": 2, - "type": "log" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ms" - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 5, - "x": 19, - "y": 15 - }, - "id": 36, - "options": { - "legend": { - "calcs": [], - "displayMode": "hidden", - "placement": "bottom" - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "monitor_response_time{}", - "interval": "", - "legendFormat": "{{ monitor_name }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Uptime Kuma Ping", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 4, - "x": 0, - "y": 25 - }, - "id": 65, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "plex_library_section_size_count{name=\"Movies\"}", - "interval": "", - "legendFormat": "Movies", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "plex_library_section_size_count{name=\"Shows\"}", - "hide": false, - "interval": "", - "legendFormat": "TV Shows", - "refId": "B" - }, - { - "exemplar": true, - "expr": "plex_library_section_size_count{name=\"Music\"}", - "hide": false, - "interval": "", - "legendFormat": "Music Artists", - "refId": "C" - } - ], - "title": "Plex Library Size", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 2, - "x": 4, - "y": 25 - }, - "id": 69, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "max_over_time(plex_sessions_active_count[24h])", - "interval": "", - "legendFormat": "Last Day", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "max_over_time(plex_sessions_active_count[7d])", - "hide": false, - "interval": "", - "legendFormat": "Last Week", - "refId": "B" - }, - { - "exemplar": true, - "expr": "max_over_time(plex_sessions_active_count[30d])", - "hide": false, - "interval": "", - "legendFormat": "Last Month", - "refId": "C" - } - ], - "title": "Plex Peak Sessions", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 5, - "x": 6, - "y": 25 - }, - "id": 93, - "options": { - "legend": { - "calcs": [], - "displayMode": "hidden", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "sabnzbd_queue_download_rate_bytes_per_second{}", - "interval": "", - "legendFormat": "Download Rate", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "SabNZBD Download Rate", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 5, - "x": 11, - "y": 25 - }, - "id": 99, - "options": { - "legend": { - "calcs": [], - "displayMode": "hidden", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "sabnzbd_queue_total_size_bytes{}", - "interval": "", - "legendFormat": "Queue Size", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "SabNZBD Queue Size", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 4, - "x": 16, - "y": 25 - }, - "id": 97, - "options": { - "legend": { - "calcs": [], - "displayMode": "hidden", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "sabnzbd_queue_size{}", - "interval": "", - "legendFormat": "Items", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "SabNZBD Items in Queue", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 4, - "x": 20, - "y": 25 - }, - "id": 95, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "sabnzbd_download_bytes{}", - "interval": "", - "legendFormat": "{{ period }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "SabNZBD Total Download", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 4, - "x": 0, - "y": 30 - }, - "id": 67, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "plex_sessions_active_count{}", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Plex Active Sessions", - "type": "stat" - } - ], - "refresh": "5s", - "schemaVersion": 36, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": false, - "text": "joey-server", - "value": "joey-server" - }, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "definition": "label_values(node_uname_info,job)", - "hide": 0, - "includeAll": false, - "label": "Host", - "multi": false, - "name": "job", - "options": [], - "query": { - "query": "label_values(node_uname_info,job)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "type": "query" - } - ] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Home", - "uid": "P2kNT_l7k", - "version": 2, - "weekStart": "" -} \ No newline at end of file diff --git a/homelab/stacks/monitoring/grafana-dashboards/Hosts.json b/homelab/stacks/monitoring/grafana-dashboards/Hosts.json deleted file mode 100644 index 270a33a7..00000000 --- a/homelab/stacks/monitoring/grafana-dashboards/Hosts.json +++ /dev/null @@ -1,5457 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "dark-red", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 6, - "links": [], - "liveNow": false, - "panels": [ - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 2, - "panels": [], - "title": "Joey-server", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total disk capacity", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(50, 172, 45, 0.97)", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 70 - }, - { - "color": "rgba(245, 54, 54, 0.9)", - "value": 90 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 1 - }, - "id": 12, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_filesystem_size_bytes{job=\"joey-server\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"}", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "Boot Disk Total", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total number of CPU cores", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 1 - }, - "id": 34, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "count(count(node_cpu_seconds_total{job=\"joey-server\"}) by (cpu))", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "CPU Cores", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total RAM", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 8, - "y": 1 - }, - "id": 46, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_memory_MemTotal_bytes{job=\"joey-server\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "RAM Total", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "System uptime", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 12, - "y": 1 - }, - "id": 62, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_time_seconds{job=\"joey-server\"} - node_boot_time_seconds{job=\"joey-server\"}", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Host Uptime", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total disk capacity", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(50, 172, 45, 0.97)", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 70 - }, - { - "color": "rgba(245, 54, 54, 0.9)", - "value": 90 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 16, - "y": 1 - }, - "id": 72, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_filesystem_size_bytes{job=\"joey-server\",mountpoint=~\"/mnt/md0\",fstype!=\"rootfs\"}", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "Secondary Disk Total", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total SWAP", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 20, - "y": 1 - }, - "id": 70, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_memory_SwapTotal_bytes{job=\"joey-server\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "SWAP Total", - "type": "stat" - }, - { - "alert": { - "alertRuleTags": {}, - "conditions": [ - { - "evaluator": { - "params": [ - 80 - ], - "type": "gt" - }, - "operator": { - "type": "and" - }, - "query": { - "params": [ - "A", - "5m", - "now" - ] - }, - "reducer": { - "params": [], - "type": "avg" - }, - "type": "query" - } - ], - "executionErrorState": "keep_state", - "for": "5m", - "frequency": "1m", - "handler": 1, - "message": "", - "name": "Boot Disk Used > 80% on `joey-server`", - "noDataState": "keep_state", - "notifications": [ - { - "uid": "d6E-Crl7k" - } - ] - }, - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Percentage of boot disk used", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 0, - "y": 4 - }, - "hiddenSeries": false, - "id": 22, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "100 - ((node_filesystem_avail_bytes{job=\"joey-server\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"} * 100) / node_filesystem_size_bytes{job=\"joey-server\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"})", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Boot Disk Utilization", - "refId": "A", - "step": 240 - } - ], - "thresholds": [ - { - "colorMode": "critical", - "fill": true, - "line": true, - "op": "gt", - "value": 80, - "visible": true - } - ], - "timeRegions": [], - "title": "Boot Disk Used", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:570", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:571", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Busy": "#EAB839", - "Busy Iowait": "#890F02", - "Busy other": "#1F78C1", - "Idle": "#052B51", - "Idle - Waiting for something to happen": "#052B51", - "guest": "#9AC48A", - "idle": "#052B51", - "iowait": "#EAB839", - "irq": "#BF1B00", - "nice": "#C15C17", - "softirq": "#E24D42", - "steal": "#FCE2DE", - "system": "#508642", - "user": "#5195CE" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "decimals": 2, - "description": "Percentage of CPU utilized (averaged over last minute)", - "fieldConfig": { - "defaults": { - "links": [], - "unit": "short" - }, - "overrides": [] - }, - "fill": 4, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 4, - "y": 4 - }, - "hiddenSeries": false, - "id": 33, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": 250, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "maxPerRow": 6, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": true, - "pluginVersion": "8.5.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:376", - "alias": "Idle", - "fill": 0 - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (instance)(rate(node_cpu_seconds_total{mode!=\"idle\",job=\"joey-server\"}[1m])) * 100", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "Utilization", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "sum by (mode)(rate(node_cpu_seconds_total{mode='idle',job=\"joey-server\"}[1m])) * 100", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Idle", - "refId": "F", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:143", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "CPU Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:123", - "format": "short", - "label": "", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:124", - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "alert": { - "alertRuleTags": {}, - "conditions": [ - { - "evaluator": { - "params": [ - 80 - ], - "type": "gt" - }, - "operator": { - "type": "and" - }, - "query": { - "params": [ - "B", - "5m", - "now" - ] - }, - "reducer": { - "params": [], - "type": "avg" - }, - "type": "query" - }, - { - "evaluator": { - "params": [ - 99 - ], - "type": "gt" - }, - "operator": { - "type": "or" - }, - "query": { - "params": [ - "B", - "10s", - "now" - ] - }, - "reducer": { - "params": [], - "type": "avg" - }, - "type": "query" - } - ], - "executionErrorState": "keep_state", - "for": "5m", - "frequency": "1m", - "handler": 1, - "message": "", - "name": "RAM Utilization > 80% on joey-server", - "noDataState": "keep_state", - "notifications": [ - { - "uid": "d6E-Crl7k" - } - ] - }, - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Non available RAM memory", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 8, - "y": 4 - }, - "hiddenSeries": false, - "hideTimeOverride": false, - "id": 45, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "exemplar": true, - "expr": "100 - ((node_memory_MemAvailable_bytes{job=\"joey-server\"} * 100) / node_memory_MemTotal_bytes{job=\"joey-server\"})", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "Memory Utilization", - "refId": "B", - "step": 240 - } - ], - "thresholds": [ - { - "colorMode": "critical", - "fill": true, - "line": true, - "op": "gt", - "value": 80, - "visible": true - } - ], - "timeRegions": [], - "title": "RAM Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:409", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:410", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Recv_bytes_eth2": "#7EB26D", - "Recv_bytes_lo": "#0A50A1", - "Recv_drop_eth2": "#6ED0E0", - "Recv_drop_lo": "#E0F9D7", - "Recv_errs_eth2": "#BF1B00", - "Recv_errs_lo": "#CCA300", - "Trans_bytes_eth2": "#7EB26D", - "Trans_bytes_lo": "#0A50A1", - "Trans_drop_eth2": "#6ED0E0", - "Trans_drop_lo": "#E0F9D7", - "Trans_errs_eth2": "#BF1B00", - "Trans_errs_lo": "#CCA300", - "recv_bytes_lo": "#0A50A1", - "recv_drop_eth0": "#99440A", - "recv_drop_lo": "#967302", - "recv_errs_eth0": "#BF1B00", - "recv_errs_lo": "#890F02", - "trans_bytes_eth0": "#7EB26D", - "trans_bytes_lo": "#0A50A1", - "trans_drop_eth0": "#99440A", - "trans_drop_lo": "#967302", - "trans_errs_eth0": "#BF1B00", - "trans_errs_lo": "#890F02" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Basic network info per interface", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 4, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 12, - "y": 4 - }, - "hiddenSeries": false, - "id": 58, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:618", - "alias": "Download", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (job) (rate(node_network_receive_bytes_total{job=\"joey-server\"}[1m])*8)", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Download", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "sum by (job) (rate(node_network_transmit_bytes_total{job=\"joey-server\"}[1m])*8)", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Upload", - "refId": "B", - "step": 240 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Network Traffic Basic", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:625", - "format": "bps", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:626", - "format": "pps", - "label": "", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "alert": { - "alertRuleTags": {}, - "conditions": [ - { - "evaluator": { - "params": [ - 80 - ], - "type": "gt" - }, - "operator": { - "type": "and" - }, - "query": { - "params": [ - "A", - "5m", - "now" - ] - }, - "reducer": { - "params": [], - "type": "avg" - }, - "type": "query" - } - ], - "executionErrorState": "keep_state", - "for": "5m", - "frequency": "1m", - "handler": 1, - "message": "", - "name": "Secondary Disk Used > 80% on `joey-server`", - "noDataState": "keep_state", - "notifications": [ - { - "uid": "d6E-Crl7k" - } - ] - }, - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Percentage of secondary disk used", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 16, - "y": 4 - }, - "hiddenSeries": false, - "id": 71, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "100 - ((node_filesystem_avail_bytes{job=\"joey-server\",mountpoint=~\"/mnt/md0\",fstype!=\"rootfs\"} * 100) / node_filesystem_size_bytes{job=\"joey-server\",mountpoint=~\"/mnt/md0\",fstype!=\"rootfs\"})", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Boot Disk Utilization", - "refId": "A", - "step": 240 - } - ], - "thresholds": [ - { - "colorMode": "critical", - "fill": true, - "line": true, - "op": "gt", - "value": 80, - "visible": true - } - ], - "timeRegions": [], - "title": "Secondary Disk Used", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:570", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:571", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Used Swap", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 20, - "y": 4 - }, - "hiddenSeries": false, - "id": 69, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "((node_memory_SwapTotal_bytes{job=\"joey-server\"} - node_memory_SwapFree_bytes{job=\"joey-server\"}) / (node_memory_SwapTotal_bytes{job=\"joey-server\"} )) * 100", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Swap Utilization", - "refId": "A", - "step": 240 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Swap Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:456", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:457", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 13 - }, - "id": 4, - "panels": [], - "title": "Joey-seedbox", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total disk capacity", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(50, 172, 45, 0.97)", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 70 - }, - { - "color": "rgba(245, 54, 54, 0.9)", - "value": 90 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 14 - }, - "id": 16, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_filesystem_size_bytes{job=\"joey-seedbox\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"}", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "Boot Disk Total", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total number of CPU cores", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 14 - }, - "id": 32, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "count(count(node_cpu_seconds_total{job=\"joey-seedbox\"}) by (cpu))", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "CPU Cores", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total RAM", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 8, - "y": 14 - }, - "id": 44, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_memory_MemTotal_bytes{job=\"joey-seedbox\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "RAM Total", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "System uptime", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 8, - "x": 12, - "y": 14 - }, - "id": 61, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_time_seconds{job=\"joey-seedbox\"} - node_boot_time_seconds{job=\"joey-seedbox\"}", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Host Uptime", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total SWAP", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 20, - "y": 14 - }, - "id": 68, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_memory_SwapTotal_bytes{job=\"joey-seedbox\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "SWAP Total", - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Percentage of boot disk used", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 0, - "y": 17 - }, - "hiddenSeries": false, - "id": 20, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "100 - ((node_filesystem_avail_bytes{job=\"joey-seedbox\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"} * 100) / node_filesystem_size_bytes{job=\"joey-seedbox\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"})", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Boot Disk Utilization", - "refId": "A", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:588", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "Boot Disk Used", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:570", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:571", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Busy": "#EAB839", - "Busy Iowait": "#890F02", - "Busy other": "#1F78C1", - "Idle": "#052B51", - "Idle - Waiting for something to happen": "#052B51", - "guest": "#9AC48A", - "idle": "#052B51", - "iowait": "#EAB839", - "irq": "#BF1B00", - "nice": "#C15C17", - "softirq": "#E24D42", - "steal": "#FCE2DE", - "system": "#508642", - "user": "#5195CE" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "decimals": 2, - "description": "Percentage of CPU utilized (averaged over last minute)", - "fieldConfig": { - "defaults": { - "links": [], - "unit": "short" - }, - "overrides": [] - }, - "fill": 4, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 4, - "y": 17 - }, - "hiddenSeries": false, - "id": 31, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": 250, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "maxPerRow": 6, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": true, - "pluginVersion": "8.5.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:376", - "alias": "Idle", - "fill": 0 - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (instance)(rate(node_cpu_seconds_total{mode!=\"idle\",job=\"joey-seedbox\"}[1m])) * 100", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "Utilization", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "sum by (mode)(rate(node_cpu_seconds_total{mode='idle',job=\"joey-seedbox\"}[1m])) * 100", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Idle", - "refId": "F", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:143", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "CPU Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:123", - "format": "short", - "label": "", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:124", - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Non available RAM memory", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 8, - "y": 17 - }, - "hiddenSeries": false, - "hideTimeOverride": false, - "id": 43, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "((node_memory_MemTotal_bytes{job=\"joey-seedbox\"} - node_memory_MemFree_bytes{job=\"joey-seedbox\"}) / (node_memory_MemTotal_bytes{job=\"joey-seedbox\"} )) * 100", - "format": "time_series", - "hide": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "100 - ((node_memory_MemAvailable_bytes{job=\"joey-seedbox\"} * 100) / node_memory_MemTotal_bytes{job=\"joey-seedbox\"})", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "Memory Utilization", - "refId": "B", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:430", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "RAM Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:409", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:410", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Recv_bytes_eth2": "#7EB26D", - "Recv_bytes_lo": "#0A50A1", - "Recv_drop_eth2": "#6ED0E0", - "Recv_drop_lo": "#E0F9D7", - "Recv_errs_eth2": "#BF1B00", - "Recv_errs_lo": "#CCA300", - "Trans_bytes_eth2": "#7EB26D", - "Trans_bytes_lo": "#0A50A1", - "Trans_drop_eth2": "#6ED0E0", - "Trans_drop_lo": "#E0F9D7", - "Trans_errs_eth2": "#BF1B00", - "Trans_errs_lo": "#CCA300", - "recv_bytes_lo": "#0A50A1", - "recv_drop_eth0": "#99440A", - "recv_drop_lo": "#967302", - "recv_errs_eth0": "#BF1B00", - "recv_errs_lo": "#890F02", - "trans_bytes_eth0": "#7EB26D", - "trans_bytes_lo": "#0A50A1", - "trans_drop_eth0": "#99440A", - "trans_drop_lo": "#967302", - "trans_errs_eth0": "#BF1B00", - "trans_errs_lo": "#890F02" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Basic network info per interface", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 4, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 8, - "x": 12, - "y": 17 - }, - "hiddenSeries": false, - "id": 57, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:618", - "alias": "Download", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (job) (rate(node_network_receive_bytes_total{job=\"joey-seedbox\"}[1m])*8)", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Download", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "sum by (job) (rate(node_network_transmit_bytes_total{job=\"joey-seedbox\"}[1m])*8)", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Upload", - "refId": "B", - "step": 240 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Network Traffic Basic", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:625", - "format": "bps", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:626", - "format": "pps", - "label": "", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Used Swap", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 20, - "y": 17 - }, - "hiddenSeries": false, - "id": 67, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "((node_memory_SwapTotal_bytes{job=\"joey-seedbox\"} - node_memory_SwapFree_bytes{job=\"joey-seedbox\"}) / (node_memory_SwapTotal_bytes{job=\"joey-seedbox\"} )) * 100", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Swap Utilization", - "refId": "A", - "step": 240 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Swap Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:456", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:457", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 26 - }, - "id": 10, - "panels": [], - "title": "Jafner-tools", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total disk capacity", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(50, 172, 45, 0.97)", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 70 - }, - { - "color": "rgba(245, 54, 54, 0.9)", - "value": 90 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 27 - }, - "id": 13, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_filesystem_size_bytes{job=\"jafner.tools\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"}", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "Boot Disk Total", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total number of CPU cores", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 27 - }, - "id": 24, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "count(count(node_cpu_seconds_total{job=\"jafner.tools\"}) by (cpu))", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "CPU Cores", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total RAM", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 8, - "y": 27 - }, - "id": 38, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_memory_MemTotal_bytes{job=\"jafner.tools\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "RAM Total", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "System uptime", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 8, - "x": 12, - "y": 27 - }, - "id": 50, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_time_seconds{job=\"jafner.tools\"} - node_boot_time_seconds{job=\"jafner.tools\"}", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Host Uptime", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total SWAP", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 20, - "y": 27 - }, - "id": 54, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_memory_SwapTotal_bytes{job=\"jafner.tools\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "SWAP Total", - "type": "stat" - }, - { - "alert": { - "alertRuleTags": {}, - "conditions": [ - { - "evaluator": { - "params": [ - 80 - ], - "type": "gt" - }, - "operator": { - "type": "and" - }, - "query": { - "params": [ - "A", - "5m", - "now" - ] - }, - "reducer": { - "params": [], - "type": "avg" - }, - "type": "query" - } - ], - "executionErrorState": "keep_state", - "for": "5m", - "frequency": "1m", - "handler": 1, - "name": "Boot Disk Used > 80% on `jafner.tools`", - "noDataState": "keep_state", - "notifications": [ - { - "uid": "d6E-Crl7k" - } - ] - }, - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Percentage of boot disk used", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 0, - "y": 30 - }, - "hiddenSeries": false, - "id": 19, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "100 - ((node_filesystem_avail_bytes{job=\"jafner.tools\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"} * 100) / node_filesystem_size_bytes{job=\"jafner.tools\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"})", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Boot Disk Utilization", - "refId": "A", - "step": 240 - } - ], - "thresholds": [ - { - "colorMode": "critical", - "fill": true, - "line": true, - "op": "gt", - "value": 80, - "visible": true - } - ], - "timeRegions": [], - "title": "Boot Disk Used", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:570", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:571", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Busy": "#EAB839", - "Busy Iowait": "#890F02", - "Busy other": "#1F78C1", - "Idle": "#052B51", - "Idle - Waiting for something to happen": "#052B51", - "guest": "#9AC48A", - "idle": "#052B51", - "iowait": "#EAB839", - "irq": "#BF1B00", - "nice": "#C15C17", - "softirq": "#E24D42", - "steal": "#FCE2DE", - "system": "#508642", - "user": "#5195CE" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "decimals": 2, - "description": "Percentage of CPU utilized (averaged over last minute)", - "fieldConfig": { - "defaults": { - "links": [], - "unit": "short" - }, - "overrides": [] - }, - "fill": 4, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 4, - "y": 30 - }, - "hiddenSeries": false, - "id": 26, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": 250, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "maxPerRow": 6, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": true, - "pluginVersion": "8.5.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:376", - "alias": "Idle", - "fill": 0 - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (instance)(rate(node_cpu_seconds_total{mode!=\"idle\",job=\"jafner.tools\"}[1m])) * 100", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "Utilization", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "sum by (mode)(rate(node_cpu_seconds_total{mode='idle',job=\"jafner.tools\"}[1m])) * 100", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Idle", - "refId": "F", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:143", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "CPU Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:123", - "format": "short", - "label": "", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:124", - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Non available RAM memory", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 8, - "y": 30 - }, - "hiddenSeries": false, - "hideTimeOverride": false, - "id": 36, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "((node_memory_MemTotal_bytes{job=\"jafner.tools\"} - node_memory_MemFree_bytes{job=\"jafner.tools\"}) / (node_memory_MemTotal_bytes{job=\"jafner.tools\"} )) * 100", - "format": "time_series", - "hide": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "100 - ((node_memory_MemAvailable_bytes{job=\"jafner.tools\"} * 100) / node_memory_MemTotal_bytes{job=\"jafner.tools\"})", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "Memory Utilization", - "refId": "B", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:430", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "RAM Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:409", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:410", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Recv_bytes_eth2": "#7EB26D", - "Recv_bytes_lo": "#0A50A1", - "Recv_drop_eth2": "#6ED0E0", - "Recv_drop_lo": "#E0F9D7", - "Recv_errs_eth2": "#BF1B00", - "Recv_errs_lo": "#CCA300", - "Trans_bytes_eth2": "#7EB26D", - "Trans_bytes_lo": "#0A50A1", - "Trans_drop_eth2": "#6ED0E0", - "Trans_drop_lo": "#E0F9D7", - "Trans_errs_eth2": "#BF1B00", - "Trans_errs_lo": "#CCA300", - "recv_bytes_lo": "#0A50A1", - "recv_drop_eth0": "#99440A", - "recv_drop_lo": "#967302", - "recv_errs_eth0": "#BF1B00", - "recv_errs_lo": "#890F02", - "trans_bytes_eth0": "#7EB26D", - "trans_bytes_lo": "#0A50A1", - "trans_drop_eth0": "#99440A", - "trans_drop_lo": "#967302", - "trans_errs_eth0": "#BF1B00", - "trans_errs_lo": "#890F02" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Basic network info per interface", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 4, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 8, - "x": 12, - "y": 30 - }, - "hiddenSeries": false, - "id": 48, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:618", - "alias": "Download", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (job) (rate(node_network_receive_bytes_total{job=\"jafner.tools\"}[1m])*8)", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Download", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "sum by (job) (rate(node_network_transmit_bytes_total{job=\"jafner.tools\"}[1m])*8)", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Upload", - "refId": "B", - "step": 240 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Network Traffic Basic", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:625", - "format": "bps", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:626", - "format": "pps", - "label": "", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Used Swap", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 9, - "w": 4, - "x": 20, - "y": 30 - }, - "hiddenSeries": false, - "id": 52, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "((node_memory_SwapTotal_bytes{job=\"jafner.tools\"} - node_memory_SwapFree_bytes{job=\"jafner.tools\"}) / (node_memory_SwapTotal_bytes{job=\"jafner.tools\"} )) * 100", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Swap Utilization", - "refId": "A", - "step": 240 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Swap Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:456", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:457", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 39 - }, - "id": 8, - "panels": [], - "title": "Pihole", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total disk capacity", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(50, 172, 45, 0.97)" - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 70 - }, - { - "color": "rgba(245, 54, 54, 0.9)", - "value": 90 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 40 - }, - "id": 14, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_filesystem_size_bytes{job=\"pihole\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"}", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "Boot Disk Total", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total number of CPU cores", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 40 - }, - "id": 28, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "count(count(node_cpu_seconds_total{job=\"pihole\"}) by (cpu))", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "CPU Cores", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total RAM", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 8, - "y": 40 - }, - "id": 40, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_memory_MemTotal_bytes{job=\"pihole\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "RAM Total", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "System uptime", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 8, - "x": 12, - "y": 40 - }, - "id": 59, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_time_seconds{job=\"pihole\"} - node_boot_time_seconds{job=\"pihole\"}", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Host Uptime", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total SWAP", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 20, - "y": 40 - }, - "id": 64, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_memory_SwapTotal_bytes{job=\"pihole\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "SWAP Total", - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Percentage of boot disk used", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 4, - "x": 0, - "y": 43 - }, - "hiddenSeries": false, - "id": 21, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "100 - ((node_filesystem_avail_bytes{job=\"pihole\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"} * 100) / node_filesystem_size_bytes{job=\"pihole\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"})", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Boot Disk Utilization", - "refId": "A", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:588", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "Boot Disk Used", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:570", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:571", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Busy": "#EAB839", - "Busy Iowait": "#890F02", - "Busy other": "#1F78C1", - "Idle": "#052B51", - "Idle - Waiting for something to happen": "#052B51", - "guest": "#9AC48A", - "idle": "#052B51", - "iowait": "#EAB839", - "irq": "#BF1B00", - "nice": "#C15C17", - "softirq": "#E24D42", - "steal": "#FCE2DE", - "system": "#508642", - "user": "#5195CE" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "decimals": 2, - "description": "Percentage of CPU utilized (averaged over last minute)", - "fieldConfig": { - "defaults": { - "links": [], - "unit": "short" - }, - "overrides": [] - }, - "fill": 4, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 4, - "x": 4, - "y": 43 - }, - "hiddenSeries": false, - "id": 27, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": 250, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "maxPerRow": 6, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": true, - "pluginVersion": "8.5.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:376", - "alias": "Idle", - "fill": 0 - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (instance)(rate(node_cpu_seconds_total{mode!=\"idle\",job=\"pihole\"}[1m])) * 100", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "Utilization", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "sum by (mode)(rate(node_cpu_seconds_total{mode='idle',job=\"pihole\"}[1m])) * 100", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Idle", - "refId": "F", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:143", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "CPU Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:123", - "format": "short", - "label": "", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:124", - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Non available RAM memory", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 4, - "x": 8, - "y": 43 - }, - "hiddenSeries": false, - "hideTimeOverride": false, - "id": 39, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "((node_memory_MemTotal_bytes{job=\"pihole\"} - node_memory_MemFree_bytes{job=\"pihole\"}) / (node_memory_MemTotal_bytes{job=\"pihole\"} )) * 100", - "format": "time_series", - "hide": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "100 - ((node_memory_MemAvailable_bytes{job=\"pihole\"} * 100) / node_memory_MemTotal_bytes{job=\"pihole\"})", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "Memory Utilization", - "refId": "B", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:430", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "RAM Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:409", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:410", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Recv_bytes_eth2": "#7EB26D", - "Recv_bytes_lo": "#0A50A1", - "Recv_drop_eth2": "#6ED0E0", - "Recv_drop_lo": "#E0F9D7", - "Recv_errs_eth2": "#BF1B00", - "Recv_errs_lo": "#CCA300", - "Trans_bytes_eth2": "#7EB26D", - "Trans_bytes_lo": "#0A50A1", - "Trans_drop_eth2": "#6ED0E0", - "Trans_drop_lo": "#E0F9D7", - "Trans_errs_eth2": "#BF1B00", - "Trans_errs_lo": "#CCA300", - "recv_bytes_lo": "#0A50A1", - "recv_drop_eth0": "#99440A", - "recv_drop_lo": "#967302", - "recv_errs_eth0": "#BF1B00", - "recv_errs_lo": "#890F02", - "trans_bytes_eth0": "#7EB26D", - "trans_bytes_lo": "#0A50A1", - "trans_drop_eth0": "#99440A", - "trans_drop_lo": "#967302", - "trans_errs_eth0": "#BF1B00", - "trans_errs_lo": "#890F02" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Basic network info per interface", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 4, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 8, - "x": 12, - "y": 43 - }, - "hiddenSeries": false, - "id": 55, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:618", - "alias": "Download", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (job) (rate(node_network_receive_bytes_total{job=\"pihole\"}[1m])*8)", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Download", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "sum by (job) (rate(node_network_transmit_bytes_total{job=\"pihole\"}[1m])*8)", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Upload", - "refId": "B", - "step": 240 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Network Traffic Basic", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:625", - "format": "bps", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:626", - "format": "pps", - "label": "", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Used Swap", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 11, - "w": 4, - "x": 20, - "y": 43 - }, - "hiddenSeries": false, - "id": 63, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "((node_memory_SwapTotal_bytes{job=\"pihole\"} - node_memory_SwapFree_bytes{job=\"pihole\"}) / (node_memory_SwapTotal_bytes{job=\"pihole\"} )) * 100", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Swap Utilization", - "refId": "A", - "step": 240 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Swap Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:456", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:457", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 54 - }, - "id": 6, - "panels": [], - "title": "Router", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total disk capacity", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(50, 172, 45, 0.97)" - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 70 - }, - { - "color": "rgba(245, 54, 54, 0.9)", - "value": 90 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 55 - }, - "id": 15, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_filesystem_size_bytes{job=\"router\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"}", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "Boot Disk Total", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total number of CPU cores", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 55 - }, - "id": 30, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "count(count(node_cpu_seconds_total{job=\"router\"}) by (cpu))", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "CPU Cores", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total RAM", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 8, - "y": 55 - }, - "id": 42, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_memory_MemTotal_bytes{job=\"router\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "RAM Total", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "System uptime", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 8, - "x": 12, - "y": 55 - }, - "id": 60, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_time_seconds{job=\"router\"} - node_boot_time_seconds{job=\"router\"}", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Host Uptime", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Total SWAP", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 20, - "y": 55 - }, - "id": 66, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "node_memory_SwapTotal_bytes{job=\"router\"}", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - } - ], - "title": "SWAP Total", - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Percentage of boot disk used", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 4, - "x": 0, - "y": 58 - }, - "hiddenSeries": false, - "id": 18, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "100 - ((node_filesystem_avail_bytes{job=\"router\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"} * 100) / node_filesystem_size_bytes{job=\"router\",mountpoint=~\"/|/root.dev\",fstype!=\"rootfs\"})", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Boot Disk Utilization", - "refId": "A", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:588", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "Boot Disk Used", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:570", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:571", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Busy": "#EAB839", - "Busy Iowait": "#890F02", - "Busy other": "#1F78C1", - "Idle": "#052B51", - "Idle - Waiting for something to happen": "#052B51", - "guest": "#9AC48A", - "idle": "#052B51", - "iowait": "#EAB839", - "irq": "#BF1B00", - "nice": "#C15C17", - "softirq": "#E24D42", - "steal": "#FCE2DE", - "system": "#508642", - "user": "#5195CE" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "decimals": 2, - "description": "Percentage of CPU utilized (averaged over last minute)", - "fieldConfig": { - "defaults": { - "links": [], - "unit": "short" - }, - "overrides": [] - }, - "fill": 4, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 4, - "x": 4, - "y": 58 - }, - "hiddenSeries": false, - "id": 29, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": 250, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "maxPerRow": 6, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": true, - "pluginVersion": "8.5.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:376", - "alias": "Idle", - "fill": 0 - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (instance)(rate(node_cpu_seconds_total{mode!=\"idle\",job=\"router\"}[1m])) * 100", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "Utilization", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "sum by (mode)(rate(node_cpu_seconds_total{mode='idle',job=\"router\"}[1m])) * 100", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Idle", - "refId": "F", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:143", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "CPU Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:123", - "format": "short", - "label": "", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:124", - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Non available RAM memory", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 4, - "x": 8, - "y": 58 - }, - "hiddenSeries": false, - "hideTimeOverride": false, - "id": 41, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "((node_memory_MemTotal_bytes{job=\"router\"} - node_memory_MemFree_bytes{job=\"router\"}) / (node_memory_MemTotal_bytes{job=\"router\"} )) * 100", - "format": "time_series", - "hide": true, - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "100 - ((node_memory_MemAvailable_bytes{job=\"router\"} * 100) / node_memory_MemTotal_bytes{job=\"router\"})", - "format": "time_series", - "hide": false, - "interval": "", - "intervalFactor": 1, - "legendFormat": "Memory Utilization", - "refId": "B", - "step": 240 - } - ], - "thresholds": [ - { - "$$hashKey": "object:430", - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 80, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "RAM Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:409", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:410", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Recv_bytes_eth2": "#7EB26D", - "Recv_bytes_lo": "#0A50A1", - "Recv_drop_eth2": "#6ED0E0", - "Recv_drop_lo": "#E0F9D7", - "Recv_errs_eth2": "#BF1B00", - "Recv_errs_lo": "#CCA300", - "Trans_bytes_eth2": "#7EB26D", - "Trans_bytes_lo": "#0A50A1", - "Trans_drop_eth2": "#6ED0E0", - "Trans_drop_lo": "#E0F9D7", - "Trans_errs_eth2": "#BF1B00", - "Trans_errs_lo": "#CCA300", - "recv_bytes_lo": "#0A50A1", - "recv_drop_eth0": "#99440A", - "recv_drop_lo": "#967302", - "recv_errs_eth0": "#BF1B00", - "recv_errs_lo": "#890F02", - "trans_bytes_eth0": "#7EB26D", - "trans_bytes_lo": "#0A50A1", - "trans_drop_eth0": "#99440A", - "trans_drop_lo": "#967302", - "trans_errs_eth0": "#BF1B00", - "trans_errs_lo": "#890F02" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Basic network info per interface", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 4, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 8, - "x": 12, - "y": 58 - }, - "hiddenSeries": false, - "id": 56, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:618", - "alias": "Download", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (device) (rate(node_network_receive_bytes_total{job=\"router\"}[1m])*8)", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{ device }} Up", - "refId": "A", - "step": 240 - }, - { - "exemplar": true, - "expr": "sum by (device) (rate(node_network_transmit_bytes_total{job=\"router\"}[1m])*8)", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "{{ device }} Down", - "refId": "B", - "step": 240 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Network Traffic Basic", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:625", - "format": "bps", - "logBase": 1, - "show": true - }, - { - "$$hashKey": "object:626", - "format": "pps", - "label": "", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Used Swap", - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 10, - "w": 4, - "x": 20, - "y": 58 - }, - "hiddenSeries": false, - "id": 65, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "((node_memory_SwapTotal_bytes{job=\"router\"} - node_memory_SwapFree_bytes{job=\"router\"}) / (node_memory_SwapTotal_bytes{job=\"router\"} )) * 100", - "interval": "", - "intervalFactor": 1, - "legendFormat": "Swap Utilization", - "refId": "A", - "step": 240 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Swap Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:456", - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:457", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - } - ], - "refresh": "", - "schemaVersion": 36, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Hosts", - "uid": "NpcZRCl7k", - "version": 5, - "weekStart": "" -} \ No newline at end of file diff --git a/homelab/stacks/monitoring/grafana-dashboards/Services.json b/homelab/stacks/monitoring/grafana-dashboards/Services.json deleted file mode 100644 index 76322a1a..00000000 --- a/homelab/stacks/monitoring/grafana-dashboards/Services.json +++ /dev/null @@ -1,1767 +0,0 @@ -{ - "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" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 8, - "links": [], - "liveNow": false, - "panels": [ - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 20, - "panels": [], - "title": "Minecraft Servers", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "fillOpacity": 70, - "lineWidth": 0, - "spanNulls": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "dark-red", - "value": null - }, - { - "color": "green", - "value": 1 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byFrameRefID", - "options": "A" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "index": 0, - "text": "Down" - }, - "1": { - "index": 1, - "text": "Up" - } - }, - "type": "value" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 4, - "x": 0, - "y": 1 - }, - "id": 18, - "options": { - "alignValue": "left", - "legend": { - "displayMode": "hidden", - "placement": "bottom" - }, - "mergeValues": true, - "rowHeight": 0.9, - "showValue": "never", - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.1.0", - "targets": [ - { - "exemplar": true, - "expr": "sum by (server_host) (minecraft_status_healthy{})", - "format": "time_series", - "instant": false, - "interval": "", - "legendFormat": "{{ server_host }}", - "refId": "A" - } - ], - "title": "Minecraft Server Status", - "type": "state-timeline" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 0.05, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "log": 2, - "type": "log" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 9, - "x": 4, - "y": 1 - }, - "id": 22, - "options": { - "legend": { - "calcs": [], - "displayMode": "hidden", - "placement": "bottom" - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "minecraft_status_response_time_seconds{}", - "interval": "", - "legendFormat": "{{ server_host }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Server Ping", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "mappings": [], - "max": 20, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 11, - "x": 13, - "y": 1 - }, - "id": 24, - "options": { - "legend": { - "calcs": [], - "displayMode": "hidden", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "minecraft_status_players_online_count{}", - "interval": "", - "legendFormat": "{{ server_host }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Players Online", - "type": "timeseries" - }, - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 10 - }, - "id": 26, - "panels": [], - "title": "Traefik", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 11 - }, - "id": 28, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "sum by (service) (traefik_service_open_connections{})", - "interval": "", - "legendFormat": "{{ service }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Open Connections", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 11 - }, - "id": 30, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.1.0", - "targets": [ - { - "exemplar": true, - "expr": "sum by (service) (rate(traefik_service_requests_total{}[1m]))", - "interval": "", - "legendFormat": "{{ service }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Requests in last minute", - "type": "timeseries" - }, - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 19 - }, - "id": 47, - "panels": [], - "title": "Deluge", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 2, - "x": 0, - "y": 20 - }, - "id": 59, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "value_and_name" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "sum by (tracker) (deluge_torrents{job=\"deluge\", tracker=~\"ggn|mam|emp|pub\"})", - "interval": "", - "legendFormat": "{{ tracker }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Torrents", - "type": "stat" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "unit": "decbytes" - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 11, - "x": 2, - "y": 20 - }, - "hiddenSeries": false, - "id": 61, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.5.2", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "$$hashKey": "object:18", - "alias": "/download/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "sum by (tracker) (rate(deluge_libtorrent_net_recv_bytes_total{tracker=~\"ggn|mam|emp|pub\"}[24h]))", - "interval": "", - "legendFormat": "{{ tracker }} download", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "sum by (tracker) (rate(deluge_libtorrent_net_sent_bytes_total{tracker=~\"ggn|mam|emp|pub\"}[24h]))", - "hide": false, - "interval": "", - "legendFormat": "{{ tracker }} upload", - "refId": "B" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Traffic", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "logBase": 1, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "left", - "displayMode": "auto", - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 11, - "x": 13, - "y": 20 - }, - "id": 63, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "frameIndex": 0, - "showHeader": true - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "deluge_libtorrent_ses_num_seeding_torrents{}", - "hide": false, - "instant": false, - "interval": "", - "legendFormat": "{{tracker}} seeding", - "refId": "A" - }, - { - "exemplar": true, - "expr": "deluge_libtorrent_ses_num_checking_torrents{} ", - "hide": false, - "interval": "", - "legendFormat": "{{tracker}} checking", - "refId": "B" - }, - { - "exemplar": true, - "expr": "deluge_libtorrent_ses_num_downloading_torrents{}", - "hide": false, - "interval": "", - "legendFormat": "{{tracker}} downloading", - "refId": "C" - }, - { - "exemplar": true, - "expr": "deluge_libtorrent_ses_num_error_torrents{}", - "hide": false, - "interval": "", - "legendFormat": "{{tracker}} error", - "refId": "D" - }, - { - "exemplar": true, - "expr": "deluge_libtorrent_ses_num_stopped_torrents{}", - "hide": false, - "interval": "", - "legendFormat": "{{tracker}} stopped", - "refId": "E" - } - ], - "title": "Torrent States", - "transformations": [ - { - "id": "reduce", - "options": { - "includeTimeField": false, - "mode": "seriesToRows", - "reducers": [ - "lastNotNull" - ] - } - } - ], - "type": "table" - }, - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 28 - }, - "id": 49, - "panels": [], - "title": "Plex", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 6, - "x": 0, - "y": 29 - }, - "id": 65, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "plex_library_section_size_count{name=\"Movies\"}", - "interval": "", - "legendFormat": "Movies", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "plex_library_section_size_count{name=\"Shows\"}", - "hide": false, - "interval": "", - "legendFormat": "TV Shows", - "refId": "B" - }, - { - "exemplar": true, - "expr": "plex_library_section_size_count{name=\"Music\"}", - "hide": false, - "interval": "", - "legendFormat": "Music Artists", - "refId": "C" - } - ], - "title": "Library Size", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 5, - "x": 6, - "y": 29 - }, - "id": 67, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "plex_sessions_active_count{}", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Current Sessions", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 11, - "y": 29 - }, - "id": 69, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "max_over_time(plex_sessions_active_count[24h])", - "interval": "", - "legendFormat": "Last Day", - "queryType": "randomWalk", - "refId": "A" - }, - { - "exemplar": true, - "expr": "max_over_time(plex_sessions_active_count[7d])", - "hide": false, - "interval": "", - "legendFormat": "Last Week", - "refId": "B" - }, - { - "exemplar": true, - "expr": "max_over_time(plex_sessions_active_count[30d])", - "hide": false, - "interval": "", - "legendFormat": "Last Month", - "refId": "C" - } - ], - "title": "Peak Sessions", - "type": "stat" - }, - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 34 - }, - "id": 55, - "panels": [], - "title": "SabNZBD", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 35 - }, - "id": 73, - "options": { - "legend": { - "calcs": [], - "displayMode": "hidden", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "sabnzbd_queue_download_rate_bytes_per_second{}", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Download Rate", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 35 - }, - "id": 71, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "sabnzbd_download_bytes{}", - "interval": "", - "legendFormat": "{{ period }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Total Download", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 43 - }, - "id": 75, - "options": { - "legend": { - "calcs": [], - "displayMode": "hidden", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "sabnzbd_queue_size{}", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Items in Queue", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 43 - }, - "id": 77, - "options": { - "legend": { - "calcs": [], - "displayMode": "hidden", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "sabnzbd_queue_total_size_bytes{}", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Queue Size", - "type": "timeseries" - }, - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 51 - }, - "id": 34, - "panels": [], - "title": "Uptime-Kuma", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "fillOpacity": 70, - "lineWidth": 0, - "spanNulls": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 3, - "x": 0, - "y": 52 - }, - "id": 39, - "options": { - "alignValue": "left", - "legend": { - "displayMode": "list", - "placement": "bottom" - }, - "mergeValues": true, - "rowHeight": 0.9, - "showValue": "never", - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.1.0", - "targets": [ - { - "exemplar": true, - "expr": "sum by (monitor_name) (monitor_status{})", - "instant": false, - "interval": "", - "legendFormat": "{{ monitor_name }}", - "refId": "A" - } - ], - "title": "Server Status", - "type": "state-timeline" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "max": 90, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "dark-red" - }, - { - "color": "green", - "value": 14 - } - ] - }, - "unit": "d" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 10, - "x": 3, - "y": 52 - }, - "id": 32, - "options": { - "displayMode": "lcd", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "monitor_cert_days_remaining{}", - "interval": "", - "legendFormat": "{{ monitor_name }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Time until Cert Expiry", - "type": "bargauge" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "log": 2, - "type": "log" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ms" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 11, - "x": 13, - "y": 52 - }, - "id": 36, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "monitor_response_time{}", - "interval": "", - "legendFormat": "{{ monitor_name }}", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Ping", - "type": "timeseries" - }, - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 61 - }, - "id": 41, - "panels": [], - "title": "PiHole", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "description": "Each point is a counter for the last 24 hours.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [] - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 3, - "x": 0, - "y": 62 - }, - "id": 8, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom" - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.1.0", - "targets": [ - { - "expr": "pihole_queries_cached", - "interval": "", - "legendFormat": "Cached", - "refId": "B" - }, - { - "expr": "pihole_queries_forwarded", - "interval": "", - "legendFormat": "Forwarded", - "refId": "C" - }, - { - "expr": "pihole_ads_blocked_today", - "interval": "", - "legendFormat": "Blocked", - "refId": "D" - } - ], - "title": "DNS Queries", - "type": "piechart" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 4, - "x": 3, - "y": 62 - }, - "id": 43, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "pihole_unique_clients{}", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Unique Clients", - "type": "stat" - } - ], - "refresh": "5s", - "schemaVersion": 36, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Services", - "uid": "YHUzAE07z", - "version": 2, - "weekStart": "" -} \ No newline at end of file diff --git a/homelab/stacks/monitoring/grafana-dashboards/Smart Plugs.json b/homelab/stacks/monitoring/grafana-dashboards/Smart Plugs.json deleted file mode 100644 index 2cbc353d..00000000 --- a/homelab/stacks/monitoring/grafana-dashboards/Smart Plugs.json +++ /dev/null @@ -1,818 +0,0 @@ -{ - "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" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 7, - "links": [], - "liveNow": false, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "kwatth" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-1:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "Joey's PC" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-2:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "YA Fridge" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-3:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "Freezer" - } - ] - } - ] - }, - "gridPos": { - "h": 5, - "w": 6, - "x": 0, - "y": 0 - }, - "id": 5, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "delta(tasmota_energy_power_kilowatts_total[30d])", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Total Usage (last month)", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "kwatth" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-1:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "Joey's PC" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-2:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "YA Fridge" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-3:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "Freezer" - } - ] - } - ] - }, - "gridPos": { - "h": 5, - "w": 6, - "x": 7, - "y": 0 - }, - "id": 6, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "delta(tasmota_energy_power_kilowatts_total[7d])", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Total Usage (last week)", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "kwatth" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-1:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "Joey's PC" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-2:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "YA Fridge" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-3:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "Freezer" - } - ] - } - ] - }, - "gridPos": { - "h": 5, - "w": 6, - "x": 14, - "y": 0 - }, - "id": 4, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "delta(tasmota_energy_power_kilowatts_total[24h])", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Total Usage (last 24h)", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "currencyUSD" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-1:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "Joey's PC" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-2:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "YA Fridge" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-3:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "Freezer" - } - ] - } - ] - }, - "gridPos": { - "h": 5, - "w": 6, - "x": 0, - "y": 5 - }, - "id": 11, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "delta(tasmota_energy_power_kilowatts_total[30d])*0.08192", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Power Cost (last month)", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "currencyUSD" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-1:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "Joey's PC" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-2:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "YA Fridge" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-3:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "Freezer" - } - ] - } - ] - }, - "gridPos": { - "h": 5, - "w": 6, - "x": 7, - "y": 5 - }, - "id": 12, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "delta(tasmota_energy_power_kilowatts_total[7d])*0.08192", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Power Cost (last week)", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "currencyUSD" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-1:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "Joey's PC" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-2:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "YA Fridge" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "{instance=\"tasmota-3:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "Freezer" - } - ] - } - ] - }, - "gridPos": { - "h": 5, - "w": 6, - "x": 14, - "y": 5 - }, - "id": 13, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "exemplar": true, - "expr": "delta(tasmota_energy_power_kilowatts_total[24h])*0.08192", - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Power Cost (last 24h)", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "watt" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "tasmota_energy_power_active_watts{instance=\"tasmota-1:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "Joey's PC" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "tasmota_energy_power_active_watts{instance=\"tasmota-2:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "YA Fridge" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "tasmota_energy_power_active_watts{instance=\"tasmota-3:80\", job=\"tasmota\"}" - }, - "properties": [ - { - "id": "displayName", - "value": "Freezer" - } - ] - } - ] - }, - "gridPos": { - "h": 11, - "w": 17, - "x": 0, - "y": 10 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "targets": [ - { - "exemplar": true, - "expr": "tasmota_energy_power_active_watts{}", - "instant": false, - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Power Draw", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "7z5wqRXnz" - }, - "gridPos": { - "h": 11, - "w": 3, - "x": 17, - "y": 10 - }, - "id": 8, - "options": { - "content": "| Service | Charge |\n|:-------:|:------:|\n| Energy | $0.045351/kWh |\n| Distribution | $0.036569/kWh |\n| Total | $0.08192/kWh |", - "mode": "markdown" - }, - "pluginVersion": "8.5.2", - "targets": [ - { - "channel": "plugin/testdata/random-20Hz-stream", - "exemplar": true, - "expr": "", - "filter": { - "fields": [ - "Time", - "Value" - ] - }, - "interval": "", - "legendFormat": "", - "queryType": "measurements", - "refId": "A" - } - ], - "title": "Power Rates", - "type": "text" - } - ], - "refresh": "5s", - "schemaVersion": 36, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Smart Plugs", - "uid": "A5-cSus7z", - "version": 14, - "weekStart": "" -} \ No newline at end of file diff --git a/homelab/stacks/monitoring/loki-config.yml b/homelab/stacks/monitoring/loki-config.yml deleted file mode 100644 index 9ebfc9b2..00000000 --- a/homelab/stacks/monitoring/loki-config.yml +++ /dev/null @@ -1,34 +0,0 @@ -auth_enabled: false - -server: - http_listen_port: 3100 - grpc_listen_port: 9096 - -common: - path_prefix: /loki-logs - storage: - filesystem: - chunks_directory: /loki-logs/chunks - rules_directory: /loki-logs/rules - replication_factor: 1 - ring: - instance_addr: 127.0.0.1 - kvstore: - store: inmemory - -storage_config: - filesystem: - directory: /loki-logs - -schema_config: - configs: - - from: 2020-10-24 - store: boltdb-shipper - object_store: filesystem - schema: v11 - index: - prefix: index_ - period: 24h - -ruler: - alertmanager_url: http://localhost:9093 \ No newline at end of file diff --git a/homelab/stacks/monitoring/prometheus.yml b/homelab/stacks/monitoring/prometheus.yml deleted file mode 100644 index 386cba5a..00000000 --- a/homelab/stacks/monitoring/prometheus.yml +++ /dev/null @@ -1,75 +0,0 @@ -global: - scrape_interval: 60s - -scrape_configs: - - # scrape hosts - - job_name: 'fighter' - scrape_interval: 5s - static_configs: - - targets: ['192.168.1.23:9100'] - - - job_name: 'druid' - scrape_interval: 5s - static_configs: - - targets: ['143.110.151.123:9100'] - - - job_name: 'wizard' - scrape_interval: 5s - static_configs: - - targets: ['192.168.1.1:9273'] - - # scrape applications - - job_name: 'prometheus-self' - scrape_interval: 5s - static_configs: - - targets: ['localhost:9090'] - - - job_name: 'traefik' - scrape_interval: 5s - static_configs: - - targets: ['traefik:8080'] - metrics_path: "/metrics" - - - job_name: 'exporter-pihole' - scrape_interval: 5s - static_configs: - - targets: ['exporter-pihole:9617'] - metrics_path: "/metrics" - - - job_name: 'exporter-minecraft' - scrape_interval: 5s - static_configs: - - targets: ['exporter-minecraft:8080'] - - - job_name: 'exporter-plex' - scrape_interval: 5s - static_configs: - - targets: ['exporter-plex:9594'] - - - job_name: 'exporter-sabnzbd' - scrape_interval: 5s - static_configs: - - targets: ['exporter-sabnzbd:9387'] - - - job_name: 'exporter-ping' - scrape_interval: 5s - static_configs: - - targets: ['exporter-ping:9427', 'jafner.tools:50418'] - - - job_name: 'exporter-docker' - scrape_interval: 5s - static_configs: - - targets: ['exporter-docker:9417','jafner.tools:50417'] - - - job_name: 'exporter-qbittorrent' - scrape_interval: 60s - scrape_timeout: 30s - static_configs: - - targets: ['exporter-qbittorrent:8000'] - - # scrape IoT devices - - job_name: 'tasmota' - scrape_interval: 5s - static_configs: - - targets: ['192.168.1.50','192.168.1.51','192.168.1.52'] diff --git a/homelab/stacks/monitoring/promtail-config.yml b/homelab/stacks/monitoring/promtail-config.yml deleted file mode 100644 index 313cafbf..00000000 --- a/homelab/stacks/monitoring/promtail-config.yml +++ /dev/null @@ -1,10 +0,0 @@ -server: - http_listen_port: 9080 - grpc_listen_port: 0 - -positions: - filename: /tmp/positions.yaml - -clients: - - url: http://loki:3100/loki/api/v1/push - diff --git a/homelab/stacks/monitoring/scripts/diskstatus.sh b/homelab/stacks/monitoring/scripts/diskstatus.sh deleted file mode 100644 index 6188d674..00000000 --- a/homelab/stacks/monitoring/scripts/diskstatus.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env sh - -SMARTCTL=/usr/local/sbin/smartctl - -DISKS=$(/sbin/sysctl -n kern.disks | cut -d= -f2) - -for DISK in ${DISKS} -do - TEMP=$(${SMARTCTL} -l scttemp /dev/${DISK} | grep '^Current Temperature:' | awk '{print $3}') - HEALTH=$(${SMARTCTL} -H /dev/${DISK} | grep 'test result:' | cut -d: -f2 | sed 's/^[ \t]*//') - if [ -z != ${TEMP} ] && [ -z != ${HEALTH} ] - then - JSON=$(echo ${JSON}{\"disk\":\"${DISK}\",\"health\":\"${HEALTH}\",\"temperature\":${TEMP}},) - fi -done - -JSON=$(echo ${JSON} | sed 's/,$//') - -echo [${JSON}] >&1 diff --git a/homelab/stacks/monitoring/scripts/forgepc.sh b/homelab/stacks/monitoring/scripts/forgepc.sh deleted file mode 100644 index 52f2fa1d..00000000 --- a/homelab/stacks/monitoring/scripts/forgepc.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -docker exec e6 rcon-cli forge entity list "minecraft:player" >&1 diff --git a/homelab/stacks/monitoring/scripts/forgetps-to-json.sh b/homelab/stacks/monitoring/scripts/forgetps-to-json.sh deleted file mode 100644 index 519bcd10..00000000 --- a/homelab/stacks/monitoring/scripts/forgetps-to-json.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# this script converts the output of the "forge tps" command (in the form of the .forgetps file) into json for sending to influxdb -# by default it reads from stdin and outputs to a .forgetps.json file -while IFS= read -r line; do - if [ "$line" != "" ]; then - DIM=$(echo -n "$line" | awk '{print $2}') - if [ "$DIM" = "Mean" ]; then - DIM="Overall" - fi - TPT=$(echo "$line" | grep -oE 'Mean tick time: .+ms' | awk '{print $4}') - TPS=$(echo "$line" | grep -oE 'Mean TPS: .+' | awk '{print $3}') - JSON+=\{$(echo \"dim\":\"$DIM\",\"tpt\":$TPT,\"tps\":$TPS)\}, - fi -#done < .forgetps # inputs from .forgetps file -done <$1 # inputs from file passed via stdin -JSON=$(echo ${JSON} | sed 's/,$//') - -#echo [${JSON}] >&1 # outputs to stdout -echo [${JSON}] > .forgetps.json # uncomment this to output to file diff --git a/homelab/stacks/monitoring/stack.nix b/homelab/stacks/monitoring/stack.nix new file mode 100644 index 00000000..c1344c76 --- /dev/null +++ b/homelab/stacks/monitoring/stack.nix @@ -0,0 +1,15 @@ +{ sys, ... }: let stack = "monitoring"; in { + home-manager.users."${sys.username}".home.file = { + "${stack}" = { + enable = true; + recursive = true; + source = ./.; + target = "stacks/${stack}/"; + }; + "${stack}/.env" = { + enable = true; + text = ''APPDATA=${sys.dataDirs.appdata}/${stack}''; + target = "stacks/${stack}/.env"; + }; + }; +} \ No newline at end of file