summaryrefslogtreecommitdiff
path: root/hosts/vidhar
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-01-02 00:30:52 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-01-02 00:30:52 +0100
commite19d2088c2681a2daf9058423ebd4815ac0270a5 (patch)
treee964a93b6e7eec5f307d59c87c17f4bc192dc8fe /hosts/vidhar
parent8043049bab6112f9522d8dd169b1d96779bb1ab6 (diff)
downloadnixos-e19d2088c2681a2daf9058423ebd4815ac0270a5.tar
nixos-e19d2088c2681a2daf9058423ebd4815ac0270a5.tar.gz
nixos-e19d2088c2681a2daf9058423ebd4815ac0270a5.tar.bz2
nixos-e19d2088c2681a2daf9058423ebd4815ac0270a5.tar.xz
nixos-e19d2088c2681a2daf9058423ebd4815ac0270a5.zip
...
Diffstat (limited to 'hosts/vidhar')
-rw-r--r--hosts/vidhar/default.nix17
1 files changed, 15 insertions, 2 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix
index 37485a02..5c58d522 100644
--- a/hosts/vidhar/default.nix
+++ b/hosts/vidhar/default.nix
@@ -202,11 +202,24 @@
202 { url = "http://localhost:9094/loki/api/v1/push"; } 202 { url = "http://localhost:9094/loki/api/v1/push"; }
203 ]; 203 ];
204 scrape_configs = [ 204 scrape_configs = [
205 { job_name = "system"; 205 { job_name = "journal";
206 journal = { 206 journal = {
207 json = true; 207 json = true;
208 max_age = "12h";
209 path = "/var/log/journal";
210 labels = {
211 job = "systemd-journal";
212 };
213 relabel_configs = [
214 { source_labels = ["__journal__systemd_unit"];
215 target_label = "unit";
216 }
217 { source_labels = ["__journal__hostname"];
218 target_label = "nodename";
219 }
220 ];
208 }; 221 };
209 } 222 };
210 ]; 223 ];
211 }; 224 };
212 }; 225 };