How do you solve the problem of building metrics from applications in a Kubernetes cluster? I’m trying to get data from applications in several pods, accessible through the service endpoint using the input plugin prometheus through
This works correctly if the service has an endpoint, but the cluster address is not specified - I get a series of data from all applications (3, in my case), separated by the
However, if the service has a cluster address, I get only one series of data marked with the cluster address, but not the application.
What am I doing wrong?
kubernetes_services = [ “http://some_app:9999/metrics” ]
# and some filters…