diff --git a/scripts/check-dashboard-service-names.sh b/scripts/check-dashboard-service-names.sh index bd365fc6..14a4c3e2 100644 --- a/scripts/check-dashboard-service-names.sh +++ b/scripts/check-dashboard-service-names.sh @@ -18,11 +18,14 @@ dashboards_dir="nix/host-modules/swarm-grafana/dashboards" # otelcol-contrib: the unset default of the collector binary, which the hive # collector and swarm-otel both run (`pkgs.opentelemetry-collector-contrib`) # and which stamps their self-metrics. +# grafana: a scraped target takes its job name as service.name, and the swarm +# collector scrapes Grafana's `/metrics` as the `grafana` job. known='bao|nix/host-modules/swarm-bao.nix|collectorServiceName = "bao" authelia|nix/host-modules/swarm-authelia.nix|serviceName = "authelia" forgejo|nix/host-modules/hive-forge/default.nix|serviceName = "forgejo" swarm-controller|swarm-controller/src/vcs_metrics.rs|with_service_name("swarm-controller") -otelcol-contrib|nix/host-modules/otel.nix|package = pkgs.opentelemetry-collector-contrib' +otelcol-contrib|nix/host-modules/otel.nix|package = pkgs.opentelemetry-collector-contrib +grafana|nix/host-modules/swarm-otel-service.nix|grafana = "https://${hyperhiveCfg.swarm.grafana.domain}/metrics"' violations=0