Closed
Description
Discovered by #13244
EA managed apm-server is only shipping a subset of apm-server monitoring metrics. This limits observability of EA managed apm-server. The problem is spread over the following use cases:
- APM server self-monitoring
- metricsets
state
,stats
- indices (not data stream)
.monitoring-beats-7-*
- does NOT use TSDS, but fields are unmapped due to dynamic: false
- code in ES repo monitoring-beats.json
- metricsets
- Stack monitoring: metricbeat beat-xpack module uses index template embedded in ES
- metricsets
state
,stats
- data stream
.monitoring-beats-8-mb
- use case: Elastic Cloud self-monitoring, metricbeat standalone beat-xpack
- does NOT use TSDS, but fields are unmapped due to dynamic: false
- code in ES repo monitoring-beats-mb.json
- metricsets
- Metricbeat without xpack: metricbeat beat module
- metricsets
state
,stats
- data stream
metricbeat-*
- use case: metricbeat standalone
- does NOT use TSDS, fields are mapped dynamically
- code in beats repo
- metricsets
- EA integration
- metricsets
stats
only - data stream
metrics-elastic_agent.apm_server.*
(see code) - use case: elastic-agent standalone with monitoring
- to see EA integration package content:
POST kbn:/api/fleet/epm/packages/elastic_agent
- uses TSDS, see [Elastic Agent] Enable TSDB by default integrations#7214 . The issue with using TSDS is that unmapped fields are dropped, as it uses synthetic source.
- code in integrations repo
- it doesn't contain any apm-server fields as of today
- metricsets
Unknowns:
- As the outdated mappings above contain fields that are no longer used, mapping generated from
apm-server:5066/stats
will not be pure addition. Not sure if dropping a field mapping will be problematic.- Should it be a superset of all historically available monitoring fields? That doesn't sound realistic either