Configure inputs for standalone Elastic Agentsedit

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 
      name: system
      version: 0.10.9
    namespace: default 
    - data_stream:
        dataset: system.cpu 
        type: metrics 
        - cpu
      period: 10s
        - percentages
        - normalized_percentages

A unique ID for the input.

The name of the input. Refer to Elastic Agent inputs for the list of what’s available.

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.