interval options should have string value
also mentioned name_override and name_prefix on top of name_suffix
This commit is contained in:
parent
b24e71b232
commit
71f4e72b22
|
@ -10,7 +10,7 @@ setup the exec plugin with:
|
||||||
[[inputs.exec]]
|
[[inputs.exec]]
|
||||||
command = "/usr/bin/mycollector --output=json"
|
command = "/usr/bin/mycollector --output=json"
|
||||||
name_suffix = "_mycollector"
|
name_suffix = "_mycollector"
|
||||||
interval = 10
|
interval = "10s"
|
||||||
```
|
```
|
||||||
|
|
||||||
The name suffix is appended to exec as "exec_name_suffix" to identify the input stream.
|
The name suffix is appended to exec as "exec_name_suffix" to identify the input stream.
|
||||||
|
@ -27,14 +27,21 @@ Let's say that we have a command with the name_suffix "_mycollector", which give
|
||||||
{
|
{
|
||||||
"a": 0.5,
|
"a": 0.5,
|
||||||
"b": {
|
"b": {
|
||||||
"c": "some text",
|
"c": 0.1,
|
||||||
"d": 0.1,
|
"d": 5
|
||||||
"e": 5
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The collected metrics will be stored as field values under the same measurement "exec_mycollector":
|
The collected metrics will be stored as field values under the same measurement "exec_mycollector":
|
||||||
```
|
```
|
||||||
exec_mycollector a=0.5,b_c="some text",b_d=0.1,b_e=5 1452815002357578567
|
exec_mycollector a=0.5,b_c=0.1,b_d=5 1452815002357578567
|
||||||
|
```
|
||||||
|
|
||||||
|
Other options include:
|
||||||
|
|
||||||
|
Other options for modifying the measurement names are:
|
||||||
|
```
|
||||||
|
name_override = "newname"
|
||||||
|
name_prefix = "prefix_"
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue