Skip to content

Commit

Permalink
[Windows] Add custom conditions support for Perfmon
Browse files Browse the repository at this point in the history
  • Loading branch information
mholttech committed Feb 18, 2025
1 parent 119156a commit 3f1d843
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/windows/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.5.0"
changes:
- description: Enable using conditionals to apply custom perfmon queries to specific systems.
type: enhancement
link: https://github.com/elastic/integrations/pull/XXXX
- version: "2.4.2"
changes:
- description: Updated SSL description to be uniform and to include links to documentation.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
metricsets: ["perfmon"]
{{#if condition }}
condition: ${host.platform} == 'windows' and {{ condition }}
{{ else }}
condition: ${host.platform} == 'windows'
{{/if}}
perfmon.group_measurements_by_instance: {{perfmon.group_measurements_by_instance}}
perfmon.ignore_non_existent_counters: {{perfmon.ignore_non_existent_counters}}
perfmon.refresh_wildcard_counters: {{perfmon.refresh_wildcard_counters}}
Expand Down
7 changes: 7 additions & 0 deletions packages/windows/data_stream/perfmon/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ streams:
required: true
show_user: true
default: 10s
- name: condition
title: Condition
description: Condition to filter when to collect this input. See [Dynamic Input Configuration](https://www.elastic.co/guide/en/fleet/current/dynamic-input-configuration.html) for details.
type: text
multi: false
required: false
show_user: false
- name: processors
type: yaml
title: Processors
Expand Down

0 comments on commit 3f1d843

Please sign in to comment.