@cryptotaxi247 / infra / commits / 080d5cc6

prometheus: scrape anubis metrics

Martin Weinelt committed Apr 25, 2025 at 01:00 UTC 080d5cc601b355c93667dc257a7e0a2933e13447
2 files changed +18 -1
build/pluto/prometheus/default.nix
+2 -1
@@ -3,7 +3,7 @@
3 {
4 imports = [
5 ./alertmanager.nix
6 - ./exporters/up.nix
6 + ./exporters/anubis.nix
7 ./exporters/blackbox.nix
8 ./exporters/channel.nix
9 ./exporters/domain.nix
@@ -17,6 +17,7 @@
17 ./exporters/owncast.nix
18 ./exporters/postgresql.nix
19 ./exporters/rasdaemon.nix
20 + ./exporters/up.nix
21 ./exporters/zfs.nix
22 ];
23
build/pluto/prometheus/exporters/anubis.nix new
+16
@@ -0,0 +1,16 @@
1 +{
2 + services.prometheus = {
3 + scrapeConfigs = [
4 + {
5 + job_name = "anubis";
6 + static_configs = [
7 + {
8 + targets = [
9 + "hydra.nixos.org:9001"
10 + ];
11 + }
12 + ];
13 + }
14 + ];
15 + };
16 +}