Skip to content

Commit

Permalink
[Linux] Add processors capability to Linux Metrics (elastic#10314)
Browse files Browse the repository at this point in the history
Add processors capability to Linux Metrics
Fix predefined processors.
  • Loading branch information
steffenstruebe authored Aug 1, 2024
1 parent 0b84690 commit 1284b90
Show file tree
Hide file tree
Showing 24 changed files with 145 additions and 16 deletions.
7 changes: 6 additions & 1 deletion packages/linux/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.6.10"
changes:
- description: Add processors capability to Linux Metrics.
type: enhancement
link: https://github.com/elastic/integrations/pull/10314
- version: "0.6.9"
changes:
- description: Fix list type for filters
Expand All @@ -8,7 +13,7 @@
changes:
- description: Fix typo in docs.
type: enhancement
link: TBD
link: https://github.com/elastic/integrations/pull/3655
- version: "0.6.7"
changes:
- description: Update documentation with additional context for new users.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ condition: ${host.platform} == 'linux'
period: {{period}}
{{#if system.hostfs}}
hostfs: {{system.hostfs}}
{{/if}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
8 changes: 8 additions & 0 deletions packages/linux/data_stream/conntrack/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ streams:
required: true
show_user: true
default: 10s
- name: processors
type: yaml
title: Processors
multi: false
required: false
show_user: false
description: >
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the metrics are parsed. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.
enabled: false
title: Linux host conntrack metrics
description: Collect network metrics from /proc/net/nf_conntrack
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ period: {{period}}
hostfs: {{system.hostfs}}
{{/if}}
processors:
- drop_fields:
fields: event.module
- drop_fields:
fields: event.module
{{#if processors}}
{{processors}}
{{/if}}
8 changes: 8 additions & 0 deletions packages/linux/data_stream/entropy/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ streams:
required: true
show_user: true
default: 10s
- name: processors
type: yaml
title: Processors
multi: false
required: false
show_user: false
description: >
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the metrics are parsed. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.
enabled: false
title: Linux host entropy metrics
description: Collect Linux entropy metrics
4 changes: 4 additions & 0 deletions packages/linux/data_stream/iostat/agent/stream/stream.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ condition: ${host.platform} == 'linux'
period: {{period}}
{{#if system.hostfs}}
hostfs: {{system.hostfs}}
{{/if}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
8 changes: 8 additions & 0 deletions packages/linux/data_stream/iostat/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,13 @@ streams:
required: true
show_user: true
default: 10s
- name: processors
type: yaml
title: Processors
multi: false
required: false
show_user: false
description: >
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the metrics are parsed. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.
title: Linux iostat metrics
description: Linux disk stat metrics
4 changes: 4 additions & 0 deletions packages/linux/data_stream/ksm/agent/stream/stream.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ condition: ${host.platform} == 'linux'
period: {{period}}
{{#if system.hostfs}}
hostfs: {{system.hostfs}}
{{/if}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
8 changes: 8 additions & 0 deletions packages/linux/data_stream/ksm/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ streams:
required: true
show_user: true
default: 10s
- name: processors
type: yaml
title: Processors
multi: false
required: false
show_user: false
description: >
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the metrics are parsed. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.
enabled: false
title: Linux host KSM metrics
description: Collect kernel samepage merging metrics
4 changes: 4 additions & 0 deletions packages/linux/data_stream/memory/agent/stream/stream.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ condition: ${host.platform} == 'linux'
period: {{period}}
{{#if system.hostfs}}
hostfs: {{system.hostfs}}
{{/if}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
8 changes: 8 additions & 0 deletions packages/linux/data_stream/memory/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,13 @@ streams:
required: true
show_user: true
default: 10s
- name: processors
type: yaml
title: Processors
multi: false
required: false
show_user: false
description: >
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the metrics are parsed. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.
title: Linux memory metrics
description: Linux paging and memory management metrics
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ metricsets: ["network_summary"]
condition: ${host.platform} == 'linux'
period: {{period}}
processors:
- drop_fields:
fields: event.module
- drop_fields:
fields: event.module
{{#if processors}}
{{processors}}
{{/if}}
8 changes: 8 additions & 0 deletions packages/linux/data_stream/network_summary/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,13 @@ streams:
required: true
show_user: true
default: 10s
- name: processors
type: yaml
title: Processors
multi: false
required: false
show_user: false
description: >
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the metrics are parsed. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.
title: Linux host network summary metrics
description: Collect Linux network_summary metrics
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ condition: ${host.platform} == 'linux'
period: {{period}}
{{#if system.hostfs}}
hostfs: {{system.hostfs}}
{{/if}}
{{#if processors}}
processors:
{{processors}}
{{/if}}
8 changes: 8 additions & 0 deletions packages/linux/data_stream/pageinfo/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ streams:
required: true
show_user: true
default: 10s
- name: processors
type: yaml
title: Processors
multi: false
required: false
show_user: false
description: >
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the metrics are parsed. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.
enabled: false
title: Linux host pageinfo metrics
description: Collect paging statistics as found in /proc/pagetypeinfo
7 changes: 5 additions & 2 deletions packages/linux/data_stream/raid/agent/stream/stream.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ period: {{period}}
hostfs: {{system.hostfs}}
{{/if}}
processors:
- drop_fields:
fields: event.module
- drop_fields:
fields: event.module
{{#if processors}}
{{processors}}
{{/if}}
9 changes: 8 additions & 1 deletion packages/linux/data_stream/raid/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ streams:
show_user: true
description: >
Specifty a RAID mount location. By default, Any available RAID mounts will be selected.
- name: processors
type: yaml
title: Processors
multi: false
required: false
show_user: false
description: >
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the metrics are parsed. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.
enabled: false
title: Linux host raid metrics
description: Collect Linux raid metrics
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ period: {{period}}
hostfs: {{system.hostfs}}
{{/if}}
processors:
- drop_fields:
fields: event.module
{{#if processors}}
- drop_fields:
fields: event.module
{{processors}}
{{/if}}
9 changes: 8 additions & 1 deletion packages/linux/data_stream/service/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ streams:
show_user: true
description: >
Filter systemd services based on a name pattern
- name: processors
type: yaml
title: Processors
multi: false
required: false
show_user: false
description: >
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the metrics are parsed. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.
title: Linux host service metrics
description: Collect Linux service metrics
7 changes: 5 additions & 2 deletions packages/linux/data_stream/socket/agent/stream/stream.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ period: {{period}}
hostfs: {{system.hostfs}}
{{/if}}
processors:
- drop_fields:
fields: event.module
- drop_fields:
fields: event.module
{{#if processors}}
{{processors}}
{{/if}}
8 changes: 8 additions & 0 deletions packages/linux/data_stream/socket/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,13 @@ streams:
required: false
show_user: true
description: "Failure TTL for reverse DNS lookup on remote IP addresses in the socket dataset (sample: 10s)"
- name: processors
type: yaml
title: Processors
multi: false
required: false
show_user: false
description: >
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the metrics are parsed. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.
title: Linux host socket metrics
description: Collect Linux socket metrics
7 changes: 5 additions & 2 deletions packages/linux/data_stream/users/agent/stream/stream.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ period: {{period}}
hostfs: {{system.hostfs}}
{{/if}}
processors:
- drop_fields:
fields: event.module
- drop_fields:
fields: event.module
{{#if processors}}
{{processors}}
{{/if}}
8 changes: 8 additions & 0 deletions packages/linux/data_stream/users/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ streams:
required: true
show_user: true
default: 10s
- name: processors
type: yaml
title: Processors
multi: false
required: false
show_user: false
description: >
Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the metrics are parsed. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.
enabled: false
title: Linux host user metrics
description: Collect Linux users metrics
2 changes: 1 addition & 1 deletion packages/linux/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: linux
title: Linux Metrics
version: 0.6.9
version: 0.6.10
license: basic
description: Collect metrics from Linux servers with Elastic Agent.
type: integration
Expand Down

0 comments on commit 1284b90

Please sign in to comment.