add prometheus labels
This commit is contained in:
parent
ee2f34867b
commit
f10610c794
2 changed files with 8 additions and 0 deletions
|
@ -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";
|
||||||
|
};
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
|
@ -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";
|
||||||
|
};
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue