elastic / elastic-agent

Elastic Agent - single, unified way to add monitoring for logs, metrics, and other types of data to a host.
Other
22 stars 143 forks source link

Diagnostics should include a summary of monitored pods when running on Kubernetes #3642

Open cmacknz opened 1 year ago

cmacknz commented 1 year ago

The Elastic Agent diagnostics should include a Kubernetes specific report about the number of containers it is monitoring, along with some basic information about those containers. We should include the container image, the resource name, namespace, and resource kind of each container the agent is monitoring.

Kubernetes environments are dynamic and when autodiscover is enabled the set of pods running changes constantly. Our diagnostics bundles need to include a snapshot of the current running containers along with basic information about them.

We should also log the number of monitored containers periodically to give us a way to more easily observe changes in the Kubernetes cluster purely from our own logs. For example, resource spikes in the agent frequently correlate with new deployments in the cluster when autodiscover is enabled. We need a way to see this.

elasticmachine commented 1 year ago

Pinging @elastic/elastic-agent (Team:Elastic-Agent)