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 <
[email protected]> 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 <
>> [email protected]> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/prometheus-developers/ebe13d9f-fc40-4870-bf2d-8514354eb884%40googlegroups.com
>>> <https://groups.google.com/d/msgid/prometheus-developers/ebe13d9f-fc40-4870-bf2d-8514354eb884%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-developers/b3bac54d-329f-4253-99fa-37a1029b37d0%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-developers/b3bac54d-329f-4253-99fa-37a1029b37d0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/CAMV%3D_gYQjS-t12Z9sX81VL9yy6xnNV8jWcmbo2aHcQ16%2BcrixQ%40mail.gmail.com.

Reply via email to