forked from influxdata/telegraf
-
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.
Add dev/telegraf.conf for docker, exec, and procstat input (influxdat…
- Loading branch information
1 parent
96cb0aa
commit 019d265
Showing
3 changed files
with
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[agent] | ||
interval="1s" | ||
flush_interval="1s" | ||
|
||
[[inputs.docker]] | ||
endpoint = "unix:///var/run/docker.sock" | ||
timeout = "5s" | ||
perdevice = true | ||
total = false | ||
container_names = [] | ||
|
||
[[outputs.file]] | ||
files = ["stdout"] |
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,26 @@ | ||
[agent] | ||
interval="1s" | ||
flush_interval="1s" | ||
|
||
[[inputs.exec]] | ||
timeout = "1s" | ||
data_format = "influx" | ||
commands = [ | ||
"echo 'deal,computer_name=hosta message=\"stuff\" 1530654676316265790'", | ||
"echo 'deal,computer_name=hostb message=\"stuff\" 1530654676316265790'", | ||
] | ||
|
||
[[processors.regex]] | ||
[[processors.regex.tags]] | ||
key = "computer_name" | ||
pattern = "^(.*?)a$" | ||
replacement = "${1}" | ||
result_key = "server_name" | ||
[[processors.regex.tags]] | ||
key = "computer_name" | ||
pattern = "^(.*?)b$" | ||
replacement = "${1}" | ||
result_key = "server_name" | ||
|
||
[[outputs.file]] | ||
files = ["stdout"] |
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,9 @@ | ||
[agent] | ||
interval="1s" | ||
flush_interval="1s" | ||
|
||
[[inputs.procstat]] | ||
exe = "telegraf" | ||
|
||
[[outputs.file]] | ||
files = ["stdout"] |