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 = { node = {
enable = true; enable = true;
enabledCollectors = [ enabledCollectors = [
"diskstats"
"loadavg" "loadavg"
"time" "time"
"systemd" "systemd"
]; ];
listenAddress = "127.0.0.1";
port = 9100; port = 9100;
}; };
}; };

View file

@ -4,7 +4,7 @@ let
in in
{ {
config = lib.mkIf (cfg.enable && cfg.exporters.miniflux.enable) { 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 = [ services.prometheus.scrapeConfigs = [
{ {
job_name = "miniflux"; job_name = "miniflux";