tsuki/prometehus: set up slice for exporters
This commit is contained in:
parent
0d3e805611
commit
851d0c1fd0
@ -15,4 +15,6 @@ in {
|
||||
listenAddress = "127.0.0.1";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.prometheus-nginx-exporter.serviceConfig.Slice = "system-prometheus.slice";
|
||||
}
|
||||
|
@ -15,4 +15,6 @@
|
||||
enabledCollectors = [ "systemd" ];
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.prometheus-node-exporter.serviceConfig.Slice = "system-prometheus.slice";
|
||||
}
|
||||
|
@ -18,4 +18,6 @@
|
||||
extraFlags = [ "--auto-discover-databases" ];
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.prometheus-postgres-exporter.serviceConfig.Slice = "system-prometheus.slice";
|
||||
}
|
||||
|
@ -14,4 +14,6 @@
|
||||
port = 10394;
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.prometheus-redis-exporter.serviceConfig.Slice = "system-prometheus.slice";
|
||||
}
|
||||
|
@ -18,4 +18,6 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.prometheus-systemd-exporter.serviceConfig.Slice = "system-prometheus.slice";
|
||||
}
|
||||
|
@ -19,4 +19,12 @@
|
||||
enable = true;
|
||||
port = 7001;
|
||||
};
|
||||
|
||||
systemd.slices.system-prometheus = {
|
||||
description = "Prometheus slice";
|
||||
requires= [ "system.slice" ];
|
||||
after= [ "system.slice" ];
|
||||
};
|
||||
|
||||
systemd.services.prometheus.serviceConfig.Slice = "system-prometheus.slice";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user