summaryrefslogtreecommitdiff
path: root/hosts/surtr/prometheus/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-04-09 00:31:36 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-04-09 00:31:36 +0200
commit2084863d352fd059ee0f6abfef7965beb6b9c74e (patch)
tree039e389436cdf10dbd84b4b1c7b1376b7491b73e /hosts/surtr/prometheus/default.nix
parent14e731f40b91976976cc8b72f267bc90b0f07521 (diff)
downloadnixos-2084863d352fd059ee0f6abfef7965beb6b9c74e.tar
nixos-2084863d352fd059ee0f6abfef7965beb6b9c74e.tar.gz
nixos-2084863d352fd059ee0f6abfef7965beb6b9c74e.tar.bz2
nixos-2084863d352fd059ee0f6abfef7965beb6b9c74e.tar.xz
nixos-2084863d352fd059ee0f6abfef7965beb6b9c74e.zip
surtr: synapse metrics
Diffstat (limited to 'hosts/surtr/prometheus/default.nix')
-rw-r--r--hosts/surtr/prometheus/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/hosts/surtr/prometheus/default.nix b/hosts/surtr/prometheus/default.nix
index e38fdcb2..0f0cf586 100644
--- a/hosts/surtr/prometheus/default.nix
+++ b/hosts/surtr/prometheus/default.nix
@@ -136,6 +136,14 @@ in {
136 ]; 136 ];
137 scrape_interval = "5s"; 137 scrape_interval = "5s";
138 } 138 }
139 { job_name = "synapse";
140 metrics_path = "/_synapse/metrics";
141 static_configs = [
142 { targets = ["localhost:9092"]; }
143 ];
144 relabel_configs = relabelHosts;
145 scrape_interval = "5s";
146 }
139 ]; 147 ];
140 148
141 rules = [ 149 rules = [
@@ -144,6 +152,9 @@ in {
144 ]; 152 ];
145 }) 153 })
146 ]; 154 ];
155 ruleFiles = [
156 ./synapse-v2.rules
157 ];
147 }; 158 };
148 users.users.${config.services.prometheus.exporters.unbound.user} = { 159 users.users.${config.services.prometheus.exporters.unbound.user} = {
149 description = "Prometheus unbound exporter service user"; 160 description = "Prometheus unbound exporter service user";