forked from fluent/fluent-bit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request fluent#12 from nokute78/in_disk
in_disk: add new documentation about in_disk
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Disk Usage | ||
|
||
The __disk__ input plugin, gathers the information about the disk usage of the running system every certain interval of time and reports them. | ||
|
||
## Configuration Parameters | ||
|
||
The plugin supports the following configuration parameters: | ||
|
||
| Key | Description | | ||
| --------------|-------------| | ||
| Interval_Sec | Polling interval (seconds). default: 1| | ||
| Interval_NSec | Polling interval (nanosecond). default: 0| | ||
| Dev_Name | Device name to limit the target. (e.g. sda). If not set, _in_disk_ gathers information from all of disks and partitions.| | ||
|
||
## Getting Started | ||
|
||
In order to get disk usage from your system, you can run the plugin from the command line or through the configuration file: | ||
|
||
### Command Line | ||
|
||
```bash | ||
$ fluent-bit -i disk -o stdout | ||
Fluent-Bit v0.11.0 | ||
Copyright (C) Treasure Data | ||
|
||
[2017/01/28 16:58:16] [ info] [engine] started | ||
[0] disk.0: [1485590297, {"read_size"=>0, "write_size"=>0}] | ||
[1] disk.0: [1485590298, {"read_size"=>0, "write_size"=>0}] | ||
[2] disk.0: [1485590299, {"read_size"=>0, "write_size"=>0}] | ||
[3] disk.0: [1485590300, {"read_size"=>0, "write_size"=>11997184}] | ||
``` | ||
|
||
### Configuration File | ||
|
||
In your main configuration file append the following _Input_ & _Output_ sections: | ||
|
||
```python | ||
[INPUT] | ||
Name disk | ||
Tag disk | ||
Interval_Sec 1 | ||
Interval_NSec 0 | ||
[OUTPUT] | ||
Name stdout | ||
Match * | ||
``` | ||
|
||
Note: Total interval (sec) = Interval_Sec + (Interval_Nsec / 1000000000). | ||
|
||
e.g. 1.5s = 1s + 500000000ns |