Update filecount docs
This commit is contained in:
parent
5b85569316
commit
5acf2e6ed7
|
@ -1,11 +1,10 @@
|
||||||
# filecount Input Plugin
|
# Filecount Input Plugin
|
||||||
|
|
||||||
Counts files in directories that match certain criteria.
|
Counts files in directories that match certain criteria.
|
||||||
|
|
||||||
### Configuration:
|
### Configuration:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
# Count files in a directory
|
|
||||||
[[inputs.filecount]]
|
[[inputs.filecount]]
|
||||||
## Directory to gather stats about.
|
## Directory to gather stats about.
|
||||||
## deprecated in 1.9; use the directories option
|
## deprecated in 1.9; use the directories option
|
||||||
|
@ -40,21 +39,18 @@ Counts files in directories that match certain criteria.
|
||||||
mtime = "0s"
|
mtime = "0s"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Measurements & Fields:
|
### Metrics
|
||||||
|
|
||||||
- filecount
|
- filecount
|
||||||
- count (int)
|
- tags:
|
||||||
- size_bytes (int)
|
|
||||||
|
|
||||||
### Tags:
|
|
||||||
|
|
||||||
- All measurements have the following tags:
|
|
||||||
- directory (the directory path)
|
- directory (the directory path)
|
||||||
|
- fields:
|
||||||
|
- count (integer)
|
||||||
|
- size_bytes (integer)
|
||||||
|
|
||||||
### Example Output:
|
### Example Output:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ telegraf --config /etc/telegraf/telegraf.conf --input-filter filecount --test
|
filecount,directory=/var/cache/apt count=7i,size_bytes=7438336i 1530034445000000000
|
||||||
> filecount,directory=/var/cache/apt,host=czernobog count=7i,size=7438336i 1530034445000000000
|
filecount,directory=/tmp count=17i,size_bytes=28934786i 1530034445000000000
|
||||||
> filecount,directory=/tmp,host=czernobog count=17i,size=28934786i 1530034445000000000
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue