Kube State Metrics stop reporting / Potential Leader Election issue


I am having an issue with collecting data from kube state metrics where it will randomly stop coming through into Kibana and all that seems to help is restarting the elastic-agents until it starts to come back.

I am using the Elastic Operator for Kubernetes with the Fleet Managed Elastic Agents and I am using the default kubernetes integration.

I am assuming that this is something to do with the leader election as I have recently discovered that only the leader can collect data from the kube state metrics endpoint. Is there a way to verify which elastic-agent is the leader?

Has anyone had an issue like this before? Any help is much appreciated :).


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.