Steps to ensure leader election
1
Check for the active leader pod
Run the following command to confirm that only one collector manager pod is active as the leader:Example output:Only one pod should appear in the output. If multiple pods are listed, continue with the next steps.
2
Validate configuration
Ensure that leader election is enabled in the collector manager configmap:The value should be
true
.See Validate Helm release for steps to confirm your configuration.3
Check pod logs for leader activity
If multiple pods appear as leaders, verify that only one pod is active and the others are waiting to acquire the lease or shutting down.View logs for a specific pod:Example logs for a pod waiting to acquire the lease:Example logs for a pod that has acquired the lease: