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 
  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.

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.