refactoring

This commit is contained in:
Ingolf Wagner 2024-05-14 23:02:13 +02:00
parent 7016ef880a
commit fce4a39b94
No known key found for this signature in database
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}" ]; 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;
}; };
}]; }];

View file

@ -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;
}; };
}]; }];