Skip to content

Commit 2c41221

Browse files
Fix formatting of system metricsets in example elastic-agent config (#2338)
* fix formatting of system config * add fragment
1 parent e1b4c21 commit 2c41221

8 files changed

+88
-28
lines changed

_meta/config/common.p2.yml.tmpl

+8-4
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,18 @@ inputs:
1818
data_stream.namespace: default
1919
use_output: default
2020
streams:
21-
- metricset: cpu
21+
- metricsets:
22+
- cpu
2223
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
2324
data_stream.dataset: system.cpu
24-
- metricset: memory
25+
- metricsets:
26+
- memory
2527
data_stream.dataset: system.memory
26-
- metricset: network
28+
- metricsets:
29+
- network
2730
data_stream.dataset: system.network
28-
- metricset: filesystem
31+
- metricsets:
32+
- filesystem
2933
data_stream.dataset: system.filesystem
3034

3135
# agent.monitoring:

_meta/config/common.reference.p2.yml.tmpl

+8-4
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,18 @@ inputs:
1818
data_stream.namespace: default
1919
use_output: default
2020
streams:
21-
- metricset: cpu
21+
- metricsets:
22+
- cpu
2223
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
2324
data_stream.dataset: system.cpu
24-
- metricset: memory
25+
- metricsets:
26+
- memory
2527
data_stream.dataset: system.memory
26-
- metricset: network
28+
- metricsets:
29+
- network
2730
data_stream.dataset: system.network
28-
- metricset: filesystem
31+
- metricsets:
32+
- filesystem
2933
data_stream.dataset: system.filesystem
3034

3135
# management:

_meta/config/elastic-agent.docker.yml.tmpl

+8-4
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,18 @@ inputs:
1717
data_stream.namespace: default
1818
use_output: default
1919
streams:
20-
- metricset: cpu
20+
- metricsets:
21+
- cpu
2122
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
2223
data_stream.dataset: system.cpu
23-
- metricset: memory
24+
- metricsets:
25+
- memory
2426
data_stream.dataset: system.memory
25-
- metricset: network
27+
- metricsets:
28+
- network
2629
data_stream.dataset: system.network
27-
- metricset: filesystem
30+
- metricsets:
31+
- filesystem
2832
data_stream.dataset: system.filesystem
2933

3034
# management:

_meta/elastic-agent.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,18 @@ inputs:
1717
data_stream.namespace: default
1818
use_output: default
1919
streams:
20-
- metricset: cpu
20+
- metricsets:
21+
- cpu
2122
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
2223
data_stream.dataset: system.cpu
23-
- metricset: memory
24+
- metricsets:
25+
- memory
2426
data_stream.dataset: system.memory
25-
- metricset: network
27+
- metricsets:
28+
- network
2629
data_stream.dataset: system.network
27-
- metricset: filesystem
30+
- metricsets:
31+
- filesystem
2832
data_stream.dataset: system.filesystem
2933

3034
# management:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Kind can be one of:
2+
# - breaking-change: a change to previously-documented behavior
3+
# - deprecation: functionality that is being removed in a later release
4+
# - bug-fix: fixes a problem in a previous version
5+
# - enhancement: extends functionality but does not break or fix existing behavior
6+
# - feature: new functionality
7+
# - known-issue: problems that we are aware of in a given version
8+
# - security: impacts on the security of a product or a user’s deployment.
9+
# - upgrade: important information for someone upgrading from a prior version
10+
# - other: does not fit into any of the other categories
11+
kind: bug-fix
12+
13+
# Change summary; a 80ish characters long description of the change.
14+
summary: Fix system config in example standalone config file
15+
16+
# Long description; in case the summary is not enough to describe the change
17+
# this field accommodate a description without length limits.
18+
# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment.
19+
#description:
20+
21+
# Affected component; a word indicating the component this changeset affects.
22+
component: config
23+
24+
# PR URL; optional; the PR number that added the changeset.
25+
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
26+
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
27+
# Please provide it if you are adding a fragment for a different PR.
28+
#pr: https://github.com/owner/repo/1234
29+
30+
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
31+
# If not present is automatically filled by the tooling with the issue linked to the PR number.
32+
#issue: https://github.com/owner/repo/1234

elastic-agent.docker.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,18 @@ inputs:
1717
data_stream.namespace: default
1818
use_output: default
1919
streams:
20-
- metricset: cpu
20+
- metricsets:
21+
- cpu
2122
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
2223
data_stream.dataset: system.cpu
23-
- metricset: memory
24+
- metricsets:
25+
- memory
2426
data_stream.dataset: system.memory
25-
- metricset: network
27+
- metricsets:
28+
- network
2629
data_stream.dataset: system.network
27-
- metricset: filesystem
30+
- metricsets:
31+
- filesystem
2832
data_stream.dataset: system.filesystem
2933

3034
# management:

elastic-agent.reference.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,18 @@ inputs:
2424
data_stream.namespace: default
2525
use_output: default
2626
streams:
27-
- metricset: cpu
27+
- metricsets:
28+
- cpu
2829
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
2930
data_stream.dataset: system.cpu
30-
- metricset: memory
31+
- metricsets:
32+
- memory
3133
data_stream.dataset: system.memory
32-
- metricset: network
34+
- metricsets:
35+
- network
3336
data_stream.dataset: system.network
34-
- metricset: filesystem
37+
- metricsets:
38+
- filesystem
3539
data_stream.dataset: system.filesystem
3640

3741
# management:

elastic-agent.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,18 @@ inputs:
2424
data_stream.namespace: default
2525
use_output: default
2626
streams:
27-
- metricset: cpu
27+
- metricsets:
28+
- cpu
2829
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
2930
data_stream.dataset: system.cpu
30-
- metricset: memory
31+
- metricsets:
32+
- memory
3133
data_stream.dataset: system.memory
32-
- metricset: network
34+
- metricsets:
35+
- network
3336
data_stream.dataset: system.network
34-
- metricset: filesystem
37+
- metricsets:
38+
- filesystem
3539
data_stream.dataset: system.filesystem
3640

3741
# agent.monitoring:

0 commit comments

Comments
 (0)