ADD rexexp and replacement : not OK
This commit is contained in:
parent
04f693e895
commit
ad8d7d852a
|
@ -25,31 +25,38 @@
|
||||||
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}" ];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
job_name = "nextcloud";
|
job_name = "nextcloud";
|
||||||
static_configs = [{
|
static_configs = [{
|
||||||
targets = [ "192.168.10.114:${toString config.services.prometheus.exporters.node.port}" ];
|
targets = [ "192.168.10.114:${toString config.services.prometheus.exporters.node.port}" ];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
job_name = "pizzajoffre";
|
job_name = "pizzajoffre";
|
||||||
static_configs = [{
|
static_configs = [{
|
||||||
targets = [ "37.187.103.8:${toString config.services.prometheus.exporters.node.port}" ];
|
targets = [ "37.187.103.8:${toString config.services.prometheus.exporters.node.port}" ];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
job_name = "dell-5590";
|
job_name = "dell-5590";
|
||||||
static_configs = [{
|
static_configs = [{
|
||||||
targets = [ "192.168.10.100:${toString config.services.prometheus.exporters.node.port}" ];
|
targets = [ "192.168.10.100:${toString config.services.prometheus.exporters.node.port}" ];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
job_name = "temperatures";
|
job_name = "temperatures";
|
||||||
static_configs = [{
|
static_configs = [{
|
||||||
targets = [ "192.168.10.116:9521" ];
|
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 = {
|
users.users.caddy = {
|
||||||
|
|
Loading…
Reference in New Issue