Skip to content
Open
Show file tree
Hide file tree
Changes from 8 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
6 changes: 5 additions & 1 deletion packages/elastic_agent/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# newer versions go on top

- version: "2.6.1"
changes:
- description: Support new pipeline fields from beats logs
type: enhancement
link: https://github.com/elastic/integrations/pull/15280
- version: "2.6.0"
changes:
- description: Update version requirements due to the breaking change in metric names
Expand Down
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
ignore_missing: true
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Member

Choose a reason for hiding this comment

The 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?

Copy link
Member Author

Choose a reason for hiding this comment

The 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

ignore_missing: true
- remove:
field: monitoring.metrics.libbeat.pipeline.queue.filled.pct
ignore_missing: true
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,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.
- 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
ignore_missing: true
- remove:
field: monitoring.metrics.libbeat.pipeline.queue.filled.pct
ignore_missing: true
Loading