Swap Input Plugin
This plugin collects metrics on the operating-system’s swap memory.
Introduced in: Telegraf v1.7.0 Tags: system OS support: all
Global configuration options
In addition to the plugin-specific configuration settings, plugins support additional global and plugin configuration settings. These settings are used to modify metrics, tags, and field or create aliases and configure ordering, etc. See the CONFIGURATION.md for more details.
Configuration
# Read metrics about swap memory usage
[[inputs.swap]]
# no configuration
Metrics
- swap
- fields:
- free (int, bytes): free swap memory
- total (int, bytes): total swap memory
- used (int, bytes): used swap memory
- used_percent (float, percent): percentage of swap memory used
- in (int, bytes): data swapped in since last boot calculated from page number
- out (int, bytes): data swapped out since last boot calculated from page number
- fields:
Example Output
swap total=20855394304i,used_percent=45.43883523785713,used=9476448256i,free=1715331072i 1511894782000000000
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Telegraf and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.