Skip to content
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

feat: store well defined metrics as times-series data streams #9730

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions apmpackage/apm/data_stream/internal_metrics/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,26 @@
name: cloud.account.name
- external: ecs
name: cloud.availability_zone
index: false
- external: ecs
name: cloud.instance.id
- external: ecs
name: cloud.instance.name
- external: ecs
name: cloud.machine.type
dimension: true
- external: ecs
name: cloud.project.id
dimension: true
- external: ecs
name: cloud.project.name
- external: ecs
name: cloud.provider
index: false
- external: ecs
name: cloud.region
dimension: true
- external: ecs
name: cloud.service.name
dimension: true
- external: ecs
name: container.id
- external: ecs
Expand All @@ -66,6 +68,7 @@
name: ecs.version
- external: ecs
name: event.outcome
dimension: true
- external: ecs
name: host.architecture
- external: ecs
Expand All @@ -76,7 +79,6 @@
name: host.name
- external: ecs
name: host.os.platform
index: false
- external: ecs
name: labels
dynamic: true
Expand All @@ -98,12 +100,16 @@
name: process.title
- external: ecs
name: service.environment
dimension: true
- external: ecs
name: service.name
dimension: true
- external: ecs
name: service.node.name
dimension: true
- external: ecs
name: service.version
dimension: true
- external: ecs
name: source.domain
- external: ecs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Boolean indicating whether the function invocation was a coldstart or not.
- name: faas.id
type: keyword
dimension: true
description: |
A unique identifier of the invoked serverless function.
- name: faas.execution
Expand All @@ -24,6 +25,7 @@
The lambda function name.
- name: faas.version
type: keyword
dimension: true
description: |
The lambda function version.
- name: kubernetes.namespace
Expand Down Expand Up @@ -75,7 +77,6 @@
Name of the programming language used.
- name: service.language.version
type: keyword
index: false
description: |
Version of the programming language used.
- name: service.runtime.name
Expand All @@ -84,15 +85,16 @@
Name of the runtime used.
- name: service.runtime.version
type: keyword
index: false
description: |
Version of the runtime used.
- name: service.target.name
type: keyword
dimension: true
description: |
Target service for which data is collected.
- name: service.target.type
type: keyword
dimension: true
description: |
Type of the target service for which data is collected
- name: span.destination.service.resource
Expand Down Expand Up @@ -132,10 +134,12 @@
Pre-aggregated histogram of transaction durations.
- name: transaction.name
type: keyword
dimension: true
description: |
Generic designation of a transaction in the scope of a single service (eg. 'GET /users/:id').
- name: transaction.result
type: keyword
dimension: true
description: |
The result of the transaction. HTTP status code for HTTP-related transactions.
- name: transaction.root
Expand All @@ -156,6 +160,7 @@
unit: micros
- name: transaction.type
type: keyword
dimension: true
description: |
Keyword of specific relevance in the service's domain (eg. 'request', 'backgroundjob', etc)
- name: numeric_labels
Expand Down
5 changes: 1 addition & 4 deletions apmpackage/apm/data_stream/internal_metrics/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ type: metrics
dataset: apm.internal
ilm_policy: metrics-apm.internal_metrics-default_policy
elasticsearch:
index_mode: "time_series"
index_template:
mappings:
# Internal metrics should have all fields strictly mapped;
Expand Down Expand Up @@ -31,7 +32,3 @@ elasticsearch:
type: aggregate_metric_double
metrics: [sum, value_count]
default_metric: sum
settings:
index:
sort.field: "@timestamp"
sort.order: desc