ADD rexexp and replacement : not OK

This commit is contained in:
Alexandre LUCAZEAU 2022-07-05 15:35:27 +00:00
parent 04f693e895
commit ad8d7d852a
1 changed files with 12 additions and 5 deletions

View File

@ -25,31 +25,38 @@
static_configs = [{
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
}];
}
{
}
{
job_name = "nextcloud";
static_configs = [{
targets = [ "192.168.10.114:${toString config.services.prometheus.exporters.node.port}" ];
}];
}
{
{
job_name = "pizzajoffre";
static_configs = [{
targets = [ "37.187.103.8:${toString config.services.prometheus.exporters.node.port}" ];
}];
}
{
{
job_name = "dell-5590";
static_configs = [{
targets = [ "192.168.10.100:${toString config.services.prometheus.exporters.node.port}" ];
}];
}
{
{
job_name = "temperatures";
static_configs = [{
targets = [ "192.168.10.116:9521" ];
}];
relabel_configs = [{
source_labels = [ "device" ];
target_label = "id";
regex = "c9:5e:c5:16:23:4d" ;
replacement = "A";
}];
}
];
};
users.users.caddy = {