import into grafanacloud, fixup

https://github.com/zrepl/zrepl/pull/847#discussion_r1904343361, export
This commit is contained in:
Christian Schwarz 2025-01-06 16:35:45 +00:00
parent 4d8358abcf
commit f3840d6457

View File

@ -1,8 +1,8 @@
{ {
"__inputs": [ "__inputs": [
{ {
"name": "DS_MIMIR", "name": "DS_GRAFANACLOUD-CSCHWARZ-PROM",
"label": "Mimir", "label": "grafanacloud-cschwarz-prom",
"description": "", "description": "",
"type": "datasource", "type": "datasource",
"pluginId": "prometheus", "pluginId": "prometheus",
@ -15,7 +15,7 @@
"type": "grafana", "type": "grafana",
"id": "grafana", "id": "grafana",
"name": "Grafana", "name": "Grafana",
"version": "11.3.0" "version": "11.5.0-80207"
}, },
{ {
"type": "panel", "type": "panel",
@ -99,14 +99,14 @@
"content": "# zrepl Prometheus Metrics\n\nzrepl exposes Prometheus metrics and ships with this Grafana dashboard.\nThe exported metrics are suitable for health checks:\n\n* The log should generally be warning & error-free\n * The `Log Messages that require attention` graph visualizes log message at levels that generally indicate problems.\n* In most setups, there shouldn't be any unmatched filesystem filter rules.\n* The number of goroutines should not grow unboundedly over time.\n * During replication, the number of goroutines can be way higher than during idle time.\n * If the goroutine count grows with each replication, there is clearly a goroutine leak. Please open a bug report.\n* Memory consumption should not grow unboundedly over time.\n * Note that the Go runtime pre-allocates some of its heap from the OS.\n * zrepl actually uses much less memory than allocated from the OS.\n * Since Go 1.11, Go pre-allocates more aggressively.\n* Monitor that some data is replicated, although that metric does not guarantee that replication was successful.\n\n**In general, note that the exported metrics are not stable unless declared otherwise.**", "content": "# zrepl Prometheus Metrics\n\nzrepl exposes Prometheus metrics and ships with this Grafana dashboard.\nThe exported metrics are suitable for health checks:\n\n* The log should generally be warning & error-free\n * The `Log Messages that require attention` graph visualizes log message at levels that generally indicate problems.\n* In most setups, there shouldn't be any unmatched filesystem filter rules.\n* The number of goroutines should not grow unboundedly over time.\n * During replication, the number of goroutines can be way higher than during idle time.\n * If the goroutine count grows with each replication, there is clearly a goroutine leak. Please open a bug report.\n* Memory consumption should not grow unboundedly over time.\n * Note that the Go runtime pre-allocates some of its heap from the OS.\n * zrepl actually uses much less memory than allocated from the OS.\n * Since Go 1.11, Go pre-allocates more aggressively.\n* Monitor that some data is replicated, although that metric does not guarantee that replication was successful.\n\n**In general, note that the exported metrics are not stable unless declared otherwise.**",
"mode": "markdown" "mode": "markdown"
}, },
"pluginVersion": "11.3.0", "pluginVersion": "11.5.0-80207",
"title": "Panel Title", "title": "Panel Title",
"type": "text" "type": "text"
}, },
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"description": "Number of filesystems that failed replications", "description": "Number of filesystems that failed replications",
"fieldConfig": { "fieldConfig": {
@ -180,7 +180,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
@ -232,7 +232,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -313,12 +313,12 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.3.0", "pluginVersion": "11.5.0-80207",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"expr": "sgn(zrepl_start_time{job='$prom_job_name'})", "expr": "sgn(zrepl_start_time{job='$prom_job_name'})",
"format": "time_series", "format": "time_series",
@ -334,7 +334,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -413,12 +413,12 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.3.0", "pluginVersion": "11.5.0-80207",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"expr": "zrepl_trace_active_tasks", "expr": "zrepl_trace_active_tasks",
"format": "time_series", "format": "time_series",
@ -446,13 +446,13 @@
"content": "### Unmatched Filesystems Rules\n\nFilesystem filter rules which mention datasets that didn't exist in the `zfs list` output.", "content": "### Unmatched Filesystems Rules\n\nFilesystem filter rules which mention datasets that didn't exist in the `zfs list` output.",
"mode": "markdown" "mode": "markdown"
}, },
"pluginVersion": "11.3.0", "pluginVersion": "11.5.0-80207",
"type": "text" "type": "text"
}, },
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -513,12 +513,12 @@
"reverse": false "reverse": false
} }
}, },
"pluginVersion": "11.3.0", "pluginVersion": "11.5.0-80207",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "increase(zrepl_zfs_list_unmatched_user_specified_dataset_count{job=\"$prom_job_name\"}[$__interval])", "expr": "increase(zrepl_zfs_list_unmatched_user_specified_dataset_count{job=\"$prom_job_name\"}[$__interval])",
@ -534,7 +534,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -614,12 +614,12 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.3.0", "pluginVersion": "11.5.0-80207",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"expr": "increase(zrepl_daemon_log_entries{job='$prom_job_name',level=~'warn|error'}[1m])", "expr": "increase(zrepl_daemon_log_entries{job='$prom_job_name',level=~'warn|error'}[1m])",
"format": "time_series", "format": "time_series",
@ -633,7 +633,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -708,12 +708,12 @@
} }
] ]
}, },
"pluginVersion": "11.3.0", "pluginVersion": "11.5.0-80207",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
@ -747,7 +747,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -827,12 +827,12 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.3.0", "pluginVersion": "11.5.0-80207",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"expr": "sum(increase(zrepl_daemon_log_entries{job='$prom_job_name',zrepl_job=~\"^[^_].*\"}[1m])) by (instance,zrepl_job)", "expr": "sum(increase(zrepl_daemon_log_entries{job='$prom_job_name',zrepl_job=~\"^[^_].*\"}[1m])) by (instance,zrepl_job)",
"format": "time_series", "format": "time_series",
@ -846,7 +846,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -925,12 +925,12 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.3.0", "pluginVersion": "11.5.0-80207",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"expr": "sum(increase(zrepl_replication_bytes_replicated{job='$prom_job_name'}[1d])) by (zrepl_job)", "expr": "sum(increase(zrepl_replication_bytes_replicated{job='$prom_job_name'}[1d])) by (zrepl_job)",
"format": "time_series", "format": "time_series",
@ -948,7 +948,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1026,12 +1026,12 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.3.0", "pluginVersion": "11.5.0-80207",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"expr": "zrepl_endpoint_abstractions_cache_entry_count", "expr": "zrepl_endpoint_abstractions_cache_entry_count",
"format": "time_series", "format": "time_series",
@ -1045,7 +1045,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1124,12 +1124,12 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.3.0", "pluginVersion": "11.5.0-80207",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"expr": "go_memstats_alloc_bytes{job='$prom_job_name'}", "expr": "go_memstats_alloc_bytes{job='$prom_job_name'}",
"format": "time_series", "format": "time_series",
@ -1143,7 +1143,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1239,12 +1239,12 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.3.0", "pluginVersion": "11.5.0-80207",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"expr": "sum(rate(zrepl_replication_bytes_replicated{job='$prom_job_name'}[10m])) by (zrepl_job)", "expr": "sum(rate(zrepl_replication_bytes_replicated{job='$prom_job_name'}[10m])) by (zrepl_job)",
"format": "time_series", "format": "time_series",
@ -1257,7 +1257,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"expr": "sum(increase(zrepl_replication_bytes_replicated{job='$prom_job_name'}[10m])) by (zrepl_job)", "expr": "sum(increase(zrepl_replication_bytes_replicated{job='$prom_job_name'}[10m])) by (zrepl_job)",
"format": "time_series", "format": "time_series",
@ -1274,7 +1274,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1353,12 +1353,12 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.3.0", "pluginVersion": "11.5.0-80207",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"expr": "go_memstats_sys_bytes{job='$prom_job_name'}", "expr": "go_memstats_sys_bytes{job='$prom_job_name'}",
"format": "time_series", "format": "time_series",
@ -1373,7 +1373,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1451,12 +1451,12 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.3.0", "pluginVersion": "11.5.0-80207",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"expr": "go_goroutines{job='$prom_job_name'}", "expr": "go_goroutines{job='$prom_job_name'}",
"format": "time_series", "format": "time_series",
@ -1477,9 +1477,9 @@
"current": {}, "current": {},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"definition": "label_values(zrepl_replication_last_successful,job)", "definition": "label_values(zrepl_start_time,job)",
"includeAll": true, "includeAll": true,
"label": "Prometheus Job Name", "label": "Prometheus Job Name",
"multi": true, "multi": true,
@ -1487,7 +1487,7 @@
"options": [], "options": [],
"query": { "query": {
"qryType": 1, "qryType": 1,
"query": "label_values(zrepl_replication_last_successful,job)", "query": "label_values(zrepl_start_time,job)",
"refId": "PrometheusVariableQueryEditor-VariableQuery" "refId": "PrometheusVariableQueryEditor-VariableQuery"
}, },
"refresh": 1, "refresh": 1,
@ -1499,7 +1499,7 @@
"current": {}, "current": {},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_MIMIR}" "uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
}, },
"definition": "label_values(zrepl_replication_filesystem_errors{job=\"$prom_job_name\"}, zrepl_job)", "definition": "label_values(zrepl_replication_filesystem_errors{job=\"$prom_job_name\"}, zrepl_job)",
"includeAll": true, "includeAll": true,
@ -1538,6 +1538,6 @@
"timezone": "", "timezone": "",
"title": "ZFS Replication Zrepl", "title": "ZFS Replication Zrepl",
"uid": "etQuvBnGz", "uid": "etQuvBnGz",
"version": 10, "version": 11,
"weekStart": "" "weekStart": ""
} }