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": [
{
"name": "DS_MIMIR",
"label": "Mimir",
"name": "DS_GRAFANACLOUD-CSCHWARZ-PROM",
"label": "grafanacloud-cschwarz-prom",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
@ -15,7 +15,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "11.3.0"
"version": "11.5.0-80207"
},
{
"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.**",
"mode": "markdown"
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.5.0-80207",
"title": "Panel Title",
"type": "text"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"description": "Number of filesystems that failed replications",
"fieldConfig": {
@ -180,7 +180,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"editorMode": "code",
"exemplar": false,
@ -232,7 +232,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"fieldConfig": {
"defaults": {
@ -313,12 +313,12 @@
"sort": "none"
}
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"expr": "sgn(zrepl_start_time{job='$prom_job_name'})",
"format": "time_series",
@ -334,7 +334,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"fieldConfig": {
"defaults": {
@ -413,12 +413,12 @@
"sort": "none"
}
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"expr": "zrepl_trace_active_tasks",
"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.",
"mode": "markdown"
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.5.0-80207",
"type": "text"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"description": "",
"fieldConfig": {
@ -513,12 +513,12 @@
"reverse": false
}
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"editorMode": "code",
"expr": "increase(zrepl_zfs_list_unmatched_user_specified_dataset_count{job=\"$prom_job_name\"}[$__interval])",
@ -534,7 +534,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"fieldConfig": {
"defaults": {
@ -614,12 +614,12 @@
"sort": "none"
}
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"expr": "increase(zrepl_daemon_log_entries{job='$prom_job_name',level=~'warn|error'}[1m])",
"format": "time_series",
@ -633,7 +633,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"description": "",
"fieldConfig": {
@ -708,12 +708,12 @@
}
]
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"editorMode": "code",
"exemplar": false,
@ -747,7 +747,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"fieldConfig": {
"defaults": {
@ -827,12 +827,12 @@
"sort": "none"
}
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"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)",
"format": "time_series",
@ -846,7 +846,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"fieldConfig": {
"defaults": {
@ -925,12 +925,12 @@
"sort": "none"
}
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"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)",
"format": "time_series",
@ -948,7 +948,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"fieldConfig": {
"defaults": {
@ -1026,12 +1026,12 @@
"sort": "none"
}
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"expr": "zrepl_endpoint_abstractions_cache_entry_count",
"format": "time_series",
@ -1045,7 +1045,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"fieldConfig": {
"defaults": {
@ -1124,12 +1124,12 @@
"sort": "none"
}
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"expr": "go_memstats_alloc_bytes{job='$prom_job_name'}",
"format": "time_series",
@ -1143,7 +1143,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"fieldConfig": {
"defaults": {
@ -1239,12 +1239,12 @@
"sort": "none"
}
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"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)",
"format": "time_series",
@ -1257,7 +1257,7 @@
{
"datasource": {
"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)",
"format": "time_series",
@ -1274,7 +1274,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"fieldConfig": {
"defaults": {
@ -1353,12 +1353,12 @@
"sort": "none"
}
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"expr": "go_memstats_sys_bytes{job='$prom_job_name'}",
"format": "time_series",
@ -1373,7 +1373,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"fieldConfig": {
"defaults": {
@ -1451,12 +1451,12 @@
"sort": "none"
}
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"expr": "go_goroutines{job='$prom_job_name'}",
"format": "time_series",
@ -1477,9 +1477,9 @@
"current": {},
"datasource": {
"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,
"label": "Prometheus Job Name",
"multi": true,
@ -1487,7 +1487,7 @@
"options": [],
"query": {
"qryType": 1,
"query": "label_values(zrepl_replication_last_successful,job)",
"query": "label_values(zrepl_start_time,job)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
@ -1499,7 +1499,7 @@
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_MIMIR}"
"uid": "${DS_GRAFANACLOUD-CSCHWARZ-PROM}"
},
"definition": "label_values(zrepl_replication_filesystem_errors{job=\"$prom_job_name\"}, zrepl_job)",
"includeAll": true,
@ -1538,6 +1538,6 @@
"timezone": "",
"title": "ZFS Replication Zrepl",
"uid": "etQuvBnGz",
"version": 10,
"version": 11,
"weekStart": ""
}