modules/prometheus: support miniflux
This commit is contained in:
parent
1906c39add
commit
c4dadf2b45
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue