-
Notifications
You must be signed in to change notification settings - Fork 511
[elastic_agent] Support new pipeline fields from beats logs #15280
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 8 commits
a1918be
a8db770
de267cc
bfefef1
157b9ac
3acc459
b4b8ab6
bc4bdcf
a980d8d
326c7b1
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 |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| { | ||
| "events": [ | ||
| { | ||
| "monitoring": { | ||
| "metrics": { | ||
| "libbeat": { | ||
| "pipeline": { | ||
| "queue": { | ||
| "filled": { | ||
| "pct": { | ||
| "events": 10 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "monitoring": { | ||
| "metrics": { | ||
| "libbeat": { | ||
| "pipeline": { | ||
| "queue": { | ||
| "filled": { | ||
| "events": 42 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| { | ||
| "expected": [ | ||
| { | ||
| "monitoring": { | ||
| "metrics": { | ||
| "libbeat": { | ||
| "pipeline": { | ||
| "queue": { | ||
| "filled": { | ||
| "events": 10 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "monitoring": { | ||
| "metrics": { | ||
| "libbeat": { | ||
| "pipeline": { | ||
| "queue": { | ||
| "filled": { | ||
| "events": 42 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| description: "Pipeline for adapting Elastic Agent fields" | ||
| processors: | ||
| # Rename field from older versions of Beats. | ||
| - rename: | ||
| field: monitoring.metrics.libbeat.pipeline.queue.filled.pct.events | ||
| target_field: monitoring.metrics.libbeat.pipeline.queue.filled.events | ||
| ignore_missing: true | ||
| - remove: | ||
| field: monitoring.metrics.libbeat.pipeline.queue.filled.pct | ||
jsoriano marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ignore_missing: true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,8 +70,44 @@ | |
| - name: queue.max_events | ||
| type: long | ||
| metric_type: counter | ||
| description: Maximum number of events in a queue | ||
| description: Maximum number of events in a queue if it has one, otherwise zero. | ||
|
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. Why are there so many changes in field files? Were we missing so many fields before? 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. According to the PR in Beats all these fields have been added: elastic/beats#39774 Haven't been able to confirm. |
||
| - name: queue.max_bytes | ||
| type: long | ||
| metric_type: counter | ||
| description: Maximum number of bytes in a queue if it has one, otherwise zero. | ||
| - name: queue.filled.events | ||
| type: long | ||
| metric_type: gauge | ||
| description: Number of events currently stored in the queue. | ||
| - name: queue.filled.bytes | ||
| type: long | ||
| metric_type: gauge | ||
| description: Number of bytes currently in the queue. | ||
| - name: queue.filled.pct | ||
| type: float | ||
| metric_type: gauge | ||
| description: Maximum number of events in a queue | ||
| - name: queue.added.events | ||
| type: long | ||
| metric_type: gauge | ||
| description: Number of events currently stored in the queue. | ||
| - name: queue.added.bytes | ||
| type: long | ||
| metric_type: gauge | ||
| description: Number of bytes currently in the queue. | ||
| - name: queue.consumed.events | ||
| type: long | ||
| metric_type: gauge | ||
| description: Number of events currently stored in the queue. | ||
| - name: queue.consumed.bytes | ||
| type: long | ||
| metric_type: gauge | ||
| description: Number of bytes currently in the queue. | ||
| - name: queue.removed.events | ||
| type: long | ||
| metric_type: gauge | ||
| description: Number of events currently stored in the queue. | ||
| - name: queue.removed.bytes | ||
| type: long | ||
| metric_type: gauge | ||
| description: Number of bytes currently in the queue. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| { | ||
| "events": [ | ||
| { | ||
| "monitoring": { | ||
| "metrics": { | ||
| "libbeat": { | ||
| "pipeline": { | ||
| "queue": { | ||
| "filled": { | ||
| "pct": { | ||
| "events": 10 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "monitoring": { | ||
| "metrics": { | ||
| "libbeat": { | ||
| "pipeline": { | ||
| "queue": { | ||
| "filled": { | ||
| "events": 42 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| { | ||
| "expected": [ | ||
| { | ||
| "monitoring": { | ||
| "metrics": { | ||
| "libbeat": { | ||
| "pipeline": { | ||
| "queue": { | ||
| "filled": { | ||
| "events": 10 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "monitoring": { | ||
| "metrics": { | ||
| "libbeat": { | ||
| "pipeline": { | ||
| "queue": { | ||
| "filled": { | ||
| "events": 42 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,11 @@ | ||||||||||
| --- | ||||||||||
| description: "Pipeline for adapting Elastic Agent fields" | ||||||||||
| processors: | ||||||||||
| # Rename field from older versions of Beats. | ||||||||||
| - rename: | ||||||||||
| field: monitoring.metrics.libbeat.pipeline.queue.filled.pct.events | ||||||||||
| target_field: monitoring.metrics.libbeat.pipeline.queue.filled.events | ||||||||||
|
||||||||||
| field: monitoring.metrics.libbeat.pipeline.queue.filled.pct.events | |
| target_field: monitoring.metrics.libbeat.pipeline.queue.filled.events | |
| field: monitoring.metrics.libbeat.pipeline.queue.filled.pct.events | |
| target_field: monitoring.metrics.libbeat.pipeline.queue.filled.pct |
jsoriano marked this conversation as resolved.
Show resolved
Hide resolved
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| { | ||
| "events": [ | ||
| { | ||
| "monitoring": { | ||
| "metrics": { | ||
| "libbeat": { | ||
| "pipeline": { | ||
| "queue": { | ||
| "filled": { | ||
| "pct": { | ||
| "events": 10 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "monitoring": { | ||
| "metrics": { | ||
| "libbeat": { | ||
| "pipeline": { | ||
| "queue": { | ||
| "filled": { | ||
| "events": 42 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| { | ||
| "expected": [ | ||
| { | ||
| "monitoring": { | ||
| "metrics": { | ||
| "libbeat": { | ||
| "pipeline": { | ||
| "queue": { | ||
| "filled": { | ||
| "events": 10 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "monitoring": { | ||
| "metrics": { | ||
| "libbeat": { | ||
| "pipeline": { | ||
| "queue": { | ||
| "filled": { | ||
| "events": 42 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| description: "Pipeline for adapting Elastic Agent fields" | ||
| processors: | ||
| # Rename field from older versions of Beats. | ||
| - rename: | ||
| field: monitoring.metrics.libbeat.pipeline.queue.filled.pct.events | ||
| target_field: monitoring.metrics.libbeat.pipeline.queue.filled.events | ||
jsoriano marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ignore_missing: true | ||
| - remove: | ||
| field: monitoring.metrics.libbeat.pipeline.queue.filled.pct | ||
jsoriano marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ignore_missing: true | ||
Uh oh!
There was an error while loading. Please reload this page.