You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to fetch only the metrics from elastic agent’s /stats endpoint and write them to metrics-elastic_agent.elastic_agent-* but the input created to do this is in a for loop that iterates over every running agent component with no guarding if condition:
If you look at the components/http-metrics-monitoring/beat-rendered-config.yaml file in diagnostics you can see all the duplicated http/metrics streams pointing at each Beat for the metrics-elastic_agent.elastic_agent-default data stream that should contain only metrics from the Elastic Agent process itself.
Definition of Done:
A test exists proving we only create the minimal set of inputs to collect the monitoring data we need.
There is only a single http/metrics input for collecting data from Elastic Agent's /stats input.
The text was updated successfully, but these errors were encountered:
We want to fetch only the metrics from elastic agent’s
/stats
endpoint and write them tometrics-elastic_agent.elastic_agent-*
but the input created to do this is in a for loop that iterates over every running agent component with no guarding if condition:elastic-agent/internal/pkg/agent/application/monitoring/v1_monitor.go
Lines 775 to 784 in 5d91620
Compare this the one just above that is specific to Beats, it has an if on the binary name
elastic-agent/internal/pkg/agent/application/monitoring/v1_monitor.go
Line 712 in 5d91620
If you look at the components/http-metrics-monitoring/beat-rendered-config.yaml file in diagnostics you can see all the duplicated http/metrics streams pointing at each Beat for the
metrics-elastic_agent.elastic_agent-default
data stream that should contain only metrics from the Elastic Agent process itself.Definition of Done:
/stats
input.The text was updated successfully, but these errors were encountered: