alpine: many changes
- updates - snapserver - graphana dashboards - loki - ddclient - arr suite, jellyseer - mautrix fixes
This commit is contained in:
parent
d1772cb4be
commit
123e7088f5
58 changed files with 2136 additions and 735 deletions
25
nixos/services/synapse/metrics.nix
Normal file
25
nixos/services/synapse/metrics.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
let
|
||||
port = 9008;
|
||||
in {
|
||||
services.prometheus.scrapeConfigs = [{
|
||||
job_name = "synapse";
|
||||
metrics_path = "/_synapse/metrics";
|
||||
static_configs = [{
|
||||
targets = ["localhost:${toString port}"];
|
||||
}];
|
||||
}];
|
||||
services.matrix-synapse.settings = {
|
||||
enable_metrics = true;
|
||||
listeners = [
|
||||
{
|
||||
port = port;
|
||||
type = "metrics";
|
||||
bind_addresses = ["127.0.0.1"];
|
||||
tls = false;
|
||||
resources = []; # unneeded with type: metrics, just to make the nix module happy
|
||||
}
|
||||
];
|
||||
};
|
||||
# Grafana rules?
|
||||
# https://github.com/element-hq/synapse/tree/master/contrib/prometheus/
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue