fix(monitoring): fix JSON schema for memento.json dashboard targets by using structured datasource object
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Unit Tests & Build (push) Has been cancelled

This commit is contained in:
Antigravity
2026-05-30 11:52:34 +00:00
parent 76a8135567
commit cecd8ff27d

View File

@@ -34,7 +34,10 @@
"type": "row" "type": "row"
}, },
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@@ -78,7 +81,10 @@
"pluginVersion": "8.0.0", "pluginVersion": "8.0.0",
"targets": [ "targets": [
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"editorMode": "code", "editorMode": "code",
"expr": "memento_uptime_seconds", "expr": "memento_uptime_seconds",
"instant": true, "instant": true,
@@ -90,7 +96,10 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@@ -153,7 +162,10 @@
"pluginVersion": "8.0.0", "pluginVersion": "8.0.0",
"targets": [ "targets": [
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"editorMode": "code", "editorMode": "code",
"expr": "memento_db_up", "expr": "memento_db_up",
"instant": true, "instant": true,
@@ -165,7 +177,10 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@@ -228,7 +243,10 @@
"pluginVersion": "8.0.0", "pluginVersion": "8.0.0",
"targets": [ "targets": [
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"editorMode": "code", "editorMode": "code",
"expr": "memento_redis_up", "expr": "memento_redis_up",
"instant": true, "instant": true,
@@ -252,7 +270,10 @@
"type": "row" "type": "row"
}, },
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@@ -295,7 +316,10 @@
"pluginVersion": "8.0.0", "pluginVersion": "8.0.0",
"targets": [ "targets": [
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"editorMode": "code", "editorMode": "code",
"expr": "memento_users_total", "expr": "memento_users_total",
"instant": true, "instant": true,
@@ -307,7 +331,10 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@@ -350,7 +377,10 @@
"pluginVersion": "8.0.0", "pluginVersion": "8.0.0",
"targets": [ "targets": [
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"editorMode": "code", "editorMode": "code",
"expr": "memento_notebooks_total", "expr": "memento_notebooks_total",
"instant": true, "instant": true,
@@ -362,7 +392,10 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@@ -405,7 +438,10 @@
"pluginVersion": "8.0.0", "pluginVersion": "8.0.0",
"targets": [ "targets": [
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"editorMode": "code", "editorMode": "code",
"expr": "memento_notes_total", "expr": "memento_notes_total",
"instant": true, "instant": true,
@@ -429,7 +465,10 @@
"type": "row" "type": "row"
}, },
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": {
@@ -448,7 +487,10 @@
"id": 10, "id": 10,
"targets": [ "targets": [
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"expr": "memento_db_latency_ms", "expr": "memento_db_latency_ms",
"legendFormat": "Database Query Latency", "legendFormat": "Database Query Latency",
"refId": "A" "refId": "A"
@@ -458,7 +500,10 @@
"type": "timeseries" "type": "timeseries"
}, },
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": {
@@ -477,7 +522,10 @@
"id": 11, "id": 11,
"targets": [ "targets": [
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"expr": "memento_redis_latency_ms", "expr": "memento_redis_latency_ms",
"legendFormat": "Redis Ping Latency", "legendFormat": "Redis Ping Latency",
"refId": "A" "refId": "A"
@@ -499,7 +547,10 @@
"type": "row" "type": "row"
}, },
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": {
@@ -517,19 +568,28 @@
"id": 13, "id": 13,
"targets": [ "targets": [
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"expr": "memento_process_rss_bytes", "expr": "memento_process_rss_bytes",
"legendFormat": "Process RSS Memory", "legendFormat": "Process RSS Memory",
"refId": "A" "refId": "A"
}, },
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"expr": "memento_process_heap_total_bytes", "expr": "memento_process_heap_total_bytes",
"legendFormat": "Process Heap Total", "legendFormat": "Process Heap Total",
"refId": "B" "refId": "B"
}, },
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"expr": "memento_process_heap_used_bytes", "expr": "memento_process_heap_used_bytes",
"legendFormat": "Process Heap Used", "legendFormat": "Process Heap Used",
"refId": "C" "refId": "C"
@@ -539,7 +599,10 @@
"type": "timeseries" "type": "timeseries"
}, },
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"custom": { "custom": {
@@ -557,7 +620,10 @@
"id": 14, "id": 14,
"targets": [ "targets": [
{ {
"datasource": "Prometheus", "datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"expr": "memento_redis_memory_bytes", "expr": "memento_redis_memory_bytes",
"legendFormat": "Redis Memory Used", "legendFormat": "Redis Memory Used",
"refId": "A" "refId": "A"