Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRelabeling with multiple target files broken in 1.5.0 #2377
Comments
juliusv
added
the
kind/bug
label
Jan 30, 2017
This comment has been minimized.
This comment has been minimized.
jeinwag
commented
Jan 31, 2017
|
I'm also experiencing some very wird relabeling issues when using Consul service discovery with multiple servers, e.g.:
After a couple of scrapes some of the instance labels will only contain '.dc1' or '.dc2', the node name is missing. Then the __meta_consul_node is missing from the "before relabeling" popup, too. It looks like these issues are caused by the changes to the relabeling logic in 6c07453. |
This comment has been minimized.
This comment has been minimized.
|
Assigning to @brian-brazil to verify if it is connected to his relabeling changes. |
beorn7
assigned
brian-brazil
Jan 31, 2017
This comment has been minimized.
This comment has been minimized.
|
Also, this might be the same as reported by Jeffrey Ollie (possibly @jcollie on GH) via the mailing list: """
Everything works just fine on 1.4.1, but when I switch to 1.5.0 everything starts out just fine, but after a while the __param_target and the instance labels are set to 127.0.0.1:19116 (or whatever is put into the address label). Switching back to 1.4.1 solves the problem. |
jeinwag
referenced this issue
Jan 31, 2017
Closed
[Regression] Sample ingestion and latency worse after upgrade to 1.5.0 #2373
This comment has been minimized.
This comment has been minimized.
|
The only other potentially related change I see is 767c070, but this will need some debugging. |
This comment has been minimized.
This comment has been minimized.
jeinwag
commented
Jan 31, 2017
This comment has been minimized.
This comment has been minimized.
|
That narrows it down, thanks. |
alexsomesan
referenced this issue
Feb 1, 2017
Closed
K8s apiservers target detection broken after upgrade to v1.5.0 #2375
This comment has been minimized.
This comment has been minimized.
|
#2375 could also be a manifestation of the issue reported here. |
This comment has been minimized.
This comment has been minimized.
|
Looking at the code, I suspect the issue is that the relabelling is propogating back to targetsFromGroup and thus the target group. |
brian-brazil
closed this
Feb 1, 2017
brian-brazil
referenced this issue
Feb 2, 2017
Closed
Issue with relabelling after checkpointing is run #2391
This comment has been minimized.
This comment has been minimized.
chriswiggins
commented
Feb 3, 2017
|
Can confirm that the latest PR #2386 fixes this issue for us. Thanks @brian-brazil ! |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
joe-pll commentedJan 30, 2017
Hi, first of all thank you for your job, I really appreciate it.
Config
I have this Prometheus configuration and as target, for simplicity, there are three different files, corresponding to three different jobs, in the blackbox targets' directory.
In the directory /etc/prometheus/targets/blackbox/ there are the following files. In my configuration each file represents a job hence, all the targets for a job are in the same file.
job_http.yml
job_ping.yml
job_ssh.yml
Problem
I was using the version v1.4.0 and everything was fine; the files were loaded correctly and the relabeling didn't have problems.
After the upgrade to v1.5.0 the relabeling for all the targets of the first file only (first file in alphabetical order) is not replacing the labels correctly.
The label remote_address is rewritten as <link_to_the_blackbox_exporter> and not with the address 1.1.1.1 as it should be; in addition the relabel works only for the first 2/3 seconds after Prometheus startup. But I repeat, this bad behavior happens only for the targets of the first file; the relabeling for the other files keeps working.
When I unify all the targets from all the files in an unique one everything works fine.
Furthermore when Prometheus loads the files, the first one is loaded immediately the others, instead, are shown in the interface only after the first scrape of a random target of the first file.
The log in debug mode doesn't give any other information.
Giuseppe