You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update docs version of reference.yml and improve header section (#1416) (#1423)
* Update docs version of reference.yml and improve header section
* Update docs/en/ingest-management/elastic-agent/configuration/yaml/elastic-agent-reference-yaml.asciidoc
(cherry picked from commit f5344bf)
Co-authored-by: David Kilfoyle <[email protected]>
Copy file name to clipboardExpand all lines: docs/en/ingest-management/elastic-agent/configuration/yaml/elastic-agent-reference-yaml.asciidoc
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,10 @@
4
4
The {agent} installation includes an `elastic-agent.reference.yml` file that
5
5
describes all the settings available in a standalone configuration.
6
6
7
-
This file is included here for your convenience.
7
+
To ensure that you're accessing the latest version, refer to the original link:https://github.com/elastic/elastic-agent/blob/main/elastic-agent.reference.yml[`elastic-agent.reference.yml` file] in the `elastic/elastic-agent` repository.
8
+
A copy is included here for your convenience.
9
+
10
+
Each section of the file and available settings are also described in <<structure-config-file,Structure of a config file>>.
#Each input in a policy must have a unique value for the id key.
20
-
- id: unique-system-metrics-id
21
-
type: system/metrics
18
+
# Performance preset for elasticsearch outputs. One of "balanced", "throughput",
19
+
#"scale", "latency" and "custom".
20
+
# The default if unspecified is "custom".
21
+
preset: balanced
22
22
23
+
inputs:
24
+
- type: system/metrics
25
+
# Each input must have a unique ID.
26
+
id: unique-system-metrics-input
23
27
# Namespace name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
24
28
# For index naming restrictions, see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html#indices-create-api-path-params
25
29
data_stream.namespace: default
26
30
use_output: default
27
31
streams:
28
-
- metricset: cpu
32
+
- metricsets:
33
+
- cpu
29
34
# Dataset name must conform to the naming conventions for Elasticsearch indices, cannot contain dashes (-), and cannot exceed 100 bytes
30
35
data_stream.dataset: system.cpu
31
-
- metricset: memory
36
+
- metricsets:
37
+
- memory
32
38
data_stream.dataset: system.memory
33
-
- metricset: network
39
+
- metricsets:
40
+
- network
34
41
data_stream.dataset: system.network
35
-
- metricset: filesystem
42
+
- metricsets:
43
+
- filesystem
36
44
data_stream.dataset: system.filesystem
37
45
46
+
# # Collecting log files
47
+
# - type: filestream
48
+
# # Input ID allowing Elastic Agent to track the state of this input. Must be unique.
49
+
# id: your-input-id
50
+
# streams:
51
+
# # Stream ID for this data stream allowing Filebeat to track the state of the ingested files. Must be unique.
52
+
# # Each filestream data stream creates a separate instance of the Filebeat filestream input.
53
+
# - id: your-filestream-stream-id
54
+
# data_stream:
55
+
# dataset: generic
56
+
# paths:
57
+
# - /var/log/*.log
58
+
38
59
# management:
39
60
# # Mode of management, the Elastic Agent support two modes of operation:
40
61
# #
@@ -72,12 +93,12 @@ inputs:
72
93
# target_directory: "${path.data}/downloads"
73
94
# # timeout for downloading package
74
95
# timeout: 120s
75
-
# # file path to a public key used for verifying downloaded artifacts
76
-
# # if not file is present agent will try to load public key from elastic.co website.
77
-
# pgpfile: "${path.data}/elastic.pgp"
78
96
# # install_path describes the location of installed packages/programs. It is also used
79
97
# # for reading program specifications.
80
98
# install_path: "${path.data}/install"
99
+
# # retry_sleep_init_duration is the duration to sleep for before the first retry attempt. This
100
+
# # duration will increase for subsequent retry attempts in a randomized exponential backoff manner.
101
+
# retry_sleep_init_duration: 30s
81
102
82
103
# agent.process:
83
104
# # timeout for creating new processes. when process is not successfully created by this timeout
@@ -92,6 +113,9 @@ inputs:
92
113
# address: localhost
93
114
# # port for the GRPC server that spawned processes connect back to.
94
115
# port: 6789
116
+
# # max_message_size limits the message size in agent internal communication
117
+
# # default is 100MB
118
+
# max_message_size: 104857600
95
119
96
120
# agent.retry:
97
121
# # Enabled determines whether retry is possible. Default is false.
@@ -108,17 +132,40 @@ inputs:
108
132
# # Default is false
109
133
# exponential: false
110
134
135
+
# agent.limits:
136
+
# # limits the number of operating system threads that can execute user-level Go code simultaneously.
137
+
# # Translates into the GOMAXPROCS runtime parameter for each Go process started by the agent and the agent itself.
138
+
# # By default is set to `0` which means using all available CPUs.
139
+
# go_max_procs: 0
140
+
111
141
# agent.monitoring:
112
142
# # enabled turns on monitoring of running processes
113
143
# enabled: false
114
144
# # enables log monitoring
115
145
# logs: false
116
146
# # enables metrics monitoring
117
147
# metrics: false
148
+
# # metrics_period defines how frequent we should sample monitoring metrics. Default is 60 seconds.
149
+
# metrics_period: 60s
118
150
# # exposes /debug/pprof/ endpoints
119
151
# # recommended that these endpoints are only enabled if the monitoring endpoint is set to localhost
120
152
# pprof.enabled: false
121
-
# # exposes agent metrics using http, by default sockets and named pipes are used
153
+
# # The name of the output to use for monitoring data.
154
+
# use_output: monitoring
155
+
# # Exposes agent metrics using http, by default sockets and named pipes are used.
156
+
# #
157
+
# # `http` Also exposes a /liveness endpoint that will return an HTTP code depending on agent status:
158
+
# # 200: Agent is healthy
159
+
# # 500: A component or unit is in a failed state
160
+
# # 503: The agent coordinator is unresponsive
161
+
# #
162
+
# # You can pass a `failon` parameter to the /liveness endpoint to determine what component state will result in a 500.
163
+
# # For example: `curl 'localhost:6792/liveness?failon=degraded'` will return 500 if a component is in a degraded state.
164
+
# # The possible values for `failon` are:
165
+
# # `degraded`: return an error if a component is in a degraded state or failed state, or if the agent coordinator is unresponsive.
166
+
# # `failed`: return an error if a unit is in a failed state, or if the agent coordinator is unresponsive.
167
+
# # `heartbeat`: return an error only if the agent coordinator is unresponsive.
168
+
# # If no `failon` parameter is provided, the default behavior is `failon=heartbeat`
122
169
# http:
123
170
# # enables http endpoint
124
171
# enabled: false
@@ -129,6 +176,22 @@ inputs:
129
176
# port: 6791
130
177
# # Metrics buffer endpoint
131
178
# buffer.enabled: false
179
+
# # Configuration for the diagnostics action handler
180
+
# diagnostics:
181
+
# # Rate limit for the action handler. Does not affect diagnostics collected through the CLI.
182
+
# limit:
183
+
# # Rate limit interval.
184
+
# interval: 1m
185
+
# # Rate limit burst.
186
+
# burst: 1
187
+
# # Configuration for the file-upload client. Client may retry failed requests with an exponential backoff.
188
+
# uploader:
189
+
# # Max retries allowed when uploading a chunk.
190
+
# max_retries: 10
191
+
# # Initial duration of the backoff.
192
+
# init_dur: 1s
193
+
# # Max duration of the backoff.
194
+
# max_dur: 1m
132
195
133
196
# # Allow fleet to reload its configuration locally on disk.
134
197
# # Notes: Only specific process configuration and external input configurations will be reloaded.
@@ -141,6 +204,13 @@ inputs:
141
204
# # period define how frequent we should look for changes in the configuration.
142
205
# period: 10s
143
206
207
+
# Feature Flags
208
+
209
+
# This section enables or disables feature flags supported by Agent and its components.
210
+
#agent.features:
211
+
# fqdn:
212
+
# enabled: false
213
+
144
214
# Logging
145
215
146
216
# There are four options for the log output: file, stderr, syslog, eventlog
@@ -187,7 +257,7 @@ agent.logging.to_stderr: true
187
257
188
258
# Configure log file size limit. If limit is reached, log file will be
189
259
# automatically rotated
190
-
#rotateeverybytes: 10485760 # = 10MB
260
+
#rotateeverybytes: 20971520 # = 20MB
191
261
192
262
# Number of rotated log files to keep. Oldest files will be deleted first.
0 commit comments