Hello everyone,
we are looking into monitoring Kubernetes Clusters with Elastic Agents using the Kubernetes Integration. We are using Fleet to manage our Elastic Agents. We are able to collect metrics from kubelet api, kube-state-metrics and so on.
Now we want to collect metrics provided by the applications via the /metrics endpoint. The “Prometheus Input” Integration has the ability to scrape metrics from endpoints, if you know the endpoints. But we want to use labels to autodiscover the /metrics-endpoints, similar to how Prometheus does it since we don’t know the endpints and don’t know how many applications have an endpoint.
The goal is to tell the developers which labels to place for their Kubernetes applications so that their application metrics get ingested by the Agent.
The question is: Is there a way to autodiscover /metric-endpoints based on labels using our setup?
Our Cluster and Agents are v. 9.1.5. We are using Elastic Package Registry 9.1.2
Best regards,
Ilya