add prometheus labels

This commit is contained in:
Ingolf Wagner 2023-02-24 02:12:12 +01:00
parent ee2f34867b
commit f10610c794
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 8 additions and 0 deletions

View file

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

View file

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