modules/monitoring: add sing-box monitoring
This commit is contained in:
parent
e4fd9e8b23
commit
dacd22b7d2
6 changed files with 69 additions and 0 deletions
|
@ -47,6 +47,13 @@ in
|
|||
);
|
||||
};
|
||||
|
||||
services.prometheus.exporters.v2ray = mkIf cfg.v2ray.enable {
|
||||
enable = true;
|
||||
listenAddress = cfg.v2ray.listenAddress;
|
||||
port = 9516;
|
||||
v2rayEndpoint = config.services.sing-box.settings.experimental.v2ray_api.listen;
|
||||
};
|
||||
|
||||
# gotosocial
|
||||
sops.templates."gotosocial_metrics.env" = {
|
||||
content = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue