Skip to content

Commit

Permalink
Fix formatting of system metricsets in example elastic-agent config (#…
Browse files Browse the repository at this point in the history
…2338)

* fix formatting of system config

* add fragment
  • Loading branch information
fearful-symmetry authored Mar 2, 2023
1 parent e1b4c21 commit 2c41221
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 28 deletions.
12 changes: 8 additions & 4 deletions _meta/config/common.p2.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ inputs:
data_stream.namespace: default
use_output: default
streams:
- metricset: cpu
- metricsets:
- cpu
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
data_stream.dataset: system.cpu
- metricset: memory
- metricsets:
- memory
data_stream.dataset: system.memory
- metricset: network
- metricsets:
- network
data_stream.dataset: system.network
- metricset: filesystem
- metricsets:
- filesystem
data_stream.dataset: system.filesystem

# agent.monitoring:
Expand Down
12 changes: 8 additions & 4 deletions _meta/config/common.reference.p2.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ inputs:
data_stream.namespace: default
use_output: default
streams:
- metricset: cpu
- metricsets:
- cpu
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
data_stream.dataset: system.cpu
- metricset: memory
- metricsets:
- memory
data_stream.dataset: system.memory
- metricset: network
- metricsets:
- network
data_stream.dataset: system.network
- metricset: filesystem
- metricsets:
- filesystem
data_stream.dataset: system.filesystem

# management:
Expand Down
12 changes: 8 additions & 4 deletions _meta/config/elastic-agent.docker.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ inputs:
data_stream.namespace: default
use_output: default
streams:
- metricset: cpu
- metricsets:
- cpu
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
data_stream.dataset: system.cpu
- metricset: memory
- metricsets:
- memory
data_stream.dataset: system.memory
- metricset: network
- metricsets:
- network
data_stream.dataset: system.network
- metricset: filesystem
- metricsets:
- filesystem
data_stream.dataset: system.filesystem

# management:
Expand Down
12 changes: 8 additions & 4 deletions _meta/elastic-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ inputs:
data_stream.namespace: default
use_output: default
streams:
- metricset: cpu
- metricsets:
- cpu
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
data_stream.dataset: system.cpu
- metricset: memory
- metricsets:
- memory
data_stream.dataset: system.memory
- metricset: network
- metricsets:
- network
data_stream.dataset: system.network
- metricset: filesystem
- metricsets:
- filesystem
data_stream.dataset: system.filesystem

# management:
Expand Down
32 changes: 32 additions & 0 deletions changelog/fragments/1677711770-fix-standalone-system-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Kind can be one of:
# - breaking-change: a change to previously-documented behavior
# - deprecation: functionality that is being removed in a later release
# - bug-fix: fixes a problem in a previous version
# - enhancement: extends functionality but does not break or fix existing behavior
# - feature: new functionality
# - known-issue: problems that we are aware of in a given version
# - security: impacts on the security of a product or a user’s deployment.
# - upgrade: important information for someone upgrading from a prior version
# - other: does not fit into any of the other categories
kind: bug-fix

# Change summary; a 80ish characters long description of the change.
summary: Fix system config in example standalone config file

# Long description; in case the summary is not enough to describe the change
# this field accommodate a description without length limits.
# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment.
#description:

# Affected component; a word indicating the component this changeset affects.
component: config

# PR URL; optional; the PR number that added the changeset.
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
# Please provide it if you are adding a fragment for a different PR.
#pr: https://github.com/owner/repo/1234

# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
# If not present is automatically filled by the tooling with the issue linked to the PR number.
#issue: https://github.com/owner/repo/1234
12 changes: 8 additions & 4 deletions elastic-agent.docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ inputs:
data_stream.namespace: default
use_output: default
streams:
- metricset: cpu
- metricsets:
- cpu
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
data_stream.dataset: system.cpu
- metricset: memory
- metricsets:
- memory
data_stream.dataset: system.memory
- metricset: network
- metricsets:
- network
data_stream.dataset: system.network
- metricset: filesystem
- metricsets:
- filesystem
data_stream.dataset: system.filesystem

# management:
Expand Down
12 changes: 8 additions & 4 deletions elastic-agent.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@ inputs:
data_stream.namespace: default
use_output: default
streams:
- metricset: cpu
- metricsets:
- cpu
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
data_stream.dataset: system.cpu
- metricset: memory
- metricsets:
- memory
data_stream.dataset: system.memory
- metricset: network
- metricsets:
- network
data_stream.dataset: system.network
- metricset: filesystem
- metricsets:
- filesystem
data_stream.dataset: system.filesystem

# management:
Expand Down
12 changes: 8 additions & 4 deletions elastic-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@ inputs:
data_stream.namespace: default
use_output: default
streams:
- metricset: cpu
- metricsets:
- cpu
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
data_stream.dataset: system.cpu
- metricset: memory
- metricsets:
- memory
data_stream.dataset: system.memory
- metricset: network
- metricsets:
- network
data_stream.dataset: system.network
- metricset: filesystem
- metricsets:
- filesystem
data_stream.dataset: system.filesystem

# agent.monitoring:
Expand Down

0 comments on commit 2c41221

Please sign in to comment.