refactoring
This commit is contained in:
parent
7016ef880a
commit
fce4a39b94
2 changed files with 3 additions and 0 deletions
|
@ -51,6 +51,7 @@
|
||||||
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
|
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
|
||||||
labels = {
|
labels = {
|
||||||
service = "node-exporter";
|
service = "node-exporter";
|
||||||
|
# todo : use a processor for this
|
||||||
server = config.networking.hostName;
|
server = config.networking.hostName;
|
||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
|
|
|
@ -56,7 +56,9 @@
|
||||||
static_configs = [{
|
static_configs = [{
|
||||||
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
|
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
|
||||||
labels = {
|
labels = {
|
||||||
|
# todo : this is not really needed (right?)
|
||||||
service = "node-exporter";
|
service = "node-exporter";
|
||||||
|
# todo : use a processor for this
|
||||||
server = config.networking.hostName;
|
server = config.networking.hostName;
|
||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
|
|
Loading…
Reference in a new issue