-
Notifications
You must be signed in to change notification settings - Fork 568
[elastic_agent] Add TSDB dimensions and fix metric_type declarations #18508
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| - name: beat.type | ||
| description: Beat type. | ||
| type: keyword | ||
| type: keyword | ||
| dimension: true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,12 +5,14 @@ | |
| type: keyword | ||
| ignore_above: 1024 | ||
| description: Elastic Agent id. | ||
| dimension: true | ||
| - name: process | ||
| level: extended | ||
| type: keyword | ||
| ignore_above: 1024 | ||
| description: Process run by the Elastic Agent. | ||
| example: metricbeat | ||
| dimension: true | ||
| - name: snapshot | ||
| level: extended | ||
| type: boolean | ||
|
|
@@ -195,6 +197,7 @@ | |
| description: CPU time consumed by tasks in user (kernel) mode. | ||
| - name: percpu | ||
| type: long | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Medium
Also found in 8 other location(s)
🤖 Copy this AI Prompt to have your agent fix this: |
||
| metric_type: gauge | ||
| description: | | ||
| CPU time (in nanoseconds) consumed on each CPU by all tasks in this cgroup. | ||
| - name: memory | ||
|
|
@@ -230,6 +233,7 @@ | |
| The maximum amount of user memory in bytes (including file cache) that tasks in the cgroup are allowed to use. | ||
| - name: mem.failures | ||
| type: long | ||
| metric_type: counter | ||
| description: | | ||
| The number of times that the memory limit (mem.limit.bytes) was reached. | ||
| - name: memsw.usage.bytes | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| - name: beat.type | ||
| description: Beat type. | ||
| type: keyword | ||
| type: keyword | ||
| dimension: true |
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.
🟡 Medium
fields/beat-stats-fields.yml:134beat.stats.memstats.memory.totalis labeledmetric_type: gauge, but this field maps to Go'sruntime.MemStats.TotalAllocwhich tracks cumulative bytes allocated for heap objects — a monotonically increasing counter. Withmetric_type: gauge, TSDB will not apply counter-specific handling like rate calculations, producing incorrect aggregations and misleading dashboard visualizations. Change tometric_type: counter.- name: memory.total type: long + metric_type: counterAlso found in 2 other location(s)
packages/elastic_agent/data_stream/auditbeat_metrics/fields/beat-stats-fields.yml:136packages/elastic_agent/data_stream/filebeat_input_metrics/fields/beat-stats-fields.yml:136🤖 Copy this AI Prompt to have your agent fix this: