New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for OpenTelemetry process and system metrics #151826
Conversation
Pinging @elastic/apm-ui (Team:APM) |
@felixbarny FYI, as you prosed in elastic/apm-data#12 (comment) |
x-pack/plugins/apm/server/routes/metrics/get_metrics_chart_data_by_agent.ts
Outdated
Show resolved
Hide resolved
3ca88f4
to
29904ac
Compare
const groupByField = isOpenTelemetry ? LABEL_GC : LABEL_NAME; | ||
|
||
const targetField = isOpenTelemetry | ||
? METRIC_OTEL_JVM_GC_DURATION | ||
: rateOrTime === RATE | ||
? METRIC_JAVA_GC_COUNT | ||
: METRIC_JAVA_GC_TIME; | ||
|
||
const fieldAggregation = isOpenTelemetry | ||
? rateOrTime === RATE | ||
? { value_count: { field: targetField } } | ||
: { sum: { field: targetField } } | ||
: { max: { field: targetField } }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if fetchAndTransformGcMetrics
should take groupByField
, targetField
and fieldAggregation
as arguments instead of the conditionals here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw The fetchAndTransform * Metrics
abstractions have annoyed me for years. Wondering if we'd be better off without them.
Conflicts: x-pack/plugins/apm/common/es_fields/__snapshots__/es_fields.test.ts.snap x-pack/plugins/apm/common/es_fields/apm.ts x-pack/plugins/apm/server/routes/metrics/get_service_nodes.ts
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
## Summary Adds support for showing OpenTelemetry based system and JVM process metrics in APM's metrics view. Resolves elastic/apm-data#12 in a cleaner way without the need to transform metrics.
…51826) ## Summary Adds support for showing OpenTelemetry based system and JVM process metrics in APM's metrics view. Resolves elastic/apm-data#12 in a cleaner way without the need to transform metrics.
Has this been released in version 8.8? As I can't see any mention of it in the release notes. |
I'm running 8.11.1 and OTel Java Agent 1.32.0 and in APM app, "System memory usage", "Garbage collection per minute" and "Garbage collection time spent per minute" are not showing any data. Is this still not fixed? |
When will it be released? |
FYI, customers still reporting this issue on OTel Java agent 1.32.0 and Elastic 8.10.2. Any updates on incoming fixes? |
Elastic 8.12.2 and OpenTelemetry Java agent 1.34.1 here and empty "System memory usage", "Garbage collection per minute" and "Garbage collection time spent per minute" panels. |
Summary
Adds support for showing OpenTelemetry based system and JVM process metrics in APM's metrics view.
Resolves elastic/apm-data#12 in a cleaner way without the need to transform metrics.
Checklist
Delete any items that are not applicable to this PR.