Two or more prometheus servers using one exporter binded to a port

21 views
Skip to first unread message

Thomas Will

unread,
May 27, 2020, 5:17:45 PM5/27/20
to Prometheus Users
Hello experts,

Can two or more Prometheus servers scrape the same port binded by an exporter? Will there be any performance issue if done?

Cheers,
Thomas Will

Brian Brazil

unread,
May 27, 2020, 5:21:46 PM5/27/20
to Thomas Will, Prometheus Users
On Wed, 27 May 2020 at 22:17, Thomas Will <thomasw...@gmail.com> wrote:
Hello experts,

Can two or more Prometheus servers scrape the same port binded by an exporter? Will there be any performance issue if done?

That's generally no problem, however there are rare exceptions like SNMP as some network devices just don't have the CPU power to handle concurrent walks.

--

Thomas Will

unread,
May 27, 2020, 5:24:33 PM5/27/20
to Prometheus Users
Thanks, Brian. You are doing a great job. Keep it up!!

Brian Brazil

unread,
May 27, 2020, 5:35:17 PM5/27/20
to Thomas Will, Prometheus Users
On Wed, 27 May 2020 at 22:24, Thomas Will <thomasw...@gmail.com> wrote:
Thanks, Brian. You are doing a great job. Keep it up!!

Thanks. I should also add that we do have some logic in the scrape scheduling to probabilistically reduce the chances that two Prometheus servers will scrape at the same time, though overlaps can of course happen - partially as the scrape duration tends towards the scrape interval.

Brian

 
--
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/3cd0fb17-2d1b-46f6-9885-802e53de0f9a%40googlegroups.com.


--

Julien Pivotto

unread,
May 27, 2020, 5:45:52 PM5/27/20
to Brian Brazil, Thomas Will, Prometheus Users
On 27 May 22:35, Brian Brazil wrote:
> On Wed, 27 May 2020 at 22:24, Thomas Will <thomasw...@gmail.com> wrote:
>
> > Thanks, Brian. You are doing a great job. Keep it up!!
> >
>
> Thanks. I should also add that we do have some logic in the scrape
> scheduling to probabilistically reduce the chances that two Prometheus
> servers will scrape at the same time, though overlaps can of course happen
> - partially as the scrape duration tends towards the scrape interval.

(since Prometheus 2.9.0)

>
> Brian
>
>
>
> >
> > On Thursday, May 28, 2020 at 2:51:46 AM UTC+5:30, Brian Brazil wrote:
> >>
> >> On Wed, 27 May 2020 at 22:17, Thomas Will <thomasw...@gmail.com> wrote:
> >>
> >>> Hello experts,
> >>>
> >>> Can two or more Prometheus servers scrape the same port binded by an
> >>> exporter? Will there be any performance issue if done?
> >>>
> >>
> >> That's generally no problem, however there are rare exceptions like SNMP
> >> as some network devices just don't have the CPU power to handle concurrent
> >> walks.
> >>
> >> --
> >> 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 prometheus-use...@googlegroups.com.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/prometheus-users/3cd0fb17-2d1b-46f6-9885-802e53de0f9a%40googlegroups.com
> > <https://groups.google.com/d/msgid/prometheus-users/3cd0fb17-2d1b-46f6-9885-802e53de0f9a%40googlegroups.com?utm_medium=email&utm_source=footer>
> > .
> >
>
>
> --
> 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 prometheus-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAHJKeLoKQY%3D5Qp9WbLeS96EVz4BrAq%2B%2B7fw55LMOqRYxA5mqRw%40mail.gmail.com.

--
Julien Pivotto
@roidelapluie

Sally Lehman

unread,
May 28, 2020, 2:03:50 AM5/28/20
to Prometheus Users
Anecdotally, I do this for HA, for a year now, and have had no conflicts that I've discerned thus far. 

Thomas Will

unread,
May 31, 2020, 10:50:41 AM5/31/20
to Prometheus Users
Thanks all for replying.
Reply all
Reply to author
Forward
0 new messages