Skip to content

Commit

Permalink
[Elastic Agent] Add queue depth, output batch size and rate (#7611)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover authored Aug 31, 2023
1 parent e32c023 commit 190a8ed
Show file tree
Hide file tree
Showing 10 changed files with 1,203 additions and 277 deletions.
5 changes: 5 additions & 0 deletions packages/elastic_agent/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.12.0"
changes:
- description: Add metrics for queue depth, output batch size and output batch rate.
type: enhancement
link: https://github.com/elastic/integrations/pull/7476
- version: "1.11.2"
changes:
- description: Adding hyperlinks that works when installed on different spaces.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,50 @@
ignore_above: 1024
description: Elastic agent version.
example: 7.11.0

- name: component
type: group
description: Agent component that the log message is about, only available on Elastic Agent 8.6.0+
fields:
- name: id
type: wildcard
ignore_above: 1024
description: Component id
- name: type
type: keyword
ignore_above: 1024
description: The type of the component
- name: binary
type: keyword
ignore_above: 1024
description: The binary that exeuctes the component
example: filebeat
- name: dataset
type: keyword
ignore_above: 1024

# Metrics currently logged in "Non-zero metrics in the last 30s" logs
# TODO: Update Agent to move these to the "metrics" data streams
# Note: none of thes metric_type fields are used on logs data streams
- name: monitoring.metrics.libbeat.pipeline
type: group
fields:
- name: events
type: group
fields:
- name: active
type: long
metric_type: gauge
description: Number of events currently in the pipeline. The maximum size is the configured queue size plus one event per event pipeline client.
- name: published
type: long
metric_type: counter
description: Number of events published by the pipeline
- name: total
type: long
metric_type: counter
description: Number of events processed by the pipeline
- name: queue.acked
type: long
metric_type: counter
description: Number of events successfully acknowledged by the output
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,50 @@
type: keyword
ignore_above: 1024
description: Elastic agent version.

- name: component
type: group
description: Agent component that the log message is about, only available on Elastic Agent 8.6.0+
fields:
- name: id
type: wildcard
ignore_above: 1024
description: Component id
- name: type
type: keyword
ignore_above: 1024
description: The type of the component
- name: binary
type: keyword
ignore_above: 1024
description: The binary that exeuctes the component
example: filebeat
- name: dataset
type: keyword
ignore_above: 1024

# Metrics currently logged in "Non-zero metrics in the last 30s" logs
# TODO: Update Agent to move these to the "metrics" data streams
# Note: none of thes metric_type fields are used on logs data streams
- name: monitoring.metrics.libbeat.pipeline
type: group
fields:
- name: events
type: group
fields:
- name: active
type: long
metric_type: gauge
description: Number of events currently in the pipeline. The maximum size is the configured queue size plus one event per event pipeline client.
- name: published
type: long
metric_type: counter
description: Number of events published by the pipeline
- name: total
type: long
metric_type: counter
description: Number of events processed by the pipeline
- name: queue.acked
type: long
metric_type: counter
description: Number of events successfully acknowledged by the output
47 changes: 47 additions & 0 deletions packages/elastic_agent/data_stream/filebeat_logs/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,50 @@
ignore_above: 1024
description: Elastic agent version.
example: 7.11.0

- name: component
type: group
description: Agent component that the log message is about, only available on Elastic Agent 8.6.0+
fields:
- name: id
type: wildcard
ignore_above: 1024
description: Component id
- name: type
type: keyword
ignore_above: 1024
description: The type of the component
- name: binary
type: keyword
ignore_above: 1024
description: The binary that exeuctes the component
example: filebeat
- name: dataset
type: keyword
ignore_above: 1024

# Metrics currently logged in "Non-zero metrics in the last 30s" logs
# TODO: Update Agent to move these to the "metrics" data streams
# Note: none of thes metric_type fields are used on logs data streams
- name: monitoring.metrics.libbeat.pipeline
type: group
fields:
- name: events
type: group
fields:
- name: active
type: long
metric_type: gauge
description: Number of events currently in the pipeline. The maximum size is the configured queue size plus one event per event pipeline client.
- name: published
type: long
metric_type: counter
description: Number of events published by the pipeline
- name: total
type: long
metric_type: counter
description: Number of events processed by the pipeline
- name: queue.acked
type: long
metric_type: counter
description: Number of events successfully acknowledged by the output
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,50 @@
- name: event.dataset
type: constant_keyword
description: Event dataset

- name: component
type: group
description: Agent component that the log message is about, only available on Elastic Agent 8.6.0+
fields:
- name: id
type: wildcard
ignore_above: 1024
description: Component id
- name: type
type: keyword
ignore_above: 1024
description: The type of the component
- name: binary
type: keyword
ignore_above: 1024
description: The binary that exeuctes the component
example: filebeat
- name: dataset
type: keyword
ignore_above: 1024

# Metrics currently logged in "Non-zero metrics in the last 30s" logs
# TODO: Update Agent to move these to the "metrics" data streams
# Note: none of thes metric_type fields are used on logs data streams
- name: monitoring.metrics.libbeat.pipeline
type: group
fields:
- name: events
type: group
fields:
- name: active
type: long
metric_type: gauge
description: Number of events currently in the pipeline. The maximum size is the configured queue size plus one event per event pipeline client.
- name: published
type: long
metric_type: counter
description: Number of events published by the pipeline
- name: total
type: long
metric_type: counter
description: Number of events processed by the pipeline
- name: queue.acked
type: long
metric_type: counter
description: Number of events successfully acknowledged by the output
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,50 @@
ignore_above: 1024
description: Elastic agent version.
example: 7.11.0

- name: component
type: group
description: Agent component that the log message is about, only available on Elastic Agent 8.6.0+
fields:
- name: id
type: wildcard
ignore_above: 1024
description: Component id
- name: type
type: keyword
ignore_above: 1024
description: The type of the component
- name: binary
type: keyword
ignore_above: 1024
description: The binary that exeuctes the component
example: filebeat
- name: dataset
type: keyword
ignore_above: 1024

# Metrics currently logged in "Non-zero metrics in the last 30s" logs
# TODO: Update Agent to move these to the "metrics" data streams
# Note: none of thes metric_type fields are used on logs data streams
- name: monitoring.metrics.libbeat.pipeline
type: group
fields:
- name: events
type: group
fields:
- name: active
type: long
metric_type: gauge
description: Number of events currently in the pipeline. The maximum size is the configured queue size plus one event per event pipeline client.
- name: published
type: long
metric_type: counter
description: Number of events published by the pipeline
- name: total
type: long
metric_type: counter
description: Number of events processed by the pipeline
- name: queue.acked
type: long
metric_type: counter
description: Number of events successfully acknowledged by the output
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,50 @@
ignore_above: 1024
description: Elastic agent version.
example: 7.11.0

- name: component
type: group
description: Agent component that the log message is about, only available on Elastic Agent 8.6.0+
fields:
- name: id
type: wildcard
ignore_above: 1024
description: Component id
- name: type
type: keyword
ignore_above: 1024
description: The type of the component
- name: binary
type: keyword
ignore_above: 1024
description: The binary that exeuctes the component
example: filebeat
- name: dataset
type: keyword
ignore_above: 1024

# Metrics currently logged in "Non-zero metrics in the last 30s" logs
# TODO: Update Agent to move these to the "metrics" data streams
# Note: none of thes metric_type fields are used on logs data streams
- name: monitoring.metrics.libbeat.pipeline
type: group
fields:
- name: events
type: group
fields:
- name: active
type: long
metric_type: gauge
description: Number of events currently in the pipeline. The maximum size is the configured queue size plus one event per event pipeline client.
- name: published
type: long
metric_type: counter
description: Number of events published by the pipeline
- name: total
type: long
metric_type: counter
description: Number of events processed by the pipeline
- name: queue.acked
type: long
metric_type: counter
description: Number of events successfully acknowledged by the output
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,50 @@
ignore_above: 1024
description: Elastic agent version.
example: 7.11.0

- name: component
type: group
description: Agent component that the log message is about, only available on Elastic Agent 8.6.0+
fields:
- name: id
type: wildcard
ignore_above: 1024
description: Component id
- name: type
type: keyword
ignore_above: 1024
description: The type of the component
- name: binary
type: keyword
ignore_above: 1024
description: The binary that exeuctes the component
example: filebeat
- name: dataset
type: keyword
ignore_above: 1024

# Metrics currently logged in "Non-zero metrics in the last 30s" logs
# TODO: Update Agent to move these to the "metrics" data streams
# Note: none of thes metric_type fields are used on logs data streams
- name: monitoring.metrics.libbeat.pipeline
type: group
fields:
- name: events
type: group
fields:
- name: active
type: long
metric_type: gauge
description: Number of events currently in the pipeline. The maximum size is the configured queue size plus one event per event pipeline client.
- name: published
type: long
metric_type: counter
description: Number of events published by the pipeline
- name: total
type: long
metric_type: counter
description: Number of events processed by the pipeline
- name: queue.acked
type: long
metric_type: counter
description: Number of events successfully acknowledged by the output
Loading

0 comments on commit 190a8ed

Please sign in to comment.