Skip to content
Snippets Groups Projects
Commit 15cd5637 authored by Florian Sesser's avatar Florian Sesser
Browse files

Also relabel the payments host name to remove the port number

We have to explicitely add the port number so the relabel
config can strip it out again.  Else, `instance' seems to
get its value from somewhere else - somewhere our relabel
config does not look at.
parent 6d533f0d
No related branches found
No related tags found
3 merge requests!153merge staging into production,!148merge develop into staging,!145Prometheus niceties
Pipeline #923 passed
......@@ -59,7 +59,9 @@ in {
scheme = "https";
tls_config.insecure_skip_verify = true;
static_configs = [{
targets = cfg.paymentExporterTargets;
# Explicitly setting the port number so the relabel_config can filter it out again.
# Leaving it out makes the port number show in Grafana.
targets = map (x: x + ":443") cfg.paymentExporterTargets;
}];
relabel_configs = [ dropPortNumber ];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment