add systemd prometheus exporter
This commit is contained in:
parent
03d75bcc71
commit
eda38be293
1 changed files with 11 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
||||||
extraFlags = [ "--storage.tsdb.retention.time=30d" ];
|
extraFlags = [ "--storage.tsdb.retention.time=30d" ];
|
||||||
|
|
||||||
exporters = {
|
exporters = {
|
||||||
|
systemd.enable = true;
|
||||||
node = {
|
node = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enabledCollectors = [ "systemd" ];
|
enabledCollectors = [ "systemd" ];
|
||||||
|
@ -48,6 +49,16 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
job_name = "systemd";
|
job_name = "systemd";
|
||||||
|
static_configs = [{
|
||||||
|
targets = [ "localhost:${toString config.services.prometheus.exporters.systemd.port}" ];
|
||||||
|
labels = {
|
||||||
|
service = "systemd-exporter";
|
||||||
|
server = "pepe";
|
||||||
|
};
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
job_name = "node";
|
||||||
static_configs = [{
|
static_configs = [{
|
||||||
targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ];
|
targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ];
|
||||||
labels = {
|
labels = {
|
||||||
|
|
Loading…
Reference in a new issue