{ "id": null, "uid": "myfileagent-sre", "title": "MyFileAgent - SRE Monitoring", "tags": [ "SSW590", "Assignment 7", "SRE" ], "timezone": "America/New_York", "schemaVersion": 39, "version": 1, "refresh": "30s", "time": { "from": "now-1h", "to": "now" }, "editable": true, "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "panels": [ { "id": 1, "title": "Whole-droplet CPU utilization", "description": "CPU busy percentage averaged across all host CPUs. Whole-host load cannot attribute consumption to Jenkins or a single container.", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 0, "y": 0, "w": 12, "h": 9 }, "fieldConfig": { "defaults": { "unit": "percent", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 75 }, { "color": "red", "value": 90 } ] }, "custom": { "drawStyle": "line", "lineInterpolation": "linear", "fillOpacity": 10, "lineWidth": 2, "showPoints": "never", "spanNulls": false }, "min": 0, "max": 100 }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "calcs": [ "lastNotNull" ] }, "tooltip": { "mode": "multi" } }, "targets": [ { "refId": "A", "expr": "100 * (1 - avg by (instance) (rate(node_cpu_seconds_total{job=\"node\",instance=\"node-exporter:9100\",mode=\"idle\"}[2m])))", "legendFormat": "{{instance}}", "range": true } ] }, { "id": 2, "title": "Available host memory", "description": "Host memory available to applications, including reclaimable memory; not merely free RAM.", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 12, "y": 0, "w": 12, "h": 9 }, "fieldConfig": { "defaults": { "unit": "bytes", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "custom": { "drawStyle": "line", "lineInterpolation": "linear", "fillOpacity": 10, "lineWidth": 2, "showPoints": "never", "spanNulls": false } }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "calcs": [ "lastNotNull" ] }, "tooltip": { "mode": "multi" } }, "targets": [ { "refId": "A", "expr": "node_memory_MemAvailable_bytes{job=\"node\",instance=\"node-exporter:9100\"}", "legendFormat": "{{instance}}", "range": true } ] }, { "id": 3, "title": "Root filesystem available space", "description": "Available space on the verified host root filesystem: /dev/vda1, ext4, mountpoint /. Excludes other mounts and pseudo filesystems.", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 0, "y": 9, "w": 12, "h": 9 }, "fieldConfig": { "defaults": { "unit": "percent", "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "yellow", "value": 15 }, { "color": "green", "value": 25 } ] }, "custom": { "drawStyle": "line", "lineInterpolation": "linear", "fillOpacity": 10, "lineWidth": 2, "showPoints": "never", "spanNulls": false }, "min": 0, "max": 100 }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "calcs": [ "lastNotNull" ] }, "tooltip": { "mode": "multi" } }, "targets": [ { "refId": "A", "expr": "100 * node_filesystem_avail_bytes{job=\"node\",instance=\"node-exporter:9100\",mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"} / node_filesystem_size_bytes{job=\"node\",instance=\"node-exporter:9100\",mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"}", "legendFormat": "{{instance}}", "range": true } ] }, { "id": 4, "title": "Gitea HTTPS availability", "description": "1 means the HTTPS login-page probe succeeded with TLS validation; 0 means failure. Does not establish authenticated Git operation.", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 12, "y": 9, "w": 12, "h": 9 }, "fieldConfig": { "defaults": { "unit": "short", "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 1 } ] }, "custom": { "drawStyle": "line", "lineInterpolation": "stepAfter", "fillOpacity": 10, "lineWidth": 2, "showPoints": "never", "spanNulls": false }, "min": 0, "max": 1, "decimals": 0 }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "calcs": [ "lastNotNull" ] }, "tooltip": { "mode": "multi" } }, "targets": [ { "refId": "A", "expr": "probe_success{job=\"https\",instance=\"https://myfileagent.tech/user/login\"}", "legendFormat": "{{instance}}", "range": true } ] }, { "id": 5, "title": "Jenkins HTTPS availability", "description": "1 means the HTTPS login-page probe succeeded; a successful response does not establish a successful pipeline.", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 0, "y": 18, "w": 12, "h": 9 }, "fieldConfig": { "defaults": { "unit": "short", "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 1 } ] }, "custom": { "drawStyle": "line", "lineInterpolation": "stepAfter", "fillOpacity": 10, "lineWidth": 2, "showPoints": "never", "spanNulls": false }, "min": 0, "max": 1, "decimals": 0 }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "calcs": [ "lastNotNull" ] }, "tooltip": { "mode": "multi" } }, "targets": [ { "refId": "A", "expr": "probe_success{job=\"https\",instance=\"https://ci.myfileagent.tech/login\"}", "legendFormat": "{{instance}}", "range": true } ] }, { "id": 6, "title": "HTTPS probe duration", "description": "End-to-end probe duration for both login URLs from this Droplet. Does not establish reachability from every user network.", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 12, "y": 18, "w": 12, "h": 9 }, "fieldConfig": { "defaults": { "unit": "s", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "custom": { "drawStyle": "line", "lineInterpolation": "linear", "fillOpacity": 10, "lineWidth": 2, "showPoints": "never", "spanNulls": false } }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "calcs": [ "lastNotNull" ] }, "tooltip": { "mode": "multi" } }, "targets": [ { "refId": "A", "expr": "probe_duration_seconds{job=\"https\",instance=~\"https://(myfileagent.tech/user/login|ci.myfileagent.tech/login)\"}", "legendFormat": "{{instance}}", "range": true } ] }, { "id": 7, "title": "Zammad HTTPS reachable (0/1)", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 0, "y": 27, "w": 8, "h": 7 }, "targets": [ { "refId": "A", "expr": "probe_success{job=\"https\",instance=\"https://support.myfileagent.tech/\"}" } ], "fieldConfig": { "defaults": { "unit": "short" }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom" } } }, { "id": 8, "title": "Zammad probe duration (seconds)", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 8, "y": 27, "w": 8, "h": 7 }, "targets": [ { "refId": "A", "expr": "probe_duration_seconds{job=\"https\",instance=\"https://support.myfileagent.tech/\"}" } ], "fieldConfig": { "defaults": { "unit": "s" }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom" } } }, { "id": 9, "title": "TLS certificate remaining lifetime (days)", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "prometheus" }, "gridPos": { "x": 16, "y": 27, "w": 8, "h": 7 }, "targets": [ { "refId": "A", "expr": "(probe_ssl_earliest_cert_expiry{job=\"https\",instance=\"https://support.myfileagent.tech/\"} - time()) / 86400" } ], "fieldConfig": { "defaults": { "unit": "d" }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom" } } } ] }