Chef Server SD

22 views
Skip to first unread message

José Antonio Abraham Palomo

unread,
May 2, 2020, 2:00:04 PM5/2/20
to Prometheus Developers
Hi, I hope all people here be fine, in my current job we are working with chef server, and I want to develop that Service Discovery for prometheus, but before I want to ask the community if there is a PR or someone working on it.

Thanks regards.

Ben Kochie

unread,
May 2, 2020, 2:33:12 PM5/2/20
to José Antonio Abraham Palomo, Prometheus Developers
For Chef users, people typically implement Chef search based templates and file_sd_configs.

IMO, there's no real point into adding Chef support directly into Prometheus. Chef searches are too slow/expensive to add directly to something that might send multiple queries every 30-60 seconds.

On Sat, May 2, 2020 at 8:00 PM José Antonio Abraham Palomo <abrah...@gmail.com> wrote:
Hi, I hope all people here be fine, in my current job we are working with chef server, and I want to develop that Service Discovery for prometheus, but before I want to ask the community if there is a PR or someone working on it.

Thanks regards.

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/ebe13d9f-fc40-4870-bf2d-8514354eb884%40googlegroups.com.

José Antonio Abraham Palomo

unread,
May 2, 2020, 2:44:45 PM5/2/20
to Prometheus Developers
I think you have a reason, but the goal is to be able to easily use the ability to enumerate hosts as azure SD.

Metrics don't necessarily needs to scrape every 30 seconds, for default may be more time.

Do you know about a good practice for this?



El sábado, 2 de mayo de 2020, 14:33:12 (UTC-4), Ben Kochie escribió:
For Chef users, people typically implement Chef search based templates and file_sd_configs.

IMO, there's no real point into adding Chef support directly into Prometheus. Chef searches are too slow/expensive to add directly to something that might send multiple queries every 30-60 seconds.

On Sat, May 2, 2020 at 8:00 PM José Antonio Abraham Palomo <abrah...@gmail.com> wrote:
Hi, I hope all people here be fine, in my current job we are working with chef server, and I want to develop that Service Discovery for prometheus, but before I want to ask the community if there is a PR or someone working on it.

Thanks regards.

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.

Matthias Rampke

unread,
May 4, 2020, 3:51:18 AM5/4/20
to José Antonio Abraham Palomo, Prometheus Developers
As Ben said, write out file SD files, usually using chef-client, but you can also script something else up if you want to decouple the SD lifecycle from chef-client runs. The file SD is just JSON, so that's very easy to generate in Ruby/Chef.

Because Chef queries are so slow, and Prometheus SD runs on every scrape, you need to decouple them. The file SD mechanism already provides that.

/MR

On Sat, May 2, 2020 at 6:44 PM José Antonio Abraham Palomo <abrah...@gmail.com> wrote:
I think you have a reason, but the goal is to be able to easily use the ability to enumerate hosts as azure SD.

Metrics don't necessarily needs to scrape every 30 seconds, for default may be more time.

Do you know about a good practice for this?



El sábado, 2 de mayo de 2020, 14:33:12 (UTC-4), Ben Kochie escribió:
For Chef users, people typically implement Chef search based templates and file_sd_configs.

IMO, there's no real point into adding Chef support directly into Prometheus. Chef searches are too slow/expensive to add directly to something that might send multiple queries every 30-60 seconds.

On Sat, May 2, 2020 at 8:00 PM José Antonio Abraham Palomo <abrah...@gmail.com> wrote:
Hi, I hope all people here be fine, in my current job we are working with chef server, and I want to develop that Service Discovery for prometheus, but before I want to ask the community if there is a PR or someone working on it.

Thanks regards.

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/b3bac54d-329f-4253-99fa-37a1029b37d0%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages