﻿---
title: Linux module
description: The Linux module reports on metrics exclusive to the Linux kernel and GNU/Linux OS. The Linux module supports the standard configuration options that...
url: https://www.elastic.co/elastic/docs-builder/docs/2423/reference/beats/metricbeat/metricbeat-module-linux
---

# Linux module
<warning>
  This functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.
</warning>

<admonition title="Prefer to use Elastic Agent for this use case?">
  Refer to the [Elastic Integrations documentation](https://docs-v3-preview.elastic.dev/elastic/docs-builder/docs/2423/reference/linux).
  <dropdown title="Learn more">
    Elastic Agent is a single, unified way to add monitoring for logs, metrics, and other types of data to a host. It can also protect hosts from security threats, query data from operating systems, forward data from remote services or hardware, and more. Refer to the documentation for a detailed [comparison of Beats and Elastic Agent](https://docs-v3-preview.elastic.dev/elastic/docs-builder/docs/2423/reference/fleet).
  </dropdown>
</admonition>

The Linux module reports on metrics exclusive to the Linux kernel and GNU/Linux OS.

## Example configuration

The Linux module supports the standard configuration options that are described in [Modules](https://www.elastic.co/elastic/docs-builder/docs/2423/reference/beats/metricbeat/configuration-metricbeat). Here is an example configuration:
```yaml
metricbeat.modules:
- module: linux
  period: 10s
  metricsets:
    - "pageinfo"
    - "memory"
    # - ksm
    # - conntrack
    # - iostat
    # - pressure
    # - rapl
  enabled: true
  #hostfs: /hostfs
  #rapl.use_msr_safe: false
```


## Metricsets

The following metricsets are available:
- [conntrack](https://www.elastic.co/elastic/docs-builder/docs/2423/reference/beats/metricbeat/metricbeat-metricset-linux-conntrack)  `stack: beta`
- [iostat](https://www.elastic.co/elastic/docs-builder/docs/2423/reference/beats/metricbeat/metricbeat-metricset-linux-iostat)  `stack: beta`
- [ksm](https://www.elastic.co/elastic/docs-builder/docs/2423/reference/beats/metricbeat/metricbeat-metricset-linux-ksm)  `stack: beta`
- [memory](https://www.elastic.co/elastic/docs-builder/docs/2423/reference/beats/metricbeat/metricbeat-metricset-linux-memory)  `stack: beta`
- [pageinfo](https://www.elastic.co/elastic/docs-builder/docs/2423/reference/beats/metricbeat/metricbeat-metricset-linux-pageinfo)  `stack: beta`
- [pressure](https://www.elastic.co/elastic/docs-builder/docs/2423/reference/beats/metricbeat/metricbeat-metricset-linux-pressure)  `stack: beta`
- [rapl](https://www.elastic.co/elastic/docs-builder/docs/2423/reference/beats/metricbeat/metricbeat-metricset-linux-rapl)  `stack: beta`