Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interval options should have string value #533

Merged
merged 1 commit into from
Jan 15, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions plugins/inputs/exec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ setup the exec plugin with:
[[inputs.exec]]
command = "/usr/bin/mycollector --output=json"
name_suffix = "_mycollector"
interval = 10
interval = "10s"
```

The name suffix is appended to exec as "exec_name_suffix" to identify the input stream.
Expand All @@ -27,14 +27,21 @@ Let's say that we have a command with the name_suffix "_mycollector", which give
{
"a": 0.5,
"b": {
"c": "some text",
"d": 0.1,
"e": 5
"c": 0.1,
"d": 5
}
}
```

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_"
```