refactoring

This commit is contained in:
Ingolf Wagner 2024-05-14 23:02:13 +02:00
parent 7016ef880a
commit fce4a39b94
Signed by: palo
GPG key ID: 76BF5F1928B9618B
2 changed files with 3 additions and 0 deletions

View file

@ -51,6 +51,7 @@
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
labels = {
service = "node-exporter";
# todo : use a processor for this
server = config.networking.hostName;
};
}];

View file

@ -56,7 +56,9 @@
static_configs = [{
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
labels = {
# todo : this is not really needed (right?)
service = "node-exporter";
# todo : use a processor for this
server = config.networking.hostName;
};
}];