2020-08-12 04:10:41 +08:00
|
|
|
# Linux Sysctl FS Input Plugin
|
2017-04-01 05:01:02 +08:00
|
|
|
|
2022-06-08 05:37:08 +08:00
|
|
|
The linux_sysctl_fs input provides Linux system level file metrics. The
|
|
|
|
|
documentation on these fields can be found at
|
|
|
|
|
<https://www.kernel.org/doc/Documentation/sysctl/fs.txt>.
|
2017-04-01 05:01:02 +08:00
|
|
|
|
|
|
|
|
Example output:
|
|
|
|
|
|
2021-11-25 03:18:53 +08:00
|
|
|
```shell
|
2017-04-01 05:01:02 +08:00
|
|
|
> linux_sysctl_fs,host=foo dentry-want-pages=0i,file-max=44222i,aio-max-nr=65536i,inode-preshrink-nr=0i,dentry-nr=64340i,dentry-unused-nr=55274i,file-nr=1568i,aio-nr=0i,inode-nr=35952i,inode-free-nr=12957i,dentry-age-limit=45i 1490982022000000000
|
|
|
|
|
```
|
2022-04-08 06:01:21 +08:00
|
|
|
|
2022-10-27 03:58:36 +08:00
|
|
|
## Global configuration options <!-- @/docs/includes/plugin_config.md -->
|
|
|
|
|
|
|
|
|
|
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][CONFIGURATION.md] for more details.
|
|
|
|
|
|
2023-01-12 23:55:21 +08:00
|
|
|
[CONFIGURATION.md]: ../../../docs/CONFIGURATION.md#plugins
|
2022-10-27 03:58:36 +08:00
|
|
|
|
2022-04-08 06:01:21 +08:00
|
|
|
## Configuration
|
|
|
|
|
|
2022-05-24 21:49:47 +08:00
|
|
|
```toml @sample.conf
|
2022-04-08 06:01:21 +08:00
|
|
|
# Provides Linux sysctl fs metrics
|
|
|
|
|
[[inputs.linux_sysctl_fs]]
|
|
|
|
|
# no configuration
|
|
|
|
|
```
|
2023-02-09 18:04:41 +08:00
|
|
|
|
|
|
|
|
## Metrics
|
|
|
|
|
|
|
|
|
|
## Example Output
|