You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@skywalking.apache.org by 刘胜 <80...@qq.com> on 2020/08/14 06:35:06 UTC
Consulting Letter
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?
Re: Consulting Letter
Posted by Sheng Wu <wu...@gmail.com>.
I think with the fetching mode, the key is, whether you could have all
hostnames (every pod) once for all.
In the future, I think @高洪涛@skywalking <ha...@apache.org> mentioned, we
are going to provide a k8s-adopted target lookup mechanism, but I think it
is not there yet.
Sheng Wu 吴晟
Twitter, wusheng1108
Sheng Wu <wu...@gmail.com> 于2020年8月14日周五 下午2:39写道:
> 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
>
>
> 刘胜 <80...@qq.com> 于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?
>>
>>
>>
>>
>>
Re: Consulting Letter
Posted by Sheng Wu <wu...@gmail.com>.
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
刘胜 <80...@qq.com> 于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?
>
>
>
>
>