Hope to support Prometheus using nacos as a service discovery source.
Prometheus support use service discovery to dynamic add monitor point. So current the SD mode support consul, k8s. Hope we can add nacos SD to Prometheus SD support to integrate the Prometheus with nacos together.
We hope someone familiar with Prometheus can contribute for it, I can support you to finish it.
+1
How about making an adaptor like eureka-consul-adapter instead of native-way for prometheus.
Or export to a file that compatible with prometheus' "File-based service discovery".
@STRRL I think this is the recommended way. Can you implement this adapter for Nacos?
@nkorange Thanks for your trust.
I will try it during this Labor day holiday. XD
@nkorange Thanks for your trust.
I will try it during this Labor day holiday. XD
Great, if you have any problem you can contact me.
use Prometheus File SD + jar(little client work with APIs and generate json file)
then customize a docker images: put the prometheus and that jar into a images
It works for me currently, still hope we can have direct prometheus SD with nacos
Reference:
https://prometheus.io/docs/guides/file-sd/
@i will solve it@
@STRRL Are you still working on this issue?
Sorry, I forgot it for almost three weeks.
But I already find out the way to make nacos be compatible with consul.
I will upload my work later.
Hurry up
No any update
在 2019年8月30日,16:06,BinWu1989 notifications@github.com 写道:
Hi ,Is there any update on this? If the process is stuck ,I will do the job
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/alibaba/nacos/issues/1032?email_source=notifications&email_token=AIES4XMNIZXG3CXPWVNBI23QHDIHRA5CNFSM4HEXZW4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5Q43SI#issuecomment-526503369, or mute the thread https://github.com/notifications/unsubscribe-auth/AIES4XOXHWHOK3FI66V3XGDQHDIHRANCNFSM4HEXZW4A.
@STRRL Can you share the solution ?
I implmented as the eureka-consul-adapter way to implements the interfaces the consul providies ,seems it works as expected 。The interfaces needed are below:
(1)/v1/agent/self
(2)/v1/catalog/services
(3)/v1/catalog/service/{serviceName}
How work with it
发自我的iPhone
在 2019年9月23日,09:42,BinWu1989 notifications@github.com 写道:
I implmented as the eureka-consul-adapter way to implements the interfaces the consul providies ,seems it works as expected 。The interfaces needed are below:
(1)/v1/agent/self
(2)/v1/catalog/services
(3)/v1/catalog/service/{serviceName}—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
参考eureka-consule-adapter实现的nacos-consul-adapter,在prometheus配置文件中使用consul_sd_configs配置nacos-consul-adapter地址可以实现从nacos中动态发现服务地址
may be you can try https://github.com/afghanistanyn/prometheus-nacos-sd
Most helpful comment
may be you can try https://github.com/afghanistanyn/prometheus-nacos-sd