2025-11-17 14:22:46 -03:00
# services/monitoring/grafana-dashboard-storage.yaml
apiVersion : v1
kind : ConfigMap
metadata :
name : grafana-dashboard-storage
labels :
grafana_dashboard : "1"
data :
atlas-storage.json : |
{
"uid": "atlas-storage" ,
"title": "Atlas Storage" ,
2025-11-17 16:27:38 -03:00
"folderUid": "atlas-internal" ,
2025-11-17 14:22:46 -03:00
"editable": true ,
"panels": [
{
"id": 1 ,
"type": "stat" ,
2025-12-02 14:41:39 -03:00
"title": "Astreae Usage" ,
2025-11-17 14:22:46 -03:00
"datasource": {
"type": "prometheus" ,
"uid": "atlas-vm"
},
"gridPos": {
"h": 5 ,
"w": 6 ,
"x": 0 ,
"y": 0
},
"targets": [
{
"expr": "100 - (sum(node_filesystem_avail_bytes{mountpoint=\"/mnt/astreae\",fstype!~\"tmpfs|overlay\"}) / sum(node_filesystem_size_bytes{mountpoint=\"/mnt/astreae\",fstype!~\"tmpfs|overlay\"}) * 100)" ,
"refId": "A"
}
] ,
"fieldConfig": {
"defaults": {
"color": {
2025-12-12 20:44:20 -03:00
"mode": "thresholds"
2025-11-17 14:22:46 -03:00
},
"mappings": [ ] ,
"thresholds": {
2025-12-12 21:13:31 -03:00
"mode": "absolute" ,
2025-11-17 14:22:46 -03:00
"steps": [
{
2025-11-17 16:27:38 -03:00
"color": "green" ,
2025-11-17 14:22:46 -03:00
"value": null
},
{
2025-11-17 16:27:38 -03:00
"color": "yellow" ,
2025-12-12 21:13:31 -03:00
"value": 50
},
{
"color": "orange" ,
"value": 75
2025-11-17 16:27:38 -03:00
},
{
"color": "red" ,
2025-12-12 21:13:31 -03:00
"value": 91.5
2025-11-17 14:22:46 -03:00
}
]
},
2025-11-17 16:27:38 -03:00
"unit": "percent" ,
"custom": {
"displayMode": "auto"
}
2025-11-17 14:22:46 -03:00
},
"overrides": [ ]
},
"options": {
"colorMode": "value" ,
"graphMode": "area" ,
"justifyMode": "center" ,
"reduceOptions": {
"calcs": [
"lastNotNull"
] ,
"fields": "" ,
"values": false
},
"textMode": "value"
}
},
{
"id": 2 ,
"type": "stat" ,
2025-12-02 14:41:39 -03:00
"title": "Asteria Usage" ,
2025-11-17 14:22:46 -03:00
"datasource": {
"type": "prometheus" ,
"uid": "atlas-vm"
},
"gridPos": {
"h": 5 ,
"w": 6 ,
"x": 6 ,
"y": 0
},
"targets": [
{
"expr": "100 - (sum(node_filesystem_avail_bytes{mountpoint=\"/mnt/asteria\",fstype!~\"tmpfs|overlay\"}) / sum(node_filesystem_size_bytes{mountpoint=\"/mnt/asteria\",fstype!~\"tmpfs|overlay\"}) * 100)" ,
"refId": "A"
}
] ,
"fieldConfig": {
"defaults": {
"color": {
2025-12-12 20:44:20 -03:00
"mode": "thresholds"
2025-11-17 14:22:46 -03:00
},
"mappings": [ ] ,
"thresholds": {
2025-12-12 21:13:31 -03:00
"mode": "absolute" ,
2025-11-17 14:22:46 -03:00
"steps": [
{
2025-11-17 16:27:38 -03:00
"color": "green" ,
2025-11-17 14:22:46 -03:00
"value": null
},
{
2025-11-17 16:27:38 -03:00
"color": "yellow" ,
2025-12-12 21:13:31 -03:00
"value": 50
},
{
"color": "orange" ,
"value": 75
2025-11-17 16:27:38 -03:00
},
{
"color": "red" ,
2025-12-12 21:13:31 -03:00
"value": 91.5
2025-11-17 14:22:46 -03:00
}
]
},
2025-11-17 16:27:38 -03:00
"unit": "percent" ,
"custom": {
"displayMode": "auto"
}
2025-11-17 14:22:46 -03:00
},
"overrides": [ ]
},
"options": {
"colorMode": "value" ,
"graphMode": "area" ,
"justifyMode": "center" ,
"reduceOptions": {
"calcs": [
"lastNotNull"
] ,
"fields": "" ,
"values": false
},
"textMode": "value"
}
},
{
"id": 3 ,
"type": "stat" ,
2025-12-02 14:41:39 -03:00
"title": "Astreae Free" ,
2025-11-17 14:22:46 -03:00
"datasource": {
"type": "prometheus" ,
"uid": "atlas-vm"
},
"gridPos": {
"h": 5 ,
"w": 6 ,
"x": 12 ,
"y": 0
},
"targets": [
{
"expr": "sum(node_filesystem_avail_bytes{mountpoint=\"/mnt/astreae\",fstype!~\"tmpfs|overlay\"})" ,
"refId": "A"
}
] ,
"fieldConfig": {
"defaults": {
"color": {
2025-12-12 20:44:20 -03:00
"mode": "thresholds"
2025-11-17 14:22:46 -03:00
},
"mappings": [ ] ,
"thresholds": {
"mode": "absolute" ,
"steps": [
{
"color": "rgba(115, 115, 115, 1)" ,
"value": null
},
{
"color": "green" ,
"value": 1
}
]
},
2025-11-17 18:55:11 -03:00
"unit": "decbytes" ,
2025-11-17 16:27:38 -03:00
"custom": {
"displayMode": "auto"
}
2025-11-17 14:22:46 -03:00
},
"overrides": [ ]
},
"options": {
"colorMode": "value" ,
"graphMode": "area" ,
"justifyMode": "center" ,
"reduceOptions": {
"calcs": [
"lastNotNull"
] ,
"fields": "" ,
"values": false
},
"textMode": "value"
}
},
{
"id": 4 ,
"type": "stat" ,
2025-12-02 14:41:39 -03:00
"title": "Asteria Free" ,
2025-11-17 14:22:46 -03:00
"datasource": {
"type": "prometheus" ,
"uid": "atlas-vm"
},
"gridPos": {
"h": 5 ,
"w": 6 ,
"x": 18 ,
"y": 0
},
"targets": [
{
"expr": "sum(node_filesystem_avail_bytes{mountpoint=\"/mnt/asteria\",fstype!~\"tmpfs|overlay\"})" ,
"refId": "A"
}
] ,
"fieldConfig": {
"defaults": {
"color": {
2025-12-12 20:44:20 -03:00
"mode": "thresholds"
2025-11-17 14:22:46 -03:00
},
"mappings": [ ] ,
"thresholds": {
"mode": "absolute" ,
"steps": [
{
"color": "rgba(115, 115, 115, 1)" ,
"value": null
},
{
"color": "green" ,
"value": 1
}
]
},
2025-11-17 18:55:11 -03:00
"unit": "decbytes" ,
2025-11-17 16:27:38 -03:00
"custom": {
"displayMode": "auto"
}
2025-11-17 14:22:46 -03:00
},
"overrides": [ ]
},
"options": {
"colorMode": "value" ,
"graphMode": "area" ,
"justifyMode": "center" ,
"reduceOptions": {
"calcs": [
"lastNotNull"
] ,
"fields": "" ,
"values": false
},
"textMode": "value"
}
},
{
"id": 5 ,
"type": "timeseries" ,
2025-12-02 14:41:39 -03:00
"title": "Astreae Per-Node Usage" ,
2025-11-17 14:22:46 -03:00
"datasource": {
"type": "prometheus" ,
"uid": "atlas-vm"
},
"gridPos": {
"h": 9 ,
2025-11-17 16:27:38 -03:00
"w": 12 ,
2025-11-17 14:22:46 -03:00
"x": 0 ,
"y": 5
},
"targets": [
{
2025-11-17 18:55:11 -03:00
"expr": "(avg by (node) ((avg by (instance) ((1 - (node_filesystem_avail_bytes{mountpoint=\"/mnt/astreae\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{mountpoint=\"/mnt/astreae\",fstype!~\"tmpfs|overlay\"})) * 100)) * on(instance) group_left(node) label_replace(node_uname_info{nodename!=\"\"}, \"node\", \"$1\", \"nodename\", \"(.*)\"))) * on(node) group_left() label_replace(node_uname_info{nodename=~\"titan-1[2-9]|titan-2[24]\"}, \"node\", \"$1\", \"nodename\", \"(.*)\")" ,
2025-11-17 14:22:46 -03:00
"refId": "A" ,
"legendFormat": "{{node}}"
}
] ,
"fieldConfig": {
"defaults": {
"unit": "percent"
},
"overrides": [ ]
},
"options": {
"legend": {
"displayMode": "table" ,
"placement": "right"
},
"tooltip": {
"mode": "multi"
}
},
"timeFrom": "30d"
},
{
"id": 6 ,
2025-11-17 16:27:38 -03:00
"type": "timeseries" ,
2025-12-02 14:41:39 -03:00
"title": "Asteria Per-Node Usage" ,
2025-11-17 16:27:38 -03:00
"datasource": {
"type": "prometheus" ,
"uid": "atlas-vm"
},
"gridPos": {
"h": 9 ,
"w": 12 ,
"x": 12 ,
"y": 5
},
"targets": [
{
2025-11-17 18:55:11 -03:00
"expr": "(avg by (node) ((avg by (instance) ((1 - (node_filesystem_avail_bytes{mountpoint=\"/mnt/asteria\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{mountpoint=\"/mnt/asteria\",fstype!~\"tmpfs|overlay\"})) * 100)) * on(instance) group_left(node) label_replace(node_uname_info{nodename!=\"\"}, \"node\", \"$1\", \"nodename\", \"(.*)\"))) * on(node) group_left() label_replace(node_uname_info{nodename=~\"titan-1[2-9]|titan-2[24]\"}, \"node\", \"$1\", \"nodename\", \"(.*)\")" ,
2025-11-17 16:27:38 -03:00
"refId": "A" ,
"legendFormat": "{{node}}"
}
] ,
"fieldConfig": {
"defaults": {
"unit": "percent"
},
"overrides": [ ]
},
"options": {
"legend": {
"displayMode": "table" ,
"placement": "right"
},
"tooltip": {
"mode": "multi"
}
},
"timeFrom": "30d"
},
{
"id": 7 ,
"type": "timeseries" ,
2025-12-02 14:41:39 -03:00
"title": "Astreae Usage History" ,
2025-11-17 14:22:46 -03:00
"datasource": {
"type": "prometheus" ,
"uid": "atlas-vm"
},
"gridPos": {
2025-11-17 16:27:38 -03:00
"h": 9 ,
2025-11-17 14:22:46 -03:00
"w": 12 ,
"x": 0 ,
"y": 14
},
"targets": [
{
2025-11-17 16:27:38 -03:00
"expr": "100 - (sum(node_filesystem_avail_bytes{mountpoint=\"/mnt/astreae\",fstype!~\"tmpfs|overlay\"}) / sum(node_filesystem_size_bytes{mountpoint=\"/mnt/astreae\",fstype!~\"tmpfs|overlay\"}) * 100)" ,
2025-11-17 14:22:46 -03:00
"refId": "A"
}
] ,
"fieldConfig": {
"defaults": {
"unit": "percent"
},
"overrides": [ ]
},
"options": {
2025-11-17 16:27:38 -03:00
"legend": {
"displayMode": "table" ,
"placement": "bottom"
},
"tooltip": {
"mode": "multi"
2025-11-17 14:22:46 -03:00
}
2025-11-17 16:27:38 -03:00
},
"timeFrom": "90d"
2025-11-17 14:22:46 -03:00
},
{
2025-11-17 16:27:38 -03:00
"id": 8 ,
"type": "timeseries" ,
2025-12-02 14:41:39 -03:00
"title": "Asteria Usage History" ,
2025-11-17 14:22:46 -03:00
"datasource": {
"type": "prometheus" ,
"uid": "atlas-vm"
},
"gridPos": {
2025-11-17 16:27:38 -03:00
"h": 9 ,
2025-11-17 14:22:46 -03:00
"w": 12 ,
"x": 12 ,
"y": 14
},
"targets": [
{
2025-11-17 16:27:38 -03:00
"expr": "100 - (sum(node_filesystem_avail_bytes{mountpoint=\"/mnt/asteria\",fstype!~\"tmpfs|overlay\"}) / sum(node_filesystem_size_bytes{mountpoint=\"/mnt/asteria\",fstype!~\"tmpfs|overlay\"}) * 100)" ,
2025-11-17 14:22:46 -03:00
"refId": "A"
}
] ,
"fieldConfig": {
"defaults": {
"unit": "percent"
},
"overrides": [ ]
},
"options": {
2025-11-17 16:27:38 -03:00
"legend": {
"displayMode": "table" ,
"placement": "bottom"
},
"tooltip": {
"mode": "multi"
2025-11-17 14:22:46 -03:00
}
2025-11-17 16:27:38 -03:00
},
"timeFrom": "90d"
2026-01-11 23:46:24 -03:00
},
{
"id": 30 ,
"type": "stat" ,
"title": "Maintenance Sweepers Ready" ,
"datasource": {
"type": "prometheus" ,
"uid": "atlas-vm"
},
"gridPos": {
"h": 4 ,
"w": 12 ,
"x": 0 ,
"y": 44
},
"targets": [
{
"expr": "kube_daemonset_status_number_ready{namespace=\"maintenance\",daemonset=\"node-image-sweeper\"} / on(namespace,daemonset) kube_daemonset_status_desired_number_scheduled{namespace=\"maintenance\",daemonset=\"node-image-sweeper\"} * 100" ,
"refId": "A"
}
] ,
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [ ] ,
"thresholds": {
"mode": "absolute" ,
"steps": [
{
"color": "green" ,
"value": null
},
{
"color": "yellow" ,
"value": 50
},
{
"color": "orange" ,
"value": 75
},
{
"color": "red" ,
"value": 91.5
}
]
},
"unit": "percent" ,
"custom": {
"displayMode": "auto"
}
},
"overrides": [ ]
},
"options": {
"colorMode": "value" ,
"graphMode": "area" ,
"justifyMode": "center" ,
"reduceOptions": {
"calcs": [
"lastNotNull"
] ,
"fields": "" ,
"values": false
},
"textMode": "value"
}
},
{
"id": 31 ,
"type": "stat" ,
"title": "Maintenance Cron Freshness (s)" ,
"datasource": {
"type": "prometheus" ,
"uid": "atlas-vm"
},
"gridPos": {
"h": 4 ,
"w": 12 ,
"x": 12 ,
"y": 44
},
"targets": [
{
"expr": "time() - max by (cronjob) (kube_cronjob_status_last_successful_time{namespace=\"maintenance\",cronjob=~\"image-sweeper|grafana-smtp-sync\"})" ,
"refId": "A"
}
] ,
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [ ] ,
"thresholds": {
"mode": "absolute" ,
"steps": [
{
"color": "green" ,
"value": null
},
{
"color": "yellow" ,
"value": 3600
},
{
"color": "red" ,
"value": 10800
}
]
},
"unit": "s" ,
"custom": {
"displayMode": "auto"
}
},
"overrides": [ ]
},
"options": {
"colorMode": "value" ,
"graphMode": "area" ,
"justifyMode": "center" ,
"reduceOptions": {
"calcs": [
"lastNotNull"
] ,
"fields": "" ,
"values": false
},
"textMode": "value"
}
2025-11-17 14:22:46 -03:00
}
] ,
"time": {
"from": "now-12h" ,
"to": "now"
},
"annotations": {
"list": [ ]
},
"schemaVersion": 39 ,
"style": "dark" ,
"tags": [
"atlas" ,
"storage"
]
}