@cryptotaxi247 / infra / commits / 9b760be7

Add host label to `smtp_starttls` scrapes

Previously, we had `instance=mail-test.nixos.org`, but this doesn't tell us the host this MX record points at. Now we have a host as well (such as `host=umbriel.nixos.org`).

Jeremy Fleischman committed Feb 21, 2025 at 02:13 UTC 9b760be7a463d0013900b8957e93469759a2db10
1 file changed +4
build/pluto/prometheus/exporters/blackbox.nix
+4
@@ -38,6 +38,10 @@ let
38 source_labels = [ "__address__" ];
39 target_label = "__param_target";
40 }
41 + {
42 + source_labels = [ "__address__" ];
43 + target_label = "host";
44 + }
45 {
46 source_labels = [ "__meta_dns_name" ];
47 target_label = "instance";