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 upDeleted scrape target is always recreated #4755
Comments
piotrkochan
changed the title
There is no way to delete scraper.
Deleted scrape target is always recreated.
Oct 18, 2018
piotrkochan
changed the title
Deleted scrape target is always recreated.
Deleted scrape target is always recreated
Oct 18, 2018
This comment has been minimized.
This comment has been minimized.
|
You need to reload the configuration using I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search. |
simonpasquier
closed this
Oct 18, 2018
This comment has been minimized.
This comment has been minimized.
|
@simonpasquier please reopen, because |
This comment has been minimized.
This comment has been minimized.
|
On the mailing list there is same issue and it is no resolved so I assume it is a bug. |
This comment has been minimized.
This comment has been minimized.
does not have any effect as well. |
This comment has been minimized.
This comment has been minimized.
|
I also tried to delete no only "up" but everything labeled:
then reload, restart, service is still present... |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
marksugar
commented
Dec 26, 2018
•
|
Hello @piotrkochan , I don't know if you have solved this problem, because now I have encountered this problem and have not solved it. |
This comment has been minimized.
This comment has been minimized.
|
I havent, target is still vislble
W dniu śr., 26.12.2018 o 07:55 Mark <notifications@github.com> napisał(a):
… Hello @piotrkochan <https://github.com/piotrkochan> , I don't know if you
have solved this problem, because now I have encountered this problem and
have not solved it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4755 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFXy-TkV8FGdBqBn96e3QL7xPyEU5nbHks5u8x10gaJpZM4Xszk->
.
|
This comment has been minimized.
This comment has been minimized.
marksugar
commented
Dec 26, 2018
|
@piotrkochan So how do you now handle alarm messages sent by hosts that no longer exist? |
This comment has been minimized.
This comment has been minimized.
|
Silence in alertmanager
W dniu śr., 26.12.2018 o 10:24 Mark <notifications@github.com> napisał(a):
… @piotrkochan <https://github.com/piotrkochan> So how do you now handle
alarm messages sent by hosts that no longer exist?
Best Regards
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4755 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFXy-fyyI2bH1vsX_xiZXRxxIk0JVvI2ks5u80A4gaJpZM4Xszk->
.
|
This comment has been minimized.
This comment has been minimized.
If a full Prometheus restart does not remove the target, then it's certain that Prometheus is loading the wrong configuration file. Prometheus does not store a list of targets on disk by itself, so it would have no other source from which to re-create this target after restart. |
piotrkochan commentedOct 18, 2018
Use case. Why is this important?
There is no really a way to stop prometheus from scraping previously defined target.
Bug Report
What did you do?
What did you expect to see?
I expect that if there is no config for this target and data then prometheus forget about that target, and do not try to scrape it in the future.
What did you see instead? Under which circumstances?
Prometheus still try to scrape this target. Even in the UI it is still visible:

Environment
System information:
Linux 4.4.0-130-generic x86_64
Prometheus version:
Just regular configuration without previously defined scrape_config entry.