-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for dynamic histogram metrics (#5239)
* model/metricset: add "histogram" dynamic_template * ingest/pipeline: handle metric descriptions * model: add metric type and unit * processor/otel: translate histogram metrics * Update changelog * processor/otel: fix histogram translation Handle histogram bucket counts correctly, following the approach taken by Prometheus. * processor/otel: fix merge * processor/otel: use appropriate slice cap (cherry picked from commit 91645bd) # Conflicts: # apmpackage/apm/0.2.0/data_stream/app_metrics/elasticsearch/ingest_pipeline/default.json # apmpackage/apm/0.2.0/data_stream/error_logs/elasticsearch/ingest_pipeline/default.json # apmpackage/apm/0.2.0/data_stream/internal_metrics/elasticsearch/ingest_pipeline/default.json # apmpackage/apm/0.2.0/data_stream/profile_metrics/elasticsearch/ingest_pipeline/default.json # apmpackage/apm/0.2.0/data_stream/traces/elasticsearch/ingest_pipeline/default.json # apmpackage/apm/data_stream/app_metrics/elasticsearch/ingest_pipeline/apm_metrics_dynamic_template.json # apmpackage/apm/data_stream/error_logs/elasticsearch/ingest_pipeline/apm_metrics_dynamic_template.json # apmpackage/apm/data_stream/internal_metrics/elasticsearch/ingest_pipeline/apm_metrics_dynamic_template.json # apmpackage/apm/data_stream/profile_metrics/elasticsearch/ingest_pipeline/apm_metrics_dynamic_template.json # apmpackage/apm/data_stream/traces/elasticsearch/ingest_pipeline/apm_metrics_dynamic_template.json # changelogs/head.asciidoc # include/fields.go # processor/otel/metrics.go # processor/otel/metrics_test.go
- Loading branch information
Showing
9 changed files
with
247 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
apmpackage/apm/0.2.0/data_stream/app_metrics/elasticsearch/ingest_pipeline/default.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"description": "Default enrichment for APM events", | ||
"processors": [ | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.app-0.2.0-apm_ingest_timestamp" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.app-0.2.0-apm_user_agent" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.app-0.2.0-apm_user_geo" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.app-0.2.0-apm_remove_span_metadata" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.app-0.2.0-apm_error_grouping_name", | ||
"if": "ctx.processor?.event == 'error'" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.app-0.2.0-apm_metrics_dynamic_template", | ||
"if": "ctx.processor?.event == 'metric'" | ||
} | ||
} | ||
] | ||
} |
37 changes: 37 additions & 0 deletions
37
apmpackage/apm/0.2.0/data_stream/error_logs/elasticsearch/ingest_pipeline/default.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"description": "Default enrichment for APM events", | ||
"processors": [ | ||
{ | ||
"pipeline": { | ||
"name": "logs-apm.error-0.2.0-apm_ingest_timestamp" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "logs-apm.error-0.2.0-apm_user_agent" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "logs-apm.error-0.2.0-apm_user_geo" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "logs-apm.error-0.2.0-apm_remove_span_metadata" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "logs-apm.error-0.2.0-apm_error_grouping_name", | ||
"if": "ctx.processor?.event == 'error'" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "logs-apm.error-0.2.0-apm_metrics_dynamic_template", | ||
"if": "ctx.processor?.event == 'metric'" | ||
} | ||
} | ||
] | ||
} |
37 changes: 37 additions & 0 deletions
37
apmpackage/apm/0.2.0/data_stream/internal_metrics/elasticsearch/ingest_pipeline/default.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"description": "Default enrichment for APM events", | ||
"processors": [ | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.internal-0.2.0-apm_ingest_timestamp" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.internal-0.2.0-apm_user_agent" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.internal-0.2.0-apm_user_geo" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.internal-0.2.0-apm_remove_span_metadata" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.internal-0.2.0-apm_error_grouping_name", | ||
"if": "ctx.processor?.event == 'error'" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.internal-0.2.0-apm_metrics_dynamic_template", | ||
"if": "ctx.processor?.event == 'metric'" | ||
} | ||
} | ||
] | ||
} |
37 changes: 37 additions & 0 deletions
37
apmpackage/apm/0.2.0/data_stream/profile_metrics/elasticsearch/ingest_pipeline/default.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"description": "Default enrichment for APM events", | ||
"processors": [ | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.profiling-0.2.0-apm_ingest_timestamp" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.profiling-0.2.0-apm_user_agent" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.profiling-0.2.0-apm_user_geo" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.profiling-0.2.0-apm_remove_span_metadata" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.profiling-0.2.0-apm_error_grouping_name", | ||
"if": "ctx.processor?.event == 'error'" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "metrics-apm.profiling-0.2.0-apm_metrics_dynamic_template", | ||
"if": "ctx.processor?.event == 'metric'" | ||
} | ||
} | ||
] | ||
} |
37 changes: 37 additions & 0 deletions
37
apmpackage/apm/0.2.0/data_stream/traces/elasticsearch/ingest_pipeline/default.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"description": "Default enrichment for APM events", | ||
"processors": [ | ||
{ | ||
"pipeline": { | ||
"name": "traces-apm-0.2.0-apm_ingest_timestamp" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "traces-apm-0.2.0-apm_user_agent" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "traces-apm-0.2.0-apm_user_geo" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "traces-apm-0.2.0-apm_remove_span_metadata" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "traces-apm-0.2.0-apm_error_grouping_name", | ||
"if": "ctx.processor?.event == 'error'" | ||
} | ||
}, | ||
{ | ||
"pipeline": { | ||
"name": "traces-apm-0.2.0-apm_metrics_dynamic_template", | ||
"if": "ctx.processor?.event == 'metric'" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[[release-notes-head]] | ||
== APM Server version HEAD | ||
|
||
https://github.com/elastic/apm-server/compare/7.13\...master[View commits] | ||
|
||
[float] | ||
==== Breaking Changes | ||
|
||
[float] | ||
==== Bug fixes | ||
* Don't auto-disable ILM due to a failure to communicate with Elasticsearch {pull}5264[5264] | ||
* Fix panic due to misaligned 64-bit access on 32-bit architectures {pull}5277[5277] | ||
* Fixed tail-based sampling pubsub to use _seq_no correctly {pull}5126[5126] | ||
* Fix document grouping of translated OpenTelemetry Java metrics {pull}5309[5309] | ||
* OpenTelemetry: record array attributes as labels {pull}5286[5286] | ||
* model/modeldecoder: fix 32-bit timestamp decoding {pull}5308[5308] | ||
|
||
[float] | ||
==== Intake API Changes | ||
|
||
[float] | ||
==== Added | ||
* Support setting agent configuration from apm-server.yml {pull}5177[5177] | ||
* Add metric_type and unit to field metadata of system metrics {pull}5230[5230] | ||
* Upgrade Go to 1.15.12 {pull}[] | ||
* Add support for dynamic histogram metrics {pull}5239[5239] | ||
|
||
[float] | ||
==== Deprecated |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters