Skip to content

Commit

Permalink
Map scope.name as a dimension (elastic#120590)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbarny committed Jan 22, 2025
1 parent dc66c15 commit 0d34e44
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/changelog/120590.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 120590
summary: Map `scope.name` as a dimension
area: Data streams
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ template:
name:
type: keyword
ignore_above: 1024
time_series_dimension: true
version:
type: version
schema_url:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,3 +279,29 @@ Empty IP field:
fields: ["*"]
- length: { hits.hits: 1 }
- match: { hits.hits.0._ignored: ["resource.attributes.host.ip"] }
---
Metrics with different scope names are not duplicates:
- do:
bulk:
index: metrics-generic.otel-default
refresh: true
body:
- create: {"dynamic_templates":{"metrics.foo.bar":"counter_long"}}
- "@timestamp": 2024-07-18T14:00:00Z
scope:
name: foo
resource:
attributes:
service.name: foo
metrics:
foo.bar: 42
- create: {"dynamic_templates":{"metrics.foo.bar":"counter_long"}}
- "@timestamp": 2024-07-18T14:00:00Z
scope:
name: bar
resource:
attributes:
service.name: foo
metrics:
foo.bar: 42
- is_false: errors

0 comments on commit 0d34e44

Please sign in to comment.