Replies: 3 comments 5 replies
-
@martin-helmich any help is appreciated. |
Beta Was this translation helpful? Give feedback.
-
I'm assuming that you're scraping your metrics from the Service endpoint itself (or the ingress, which uses the Service as backend), which will result in your scraping requests to the I would suggest scraping individual Pods, instead of the entire service. That way, you will retrieve a consistent set of metrics for each Pod. This allows you to inspect performance metrics for individual Pods (and if you don't care about single Pods, you can still aggregate all metrics to give you an aggregated view on the entire service). Depending on how you're deploying Prometheus, this might either be done...
|
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing your idea, |
Beta Was this translation helpful? Give feedback.
-
Hello and thanks for this great exporter.
I've got a situation here that needs help , and i hope it will help some one else too.
I've currently used the exporter in a container along with nginx in another container both in a pod and the metrics looks nice when we have only one pod , but the problem starts when we are going to scale pods to 2-3 and more.
We have a domain lets say abc.com and in the path of /metrics we are serving the exporter container , so it shows the metrics nicely , but when the load balancer starts to change the traffic between pods , we are getting different metrics each time and this results in a wrong data(each time its a different pod and exporter data ) , because the prometheus and exporter doesn't have any information about the pod and only know the instance and its same instance in all pods , but each pod got their own nginx and nginx exporter with a metrics path for their own pod.
We are using a share mount between containers in a pod and using that we can have access to nginx logs from the exporter.
I wonder if you have any idea on how to solve the issue , any help is appreciated.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions