diff options
Diffstat (limited to 'hosts/surtr/prometheus/default.nix')
-rw-r--r-- | hosts/surtr/prometheus/default.nix | 11 |
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"; |