Files
Strartup-product/monitoring/grafana/dashboards/ssw590-ops.json
T

569 lines
19 KiB
JSON

{
"uid": "ssw590-ops",
"title": "SSW590 Startup Operations",
"tags": [
"ssw590",
"sre"
],
"timezone": "America/New_York",
"time": {
"from": "now-6h",
"to": "now"
},
"refresh": "30s",
"schemaVersion": 41,
"version": 1,
"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,
"type": "timeseries",
"title": "Droplet CPU utilization (%)",
"description": "Whole-droplet CPU busy %, averaged across all CPUs: 100 x (1 - idle rate). node_cpu_seconds_total is a counter, so rate() is used, never the raw total.",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"gridPos": {
"x": 0,
"y": 0,
"w": 12,
"h": 8
},
"targets": [
{
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"expr": "100 * (1 - avg(rate(node_cpu_seconds_total{job=\"node\",mode=\"idle\"}[$__rate_interval])))",
"legendFormat": "CPU busy %"
}
],
"fieldConfig": {
"defaults": {
"unit": "percent",
"custom": {
"lineWidth": 2,
"fillOpacity": 10,
"showPoints": "never",
"thresholdsStyle": {
"mode": "line"
}
},
"min": 0,
"max": 100,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "orange",
"value": 70
},
{
"color": "red",
"value": 90
}
]
}
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi"
}
}
},
{
"id": 2,
"type": "timeseries",
"title": "Available host memory (bytes)",
"description": "MemAvailable: kernel estimate of memory available to applications without swapping (not just unused RAM). Unit: bytes (IEC). Host total is about 961 MiB.",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"gridPos": {
"x": 12,
"y": 0,
"w": 12,
"h": 8
},
"targets": [
{
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"expr": "node_memory_MemAvailable_bytes{job=\"node\"}",
"legendFormat": "MemAvailable"
}
],
"fieldConfig": {
"defaults": {
"unit": "bytes",
"custom": {
"lineWidth": 2,
"fillOpacity": 10,
"showPoints": "never",
"thresholdsStyle": {
"mode": "line"
}
},
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "orange",
"value": 104857600
},
{
"color": "green",
"value": 209715200
}
]
}
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi"
}
}
},
{
"id": 3,
"type": "timeseries",
"title": "Root filesystem free space (%)",
"description": "Available bytes / size bytes for the verified host root filesystem only (/dev/vda1, ext4, mounted at /). /boot, /boot/efi, overlay and pseudo filesystems are excluded. Alert line at 15%.",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"gridPos": {
"x": 0,
"y": 8,
"w": 12,
"h": 8
},
"targets": [
{
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"expr": "100 * node_filesystem_avail_bytes{device=\"/dev/vda1\",fstype=\"ext4\",mountpoint=\"/\",job=\"node\"} / node_filesystem_size_bytes{device=\"/dev/vda1\",fstype=\"ext4\",mountpoint=\"/\",job=\"node\"}",
"legendFormat": "/ free %"
}
],
"fieldConfig": {
"defaults": {
"unit": "percent",
"custom": {
"lineWidth": 2,
"fillOpacity": 10,
"showPoints": "never",
"thresholdsStyle": {
"mode": "line"
}
},
"min": 0,
"max": 100,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "orange",
"value": 15
},
{
"color": "green",
"value": 25
}
]
}
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi"
}
}
},
{
"id": 4,
"type": "timeseries",
"title": "Gitea HTTPS availability (probe_success)",
"description": "Blackbox http_2xx probe of the Gitea login page through Caddy: DNS, valid TLS, redirects followed, final 2xx. 1 = UP, 0 = DOWN.",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"gridPos": {
"x": 12,
"y": 8,
"w": 12,
"h": 8
},
"targets": [
{
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"expr": "probe_success{job=\"https\",instance=\"https://git.ssw590.abrdns.com/user/login\"}",
"legendFormat": "Gitea"
}
],
"fieldConfig": {
"defaults": {
"unit": "none",
"custom": {
"lineWidth": 2,
"fillOpacity": 10,
"showPoints": "never",
"thresholdsStyle": {
"mode": "line"
},
"lineInterpolation": "stepAfter"
},
"min": 0,
"max": 1,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "green",
"value": 1
}
]
},
"mappings": [
{
"type": "value",
"options": {
"0": {
"text": "DOWN",
"color": "red"
},
"1": {
"text": "UP",
"color": "green"
}
}
}
]
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi"
}
}
},
{
"id": 5,
"type": "timeseries",
"title": "Jenkins HTTPS availability (probe_success)",
"description": "Blackbox http_2xx probe of the Jenkins login page through Caddy. 1 = UP, 0 = DOWN. Login-page success does not prove a working build.",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"gridPos": {
"x": 0,
"y": 16,
"w": 12,
"h": 8
},
"targets": [
{
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"expr": "probe_success{job=\"https\",instance=\"https://ci.ssw590.abrdns.com/login\"}",
"legendFormat": "Jenkins"
}
],
"fieldConfig": {
"defaults": {
"unit": "none",
"custom": {
"lineWidth": 2,
"fillOpacity": 10,
"showPoints": "never",
"thresholdsStyle": {
"mode": "line"
},
"lineInterpolation": "stepAfter"
},
"min": 0,
"max": 1,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "green",
"value": 1
}
]
},
"mappings": [
{
"type": "value",
"options": {
"0": {
"text": "DOWN",
"color": "red"
},
"1": {
"text": "UP",
"color": "green"
}
}
}
]
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi"
}
}
},
{
"id": 6,
"type": "timeseries",
"title": "HTTPS probe duration (seconds)",
"description": "Total Blackbox probe time per service (DNS + connect + TLS + HTTP), one line per service.",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"gridPos": {
"x": 12,
"y": 16,
"w": 12,
"h": 8
},
"targets": [
{
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"expr": "probe_duration_seconds{job=\"https\",instance=\"https://git.ssw590.abrdns.com/user/login\"}",
"legendFormat": "Gitea"
},
{
"refId": "B",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"expr": "probe_duration_seconds{job=\"https\",instance=\"https://ci.ssw590.abrdns.com/login\"}",
"legendFormat": "Jenkins"
}
],
"fieldConfig": {
"defaults": {
"unit": "s",
"custom": {
"lineWidth": 2,
"fillOpacity": 10,
"showPoints": "never",
"thresholdsStyle": {
"mode": "line"
}
},
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "orange",
"value": 1
},
{
"color": "red",
"value": 5
}
]
}
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi"
}
}
},
{
"id": 7,
"type": "timeseries",
"title": "Scrape health (up)",
"description": "Collection health: 1 = Prometheus scraped the target. For the https job, up=1 only means the probe ran; probe_success shows whether the site answered.",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"gridPos": {
"x": 0,
"y": 24,
"w": 24,
"h": 7
},
"targets": [
{
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "dg2y8czei4y68b"
},
"expr": "up",
"legendFormat": "{{job}} {{instance}}"
}
],
"fieldConfig": {
"defaults": {
"unit": "none",
"custom": {
"lineWidth": 2,
"fillOpacity": 10,
"showPoints": "never",
"thresholdsStyle": {
"mode": "line"
},
"lineInterpolation": "stepAfter"
},
"min": 0,
"max": 1,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "green",
"value": 1
}
]
},
"mappings": [
{
"type": "value",
"options": {
"0": {
"text": "DOWN",
"color": "red"
},
"1": {
"text": "UP",
"color": "green"
}
}
}
]
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi"
}
}
}
]
}