chore: grafana - remove useless dashboards

fix: alertmanager - metrics
fix: victoria-metrics - job filter
This commit is contained in:
Ryan Yin
2025-09-26 18:02:44 +08:00
parent 3ac0cea3cc
commit a8ac95ebad
3 changed files with 43 additions and 3071 deletions
File diff suppressed because it is too large Load Diff
@@ -6469,12 +6469,12 @@
"type": "prometheus", "type": "prometheus",
"uid": "$ds" "uid": "$ds"
}, },
"definition": "label_values(vm_app_version{version=~\"victoria-metrics-.*\"}, job)", "definition": "label_values(vm_app_version{}, job)",
"includeAll": false, "includeAll": false,
"name": "job", "name": "job",
"options": [], "options": [],
"query": { "query": {
"query": "label_values(vm_app_version{version=~\"victoria-metrics-.*\"}, job)", "query": "label_values(vm_app_version{}, job)",
"refId": "VictoriaMetrics-job-Variable-Query" "refId": "VictoriaMetrics-job-Variable-Query"
}, },
"refresh": 1, "refresh": 1,
@@ -50,6 +50,8 @@
labels.type = "app"; labels.type = "app";
labels.app = "dnsmasq"; labels.app = "dnsmasq";
labels.host = "suzi"; labels.host = "suzi";
labels.env = "homelab";
labels.cluster = "homelab";
} }
]; ];
} }
@@ -64,6 +66,8 @@
labels.type = "app"; labels.type = "app";
labels.app = "v2ray"; labels.app = "v2ray";
labels.host = "aquamarine"; labels.host = "aquamarine";
labels.env = "homelab";
labels.cluster = "homelab";
} }
]; ];
} }
@@ -77,6 +81,8 @@
labels.type = "app"; labels.type = "app";
labels.app = "postgresql"; labels.app = "postgresql";
labels.host = "aquamarine"; labels.host = "aquamarine";
labels.env = "homelab";
labels.cluster = "homelab";
} }
]; ];
} }
@@ -90,6 +96,39 @@
labels.type = "app"; labels.type = "app";
labels.app = "sftpgo"; labels.app = "sftpgo";
labels.host = "aquamarine"; labels.host = "aquamarine";
labels.env = "homelab";
labels.cluster = "homelab";
}
];
}
{
job_name = "alertmanager-embedded-exporter";
scrape_interval = "30s";
metrics_path = "/metrics";
static_configs = [
{
targets = [ "localhost:9093" ];
labels.type = "app";
labels.app = "alertmanager";
labels.host = "aquamarine";
labels.env = "homelab";
labels.cluster = "homelab";
}
];
}
{
job_name = "victoriametrics-embedded-exporter";
scrape_interval = "30s";
metrics_path = "/metrics";
static_configs = [
{
# scrape vm itself
targets = [ "localhost:9090" ];
labels.type = "app";
labels.app = "victoriametrics";
labels.host = "aquamarine";
labels.env = "homelab";
labels.cluster = "homelab";
} }
]; ];
} }
@@ -109,6 +148,8 @@
targets = [ "${addr.ipv4}:9100" ]; targets = [ "${addr.ipv4}:9100" ];
labels.type = "node"; labels.type = "node";
labels.host = hostname; labels.host = hostname;
labels.env = "homelab";
labels.cluster = "homelab";
} }
]; ];
} }