On Mon, 28 Sep 2020 at 15:30, John Dexter <[email protected]> wrote:

> The prometheus docs has a nice page listing ports used in exporters, etc:
> https://github.com/prometheus/prometheus/wiki/Default-port-allocations
>
> But I couldn't see a guide if there is a typical port range advised for
> instrumenting my own modules. Is there any sort of best practice or at
> least common practice on this, to avoid clashing with Prometheus and other
> obvious things? Each instrumented module must need its own port so in a
> large system this could be quite a few ports we need to open, and it would
> be nice to have a contiguous block for Firewalls etc.
>

In general, follow whatever your organisation's usual port allocation
policies are. That wiki page started out back in the day when more than one
official component defaulted to 8080, and unintentionally grew to what it
is today. If you are creating a publicly shared exporter and have no other
constraints, getting a default port number from that page is wise for
publicising your exporter at least - but it's only a default which you can
(almost only) change via flag or config.

-- 
Brian Brazil
www.robustperception.io

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAHJKeLp591odewynT2M-EdnePFFjCBJLO-pE8UjdhMBGxKXDxQ%40mail.gmail.com.

Reply via email to