Skip to content

Commit

Permalink
Update changelog and configs for performance presets (#3879)
Browse files Browse the repository at this point in the history
* Add changelog and update default/reference configs for performance presets

* update config templates
  • Loading branch information
faec committed Dec 8, 2023
1 parent b896f07 commit e3c0695
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions _meta/config/common.p2.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ outputs:
api_key: "example-key"
#username: "elastic"
#password: "changeme"
preset: balanced



Expand Down
5 changes: 5 additions & 0 deletions _meta/config/common.reference.p2.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ outputs:
# username: "elastic"
# password: "changeme"

# Performance preset for elasticsearch outputs. One of "balanced", "throughput",
# "scale", "latency" and "custom".
# The default if unspecified is "custom".
preset: balanced

inputs:
- type: system/metrics
# Each input must have a unique ID.
Expand Down
1 change: 1 addition & 0 deletions _meta/config/elastic-agent.docker.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ outputs:
hosts: '${ELASTICSEARCH_HOSTS:http://elasticsearch:9200}'
username: '${ELASTICSEARCH_USERNAME:elastic}'
password: '${ELASTICSEARCH_PASSWORD:changeme}'
preset: balanced

inputs:
- type: system/metrics
Expand Down
8 changes: 8 additions & 0 deletions changelog/fragments/1701882851-performance-presets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: feature
summary: Add performance presets to the Elasticsearch output configuration.

description: Add a "preset" field to Elasticsearch output configurations that applies a set of configuration overrides based on a desired performance priority. Valid values are "balanced", "throughput", "scale", "latency" and "custom". The default if unspecified is "custom".

component: all
pr: https://github.com/elastic/beats/pull/37259
issue: https://github.com/elastic/elastic-agent/issues/3797
1 change: 1 addition & 0 deletions elastic-agent.docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ outputs:
hosts: '${ELASTICSEARCH_HOSTS:http://elasticsearch:9200}'
username: '${ELASTICSEARCH_USERNAME:elastic}'
password: '${ELASTICSEARCH_PASSWORD:changeme}'
preset: balanced

inputs:
- type: system/metrics
Expand Down
5 changes: 5 additions & 0 deletions elastic-agent.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ outputs:
# username: "elastic"
# password: "changeme"

# Performance preset for elasticsearch outputs. One of "balanced", "throughput",
# "scale", "latency" and "custom".
# The default if unspecified is "custom".
preset: balanced

inputs:
- type: system/metrics
# Each input must have a unique ID.
Expand Down
1 change: 1 addition & 0 deletions elastic-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ outputs:
api_key: "example-key"
#username: "elastic"
#password: "changeme"
preset: balanced



Expand Down

0 comments on commit e3c0695

Please sign in to comment.