modules/prometheus: support miniflux

This commit is contained in:
xinyangli 2024-08-05 20:04:37 +08:00
parent 1906c39add
commit c4dadf2b45
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk
2 changed files with 2 additions and 2 deletions

View file

@ -96,11 +96,11 @@ in
node = {
enable = true;
enabledCollectors = [
"diskstats"
"loadavg"
"time"
"systemd"
];
listenAddress = "127.0.0.1";
port = 9100;
};
};

View file

@ -4,7 +4,7 @@ let
in
{
config = lib.mkIf (cfg.enable && cfg.exporters.miniflux.enable) {
systemd.services.miniflux.environment.METRICS_COLLECTOR = 1;
systemd.services.miniflux.environment.METRICS_COLLECTOR = "1";
services.prometheus.scrapeConfigs = [
{
job_name = "miniflux";