diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-31 16:34:33 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-31 16:34:33 +0100 |
commit | 3174f7b24c24f07811446c8528386903bdb20f90 (patch) | |
tree | 40f35b9024ff8c03f3aefa554bd64aa46fbeabcc /hosts | |
parent | 32643c49ea0e1b08be3da545f7d02643807bf9e2 (diff) | |
download | nixos-3174f7b24c24f07811446c8528386903bdb20f90.tar nixos-3174f7b24c24f07811446c8528386903bdb20f90.tar.gz nixos-3174f7b24c24f07811446c8528386903bdb20f90.tar.bz2 nixos-3174f7b24c24f07811446c8528386903bdb20f90.tar.xz nixos-3174f7b24c24f07811446c8528386903bdb20f90.zip |
vidhar: prometheus: ...
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/vidhar/prometheus.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hosts/vidhar/prometheus.nix b/hosts/vidhar/prometheus.nix index f2959dd2..7c776c0f 100644 --- a/hosts/vidhar/prometheus.nix +++ b/hosts/vidhar/prometheus.nix | |||
@@ -48,6 +48,12 @@ in { | |||
48 | }; | 48 | }; |
49 | 49 | ||
50 | scrapeConfigs = [ | 50 | scrapeConfigs = [ |
51 | { job_name = "prometheus"; | ||
52 | static_configs = [ | ||
53 | { targets = ["localhost:${toString config.services.prometheus.port}"]; } | ||
54 | ]; | ||
55 | relabel_configs = relabelHosts; | ||
56 | } | ||
51 | { job_name = "node"; | 57 | { job_name = "node"; |
52 | static_configs = [ | 58 | static_configs = [ |
53 | { targets = ["localhost:${toString config.services.prometheus.exporters.node.port}"]; } | 59 | { targets = ["localhost:${toString config.services.prometheus.exporters.node.port}"]; } |