On 12.07.21 02:15, Rohit Bharati wrote:
> 
> I am running multiple instances on one domain and I have implemented 
> Prometheus Exporter provide me the data processed. I am counting the number 
> of images received for my application.
> 
> *Scenario : *
> Everything is working fine when the app has one Instance in the load 
> balancer.
> But when I scale it to 2, the image is processed by other instance and 
> Prometheus scrapes the other one. So even if i upload an Image there is 
> only 50% chnace i will get the count in /metrics
> 
> What has to be done in this scenario, has anyone any Idea on this
> I know Promregator thanos etc... but can anything be done from exporter 
> side so that only Prometheus is enough to give what I need.

Not sure I fully understand your setup, but it's fundamentally
important to never scrape instances of an app through a load
balancer. Always scrape all the instances directly. Then use suitable
PromQL expressions to aggregate whatever you need.

-- 
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email] [email protected]

-- 
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/20210714171911.GD3656%40jahnn.

Reply via email to