Configure inputs for Standalone Elastic Agents

edit

Running Elastic Agent in standalone mode is an advanced use case. The documentation is incomplete and not yet mature. When possible, we recommend using Fleet-managed agents instead of standalone mode.

The inputs section of the elastic-agent.yml file specifies how Elastic Agent locates and processes input data.

By default Elastic Agent collects system metrics, such as CPU, memory, network, and file system metrics, and sends them to the default output. For example, to define the datastream for cpu metrics, this is the configuration:

- id: unique-system-metrics-id 
  type: system/metrics 
  use_output: default 
  meta:
    package: 
      name: system
      version: 0.10.9
  data_stream:
    namespace: default 
  streams:
    - data_stream:
        dataset: system.cpu 
        type: metrics 
      metricsets: 
        - cpu
      period: 10s
      cpu.metrics:
        - percentages
        - normalized_percentages

A unique ID for the input.

A generic type describing the data.

The name of the output to use. If not specified, default will be used.

Package specification.

A user-defined namespace.

A user-defined dataset. It can contain anything that makes sense to signify the source of the data.

The type of the data stream.

Enabled module metricsets.

In the System module there are several options. The cpu is just one of them. Its fields can be configured.