elastic / elastic-agent

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

Elastic Agent metrics dashboard does not report Endpoint CPU usage #5789

Open pchila opened 3 hours ago

pchila commented 3 hours ago

Elastic-agent is able to monitor services components since https://github.com/elastic/elastic-agent/pull/4789 8.15.0, however "[Elastic Agent] CPU Usage" visualization in "[Elastic Agent] Agent metrics" dashboard does not show Endpoint CPU.

Image

The visualization currently filters on data_stream.dataset: elastic_agent.elastic_agent and aggregates system.process.cpu.total.time.ms following a custom formula

There are at least 2 reasons why Endpoint CPU percentage is not displayed:

Endpoint metrics are available under data_stream.dataset: elastic_agent.endpoint_security
CPU metrics for service runtimes are collected using a system/metrics input type and the documents are formatted as described in [metricbeat system process metricset](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-system-process.html) where system.process.cpu.total.time.ms is not defined

The goal of this issue is to modify managed dashboard "[Elastic Agent] Agent metrics" so that it displays Endpoint CPU usage

elasticmachine commented 3 hours ago

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