How to use zookeeper for service discovery

34 views
Skip to first unread message

Jeff Zhang

unread,
May 7, 2020, 5:24:37 AM5/7/20
to Prometheus Users
Hi all,

I found zookeeper service discovery related doc in prometheus code base, but didn't find any document of how to use it. Could anyone guide me how to use that ? Thanks

Brian Candler

unread,
May 7, 2020, 8:10:29 AM5/7/20
to Prometheus Users

Jeff Zhang

unread,
May 7, 2020, 9:52:40 AM5/7/20
to Brian Candler, Prometheus Users
Thanks Brian, this is the configuration on prometheus side, what I look for is what kind of data format I should insert into zookeeper. Is there any example ? 

Brian Candler <b.ca...@pobox.com> 于2020年5月7日周四 下午8:10写道:
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ca884dc3-021c-4065-b0f3-7e1828000765%40googlegroups.com.


--
Best Regards

Jeff Zhang

Brian Candler

unread,
May 7, 2020, 10:39:14 AM5/7/20
to Prometheus Users
You'd have to add to zookeeper whatever Nerve and/or Synapse adds to zookeeper.

If this isn't documented, then you may need to look at source code.

Julien Pivotto

unread,
May 7, 2020, 11:20:07 AM5/7/20
to Jeff Zhang, Prometheus Users
The code you look at is

https://prometheus.io/docs/prometheus/latest/configuration/configuration/#serverset_sd_config

>
> --
> You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6b47d23f-788e-4f6a-8867-ce71f740c192%40googlegroups.com.


--
(o- Julien Pivotto
//\ Open-Source Consultant
V_/_ Inuits - https://www.inuits.eu
signature.asc
Reply all
Reply to author
Forward
0 new messages