add prometheus labels

feature/refacoring
Ingolf Wagner 2023-02-24 02:12:12 +01:00
parent ee2f34867b
commit f10610c794
Signed by: palo
GPG Key ID: 76BF5F1928B9618B
2 changed files with 8 additions and 0 deletions

View File

@ -50,6 +50,10 @@
job_name = "systemd";
static_configs = [{
targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ];
labels = {
service = "node-exporter";
server = "pepe";
};
}];
}
{

View File

@ -47,6 +47,10 @@
job_name = "systemd";
static_configs = [{
targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ];
labels = {
service = "node-exporter";
server = "pepe";
};
}];
}
];