Configure inputs for Standalone Elastic Agentsedit

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:

- name: system-metrics 
  type: system/metrics 
  use_output: default 
      name: system
      version: 0.10.9
    namespace: default 
    - data_stream:
        dataset: system.cpu 
        type: metrics 
        - cpu
      period: 10s
        - percentages
        - normalized_percentages

User-defined name 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.