Prometheus fetcher is not sensitive about you are going to use HOST(domain name) or IP. You should be able to set the TARGET by using HOST names.
Sheng Wu 吴晟 Twitter, wusheng1108 刘胜 <[email protected]> 于2020年8月14日周五 下午2:35写道: > Hi,Development Team: > I have a question about the configuration file in Prometheus > fetcher.Currently I want to pull some metrics for the middleware, but some > of the middleware is deployed in container,once the POD is restarted, the > IP will change,At this point, the TARGETS I configured in configuration > file will lose efficacy.Is there any plan to develop the function of > dynamically obtaining HOST information and replacing it in configuration > file? > > > > >
