diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-02 01:08:23 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-02 01:08:23 +0100 |
commit | 50bd1e399dfb216525983bab74f71eb011273956 (patch) | |
tree | a75c3bee473df6e5d96e8f16ba4701ab046ecabc /hosts/vidhar | |
parent | b3d75f1eca676f4cd195a1cbf7aa7965c1d6f1f9 (diff) | |
download | nixos-50bd1e399dfb216525983bab74f71eb011273956.tar nixos-50bd1e399dfb216525983bab74f71eb011273956.tar.gz nixos-50bd1e399dfb216525983bab74f71eb011273956.tar.bz2 nixos-50bd1e399dfb216525983bab74f71eb011273956.tar.xz nixos-50bd1e399dfb216525983bab74f71eb011273956.zip |
...
Diffstat (limited to 'hosts/vidhar')
-rw-r--r-- | hosts/vidhar/prometheus/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 3d0af319..af21ee7d 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix | |||
@@ -149,6 +149,20 @@ in { | |||
149 | relabel_configs = relabelHosts; | 149 | relabel_configs = relabelHosts; |
150 | scrape_interval = "1s"; | 150 | scrape_interval = "1s"; |
151 | } | 151 | } |
152 | { job_name = "loki"; | ||
153 | static_configs = [ | ||
154 | { targets = ["localhost:9094"]; } | ||
155 | ]; | ||
156 | relabel_configs = relabelHosts; | ||
157 | scrape_interval = "1s"; | ||
158 | } | ||
159 | { job_name = "promtail"; | ||
160 | static_configs = [ | ||
161 | { targets = ["localhost:9080"]; } | ||
162 | ]; | ||
163 | relabel_configs = relabelHosts; | ||
164 | scrape_interval = "1s"; | ||
165 | } | ||
152 | ]; | 166 | ]; |
153 | }; | 167 | }; |
154 | users.users.${config.services.prometheus.exporters.unbound.user} = { | 168 | users.users.${config.services.prometheus.exporters.unbound.user} = { |