Compare commits

...

1353 Commits

Author SHA1 Message Date
Max U
513ec70e25 nitpick 2018-06-26 15:30:49 -07:00
Max U
cd2ca966e3 add unchanged makefile 2018-06-26 14:47:38 -07:00
Max U
46f9eb8dd9 hopefully fix weird commits 2018-06-26 14:39:49 -07:00
Max U
3deeea7a8a Merge branch 'plugin/reader' of github.com:influxdata/telegraf into plugin/reader 2018-06-26 14:19:38 -07:00
Max U
05b0153b0c Revert "more condensing"
This reverts commit 7fa27f400d.
2018-06-26 14:01:27 -07:00
Max U
5529d51df7 Merge branch 'master' of github.com:influxdata/telegraf into plugin/reader 2018-06-26 14:00:07 -07:00
Max U
5bcb5413a9 prevent merge conflict 2018-06-26 13:55:40 -07:00
Max U
7fa27f400d more condensing 2018-06-26 13:19:53 -07:00
Max U
885e78968f more condensing 2018-06-26 13:19:53 -07:00
Max U
001658af30 condense telegraf.conf 2018-06-26 13:18:43 -07:00
Max U
41c174dc29 condense telegraf.conf 2018-06-26 13:18:43 -07:00
Max U
e450b266ec remove comments 2018-06-26 13:10:46 -07:00
Max U
bacee88ac0 remove comments 2018-06-26 13:10:46 -07:00
Max U
a931eb1c90 update DATA_FORMATS_INPUT.MD to include grok 2018-06-26 12:06:35 -07:00
Max U
64c8559e90 update DATA_FORMATS_INPUT.MD to include grok 2018-06-26 12:06:35 -07:00
Max U
bf7220d2ce add test file to docker spin up 2018-06-26 11:53:40 -07:00
Max U
16119293e9 add test file to docker spin up 2018-06-26 11:53:40 -07:00
Max U
bbd68b3820 docker will spin up 2018-06-26 11:26:43 -07:00
Max U
7845d4a466 docker will spin up 2018-06-26 11:26:43 -07:00
Max U
79d9ea4761 add docker-image spin up for reader 2018-06-26 10:26:48 -07:00
Max U
3d0647d6d9 add docker-image spin up for reader 2018-06-26 10:26:48 -07:00
Max U
cc406299ba allow for import from plugins/all 2018-06-25 15:52:43 -07:00
Max U
fb4a272a45 allow for import from plugins/all 2018-06-25 15:52:43 -07:00
Max U
9c845950a7 add grok as a top level parser, still need README 2018-06-25 15:32:27 -07:00
Max U
e1e6a08f39 add grok as a top level parser, still need README 2018-06-25 15:32:27 -07:00
Max U
f40371e361 add init function to reader 2018-06-25 10:15:32 -07:00
Max U
95edfcbf99 add init function to reader 2018-06-25 10:15:32 -07:00
Max U
36a23ea1ba Merge branch 'master' into plugin/reader 2018-06-25 09:54:49 -07:00
Max U
6101471ae1 Merge branch 'master' into plugin/reader 2018-06-25 09:54:49 -07:00
Max U
554b960339 add setparser to reader 2018-06-25 09:53:35 -07:00
Max U
fdf1b9b351 add setparser to reader 2018-06-25 09:53:35 -07:00
Daniel Nelson
96e601f405 Document path tag in tail input 2018-06-21 18:02:34 -07:00
Daniel Nelson
e7076e4032 Update changelog 2018-06-21 17:59:31 -07:00
JongHyok Lee
b895147fdc Added path tag to tail input plugin (#4292) 2018-06-21 17:55:54 -07:00
Daniel Nelson
dcaa94ab75 Run windows tests with -short 2018-06-21 17:46:58 -07:00
Max U
542c030dc8 knock more errors from test files 2018-06-21 16:23:06 -07:00
Max U
071b7b9731 knock more errors from test files 2018-06-21 16:23:06 -07:00
Max U
504d978446 clean up some test cases 2018-06-21 16:12:26 -07:00
Max U
563e8e8f54 clean up some test cases 2018-06-21 16:12:26 -07:00
Max U
ec7f13111f add more test files 2018-06-21 16:06:36 -07:00
Max U
823ba0a7e0 add more test files 2018-06-21 16:06:36 -07:00
Patrick Hemmer
cef6be8d7e Fix postfix input handling of multi-level queues (#4333) 2018-06-21 16:01:38 -07:00
Max U
4e24a1bbe3 add grok as a top level parser 2018-06-21 15:56:20 -07:00
Max U
ab0bf5748b add grok as a top level parser 2018-06-21 15:56:20 -07:00
Daniel Nelson
797263369f Update changelog 2018-06-21 14:20:35 -07:00
Ayrdrie
40432353ef Add support for comma in logparser timestamp format (#4311) 2018-06-21 14:19:15 -07:00
Max U
9c4b52256d tweak metric output 2018-06-21 13:13:46 -07:00
Max U
caad3b73cb tweak metric output 2018-06-21 13:13:46 -07:00
Max U
08a11d7bfd change config file 2018-06-21 11:44:02 -07:00
Max U
9901bd4ca8 change config file 2018-06-21 11:44:02 -07:00
Max U
e12eced211 input plugin that reads files each interval 2018-06-21 11:26:14 -07:00
Max U
80fd876ed2 input plugin that reads files each interval 2018-06-21 11:26:14 -07:00
Greg
f9de896427 Update vendoring to dep from gdm (#4314) 2018-06-19 11:55:38 -07:00
Daniel Nelson
db78610ab8 Update changelog 2018-06-19 11:48:08 -07:00
maxunt
86e4cd0083 Add new measurement with results of pgrep lookup to procstat input (#4307) 2018-06-19 11:47:13 -07:00
Daniel Nelson
8b678b9041 Update changelog 2018-06-18 18:09:31 -07:00
Piotr Popieluch
a059689378 Add valuecounter aggregator plugin (#3523) 2018-06-18 18:06:11 -07:00
Daniel Nelson
3626a522e5 Update changelog 2018-06-18 15:40:00 -07:00
Daniel Nelson
e9d2955321 Update docker input documentation for container status 2018-06-18 15:38:21 -07:00
prashanthjbabu
f74503087c Add container status tag to docker input (#4259) 2018-06-18 15:33:14 -07:00
Daniel Nelson
cc63c25549 Drop CI support for Go 1.8 (#4309)
Go 1.8 is no longer a supported version and the circleci/golang images
has been removed.
2018-06-17 18:50:14 -07:00
Daniel Nelson
0b68ae09d7 Update changelog 2018-06-14 13:18:31 -07:00
maxunt
a852184496 Fix selection of tags under nested objects in the JSON parser (#4284) 2018-06-14 13:17:32 -07:00
Daniel Nelson
97cf5894bf Update changelog 2018-06-13 13:50:43 -07:00
Arkady Emelyanov
2d9f9e3f2d Add owner tag on partitions in burrow input (#4281) 2018-06-13 13:05:27 -07:00
Daniel Nelson
7557ad465b Use linux/unix name only in make install
closes: #4278
2018-06-12 18:37:50 -07:00
Vlasta Hajek
92baea99a4 Fix grammar issues in win_perf_counters readme 2018-06-12 16:54:48 -07:00
Daniel Nelson
5ff70b47a0 Fix typo 2018-06-12 16:50:14 -07:00
Daniel Nelson
72c4227883 Update changelog 2018-06-12 16:46:27 -07:00
Daniel Nelson
6502ec8f14 Treat sigterm as a clean shutdown signal (#4277) 2018-06-12 16:44:04 -07:00
Daniel Nelson
cfe32acfa3 Fix grammar in converter processor documentation 2018-06-12 16:12:08 -07:00
marcv81
da36658e82 Fixed typos in nvidia_smi plugin doc (#4261) 2018-06-12 14:28:56 -07:00
Daniel Nelson
0d3ce434ad Update changelog 2018-06-12 13:57:00 -07:00
Sambhav Kothari
35c200f78d Add support for solr 7 to the solr input (#4271) 2018-06-12 13:56:13 -07:00
Daniel Nelson
240c4a1baf Set 1.7.0 release date 2018-06-12 11:41:58 -07:00
Daniel Nelson
99acc68c25 Use nats-io/go-nats instead of nats-io/nats in tests 2018-06-11 16:13:59 -07:00
Daniel Nelson
93d0a9c544 Update changelog 2018-06-11 16:07:23 -07:00
marcv81
397a9b3fce Add power draw field to nvidia_smi plugin (#4262) 2018-06-11 16:06:26 -07:00
Daniel Nelson
33fdc2ef29 Use nats-io/go-nats instead of nats-io/nats 2018-06-11 15:24:45 -07:00
Daniel Nelson
7d10025d5d Update changelog 2018-06-11 14:55:12 -07:00
Pierre Tessier
5ea289dc9d Remove tags with empty values from Wavefront output (#4266) 2018-06-11 14:54:08 -07:00
Daniel Nelson
b30832dbb1 Reword converter description 2018-06-11 14:43:28 -07:00
Daniel Nelson
f4d16ae70d Update win_perf_counters README 2018-06-11 11:41:46 -07:00
Vlasta Hajek
c03a144640 Add option to enable wildcard expansion (#4265)
This is needed because wildcard expansion causes counters to be localized.
2018-06-11 11:10:53 -07:00
Vlasta Hajek
3112ea1d8a Fix panic with unicode counter names in win_perf_counters (#4255) 2018-06-08 12:41:21 -07:00
Daniel Nelson
465305a143 Update go-syslog version
Fix go-syslog overquota errors since latest version no longer uses LFS.
2018-06-08 12:22:49 -07:00
Daniel Nelson
ff6671f026 Update changelog 2018-06-07 12:38:17 -07:00
Daniel Nelson
0549d42bac Update tengine docs 2018-06-07 12:35:46 -07:00
Daniel Nelson
37a10db0bc Restore tengine input plugin (#4160)
This reverts commit 8826cdc423.
2018-06-07 12:35:02 -07:00
Daniel Nelson
661cdc4e81 Fix TLS and SSL config option parsing (#4247) 2018-06-06 18:29:59 -07:00
Daniel Nelson
312843cb0b Update changelog 2018-06-06 14:30:37 -07:00
Daniel Nelson
93269fa1c0 Use same flags for all bsd family ping varients (#4241) 2018-06-06 14:28:12 -07:00
Pierre Fersing
a34d7b0754 Ignore more boring filesystems from disk plugin (#4244) 2018-06-06 13:44:26 -07:00
Daniel Nelson
d4dbb9a2dd Update changelog 2018-06-05 17:14:29 -07:00
Leszek Charkiewicz
76547dbd4c Add SSL/TLS support to Redis input (#4236) 2018-06-05 17:12:30 -07:00
Piotr Popieluch
9a7b088839 Don't skip metrics during startup in aggregate phase (#4230) 2018-06-05 16:30:53 -07:00
Daniel Nelson
b8b139678e Set 1.6.4 release date 2018-06-05 12:11:15 -07:00
Daniel Nelson
71ba89c39b Update master version to 1.8 2018-06-05 11:46:55 -07:00
Daniel Nelson
e00d441056 Update sample config 2018-06-05 11:45:07 -07:00
Daniel Nelson
46edb6c96d Add go-syslog to dependencies licenses list 2018-06-05 11:40:03 -07:00
Daniel Nelson
943f51384e Update changelog 2018-06-04 18:35:47 -07:00
Daniel Nelson
230ee8a6f2 Revert "Update aerospike-client-go version to latest release (#4128)"
This reverts commit 1f29612918.
2018-06-04 18:23:51 -07:00
Daniel Nelson
ac5baaf4f8 Update changelog 2018-06-04 18:13:53 -07:00
Daniel Nelson
910a464248 Fix misnamed option in varnish sample config 2018-06-04 18:06:59 -07:00
Daniel Nelson
fe47a0ee63 Update changelog 2018-06-04 18:02:00 -07:00
Phil Preston
ee800e9765 Add counter fields to pf input (#4216) 2018-06-04 18:01:14 -07:00
Daniel Nelson
1335b269d4 Remove test for empty metrics list from file output 2018-06-04 17:58:55 -07:00
Mathur
7cc34787c2 Update burrow README.md (#4231) 2018-06-04 10:51:57 -07:00
Daniel Nelson
835f7c8434 Use random name for test sockets to avoid intermittent failure 2018-06-03 20:19:39 -07:00
Daniel Nelson
cf52e3a751 Fix incorrect option name in amqp sample configuration 2018-06-03 18:42:08 -07:00
Daniel Nelson
ddebe1aff6 Add option to disconnect after a message limit is reached in amqp output 2018-06-03 18:35:59 -07:00
Daniel Nelson
5a38c152b6 Use list of brokers in amqp output and amqp_consumer 2018-06-03 18:35:59 -07:00
Daniel Nelson
5e267c941d Allow configuration of amqp exchange type, durability, and arguments 2018-06-03 18:35:59 -07:00
Dark
19ec77fb32 Change config to match toml parsing rule. (#4225) 2018-06-03 18:31:47 -07:00
Daniel Nelson
a9eb31a80f Update changelog 2018-06-03 15:59:00 -07:00
Mike Gent
850eff5246 Add passive mode exchange declaration option to amqp consumer input (#3995) 2018-06-03 15:52:59 -07:00
Mike Gent
986186a440 Add static routing_key option to amqp output (#3994) 2018-06-03 15:52:00 -07:00
Daniel Nelson
414d7b9543 Update changelog 2018-06-01 10:51:23 -07:00
Thanabodee Charoenpiriyakij
aaae6fe324 Handle uint64 on cloudwatch output (#4219) 2018-06-01 10:47:40 -07:00
Daniel Nelson
12fffdd4aa Update changelog 2018-05-31 11:58:16 -07:00
Piotr Popieluch
2f9f5adc78 Print the enabled aggregator and processor plugins on startup (#4212) 2018-05-31 11:56:49 -07:00
Patrick Hemmer
0fd9c1b0ce Fix snmp overriding of auto-configured table fields (#4208)
Whenever the snmp plugin was configured with a table with automatic field
discovery, if one of those fields was explicitly overridden in the config and
the value of is_tag was changed, the field would be duplicated, once as a tag
& once as a field.

This change fixes the behavior so that if a field is explicitly configured,
automatic table field discovery doesn't touch it.
2018-05-29 19:03:37 -07:00
Daniel Nelson
bd95f42e14 Log if connection is closed on write error 2018-05-29 16:10:27 -07:00
Vlasta Hajek
121c72ee04 Fix struct alignment in win_perf_counters for 32-bit 386 arch (#4206) 2018-05-29 11:34:00 -07:00
Daniel Nelson
8b92ed8663 Update syslog docs and add to changelog and readme 2018-05-25 14:33:57 -07:00
Leonardo Di Donato
54c59f8688 Add syslog input plugin (#4181) 2018-05-25 11:40:12 -07:00
Daniel Nelson
70519e9a3a Update changelog 2018-05-24 18:34:08 -07:00
Vlasta Hajek
a4f511a64a Fix wildcard and other issues with win_perf_counters (#4189) 2018-05-24 18:25:06 -07:00
Daniel Nelson
d18aa450d8 Add jolokia2 example configs to list in readme 2018-05-24 12:02:20 -07:00
Daniel Nelson
d9dc4f8fba Update changelog 2018-05-24 11:59:15 -07:00
Pierre Tessier
c6d4bb1e8d Add additional examples for jolokia2 (#4191) 2018-05-24 11:58:43 -07:00
Daniel Nelson
cdf6bcc72a Add special syslog timestamp parser that uses current year (#4190)
Previously it was impossible to parse syslog timestamps without the date
being reported as year 0, due to the year not being specified
2018-05-23 16:37:14 -07:00
Daniel Nelson
1a73ff3aa6 Update changelog 2018-05-23 14:30:55 -07:00
Daniel Nelson
94715c5ae9 Add converter processor (#4178) 2018-05-23 14:29:57 -07:00
Daniel Nelson
2d0028ce1c Update changelog 2018-05-23 14:28:59 -07:00
Daniel Nelson
f7e0860771 Add support for TLS and username/password auth to aerospike input (#4183) 2018-05-23 14:28:17 -07:00
Daniel Nelson
ebb97c3ec0 Update changelog 2018-05-23 12:26:17 -07:00
Daniel Nelson
893bc2790a Update unbound README 2018-05-23 12:22:25 -07:00
Rodrigo Pereira
eb31ff3101 Add option to unbound module to use threads as tags (#3969) 2018-05-23 12:03:49 -07:00
Daniel Nelson
adf9568556 Revert "Add tengine input plugin (#4160)"
This reverts commit 697d8ceae5.
2018-05-23 11:58:22 -07:00
arterforyou
51d2a3ea39 Add tengine input plugin (#4160) 2018-05-23 11:19:50 -07:00
Daniel Nelson
cecf9393b4 Update changelog 2018-05-22 14:53:21 -07:00
Arkady Emelyanov
2f9b180bc2 Add burrow input plugin (#3489) 2018-05-22 14:10:41 -07:00
Daniel Nelson
9da088e23c Update changelog 2018-05-22 14:00:52 -07:00
Daniel Nelson
3924e6505a Add timeout option to sensors input (#4162) 2018-05-22 13:59:59 -07:00
Daniel Nelson
e32e39cf92 Update changelog 2018-05-21 16:40:30 -07:00
Daniel Nelson
3c79b77afc Update graphite output dataf format docs 2018-05-21 16:39:33 -07:00
Daniel Nelson
301c77605b Expose graphite_tag_support option in graphite output data format 2018-05-21 16:39:15 -07:00
Pavel Boev
a0c086300f Add support for Graphite 1.1.x tags (#4165) 2018-05-21 15:59:56 -07:00
Daniel Nelson
5ec3229149 Add regex processor to readme and changelog 2018-05-21 15:48:22 -07:00
Alexander Shepelin
9294e82009 Add regex processor plugin (#3839) 2018-05-21 15:46:10 -07:00
Daniel Nelson
1148fd3563 Set release date for 1.6.3 2018-05-21 12:43:52 -07:00
Daniel Nelson
daede2bf08 Add aurora input to changelog and readme 2018-05-21 12:01:58 -07:00
Daniel Nelson
636a4aadf6 Add aurora input plugin (#4158) 2018-05-21 11:59:39 -07:00
Daniel Nelson
dbc9d03de1 Update changelog 2018-05-21 10:43:57 -07:00
Arkady Emelyanov
95c5ba6e49 Fix waitgroup deadlock if url is incorrect in apache input (#4176) 2018-05-21 10:43:02 -07:00
Daniel Nelson
3f89f35f3f Update mqtt output docs and changelog 2018-05-18 19:03:00 -07:00
jvrahav
cbb4dacbc3 Add batch mode to mqtt output (#4094) 2018-05-18 18:55:02 -07:00
Daniel Nelson
680173cc4e Update changelog 2018-05-18 18:52:32 -07:00
Feliksas The Lion
ca6d5a6202 Added 3 important elasticsearch cluster health metrics (#4167) 2018-05-18 18:49:23 -07:00
Daniel Nelson
3cd21c8359 Use -parallel=false in gdm to avoid issues on appveyor 2018-05-17 15:19:17 -07:00
Daniel Nelson
791aa07cd8 Return to using latest image file on appveyor 2018-05-17 14:38:21 -07:00
Daniel Nelson
568c0b6b89 Update changelog 2018-05-17 14:25:35 -07:00
Leszek Charkiewicz
cefcd2f81c Add consul service tags to metric (#4155) 2018-05-17 14:24:51 -07:00
Daniel Nelson
d4e9892539 Update changelog and docs for application_insights plugin 2018-05-15 16:42:56 -07:00
Karol Zadora-Przylecki
a018916bf0 Add Microsoft Application Insights output plugin (#4010) 2018-05-15 16:05:59 -07:00
Daniel Nelson
6c6ab3ba27 Update changelog 2018-05-15 15:55:38 -07:00
Daniel Nelson
93d17ec95e Fix librato output support for uint and bool (#4151) 2018-05-15 15:54:20 -07:00
Daniel Nelson
bb6b7aa4af Add http output to changelog/readme 2018-05-14 17:19:49 -07:00
Daniel Nelson
797c62c790 Add method, basic auth, and tls support to http output 2018-05-14 17:18:07 -07:00
Dark
ca11b6328e Add HTTP output plugin (#2491) 2018-05-14 17:15:40 -07:00
Daniel Nelson
89cc8d2304 Update changelog 2018-05-14 11:01:24 -07:00
Daniel Nelson
2c29f8f84a Fix dropwizard parsing error for metrics that need escaped (#4142)
If the dropwizard parser cannot convert the metric name into a valid
line protocol series then we will accept the name as is.
2018-05-14 11:00:03 -07:00
Daniel Nelson
b13b8a04cf Update sample config 2018-05-11 18:18:53 -07:00
Daniel Nelson
890c0e708c Add jti_openconfig_telemetry to docs 2018-05-11 18:16:52 -07:00
Ajay Kumar Chintala
94568030e4 Add service input plugin for OpenConfig streaming telemetry (#2292) 2018-05-11 17:58:19 -07:00
Daniel Nelson
c127ba7fa3 Update changelog 2018-05-11 17:50:46 -07:00
Daniel Nelson
b703215bad Reuse transport on next interval in jolokia agent (#4137) 2018-05-11 17:48:27 -07:00
Daniel Nelson
59a2f2e7f4 Use internal.Duration for jolokia timeouts (#4136) 2018-05-11 17:47:38 -07:00
Daniel Nelson
c49d07c1ec Update changelog 2018-05-09 11:56:59 -07:00
Oleksandr Vilchynskyy
49d48016c4 Update aerospike-client-go version to latest release (#4128) 2018-05-09 11:54:00 -07:00
Daniel Nelson
999710c225 Update changelog 2018-05-08 16:40:42 -07:00
Daniel Nelson
80df42d87b Merge branch 'update_net_response' 2018-05-08 16:17:56 -07:00
Daniel Nelson
078eb47265 Use result and result_code in net_response 2018-05-08 16:17:22 -07:00
Randy Coburn
54a0532604 Add tag/integer pair for result to net_response (#3455) 2018-05-08 16:07:15 -07:00
Daniel Nelson
1d9488bd42 Skip fields that report "not supported" in nvidia-smi (#4123) 2018-05-08 13:11:12 -07:00
Daniel Nelson
581ec4d192 Update changelog 2018-05-08 12:12:03 -07:00
Daniel Nelson
532fd16c68 Add uint/bool support to cratedb output (#4117) 2018-05-08 12:10:25 -07:00
Daniel Nelson
b581805629 Add instructions on how to repair windows performance counters 2018-05-07 18:41:05 -07:00
Daniel Nelson
4c362f9b6c Update changelog 2018-05-07 18:19:55 -07:00
Daniel Nelson
734221ccea Don't report 0ms on timeout in dns_query (#4118) 2018-05-07 18:18:01 -07:00
Daniel Nelson
3f5892d91b Run apt-get update in release.sh 2018-05-07 15:12:01 -07:00
Daniel Nelson
4b53fee5ac Update changelog 2018-05-07 15:01:40 -07:00
Jake Champlin
d56db64dc6 Add cursor metrics to mongodb input (#4114) 2018-05-07 15:00:24 -07:00
Daniel Nelson
4bfc955f79 Remove combined issue template 2018-05-07 11:43:23 -07:00
Daniel Nelson
2ac89e728b Update issue templates (#4116) 2018-05-07 11:38:09 -07:00
Daniel Nelson
d04bac3a79 Update changelog 2018-05-04 18:42:36 -07:00
Germán Jaber
68743825b8 Add topk processor plugin (#4096) 2018-05-04 18:40:05 -07:00
Daniel Nelson
dfa23e7a76 Update changelog 2018-05-04 18:31:45 -07:00
Daniel Nelson
0ede70a2bd Add SerializeBatch method to the Serializer interface (#4107) 2018-05-04 18:27:31 -07:00
Daniel Nelson
55b4fcb40d Simplify testing with TLS (#4095) 2018-05-04 16:33:23 -07:00
Daniel Nelson
6e10a4ea88 Update kafka readme 2018-05-04 14:39:31 -07:00
Daniel Nelson
5494b9a65a Only lowercase mysql slave metrics with metric_version = 2 2018-05-04 14:31:16 -07:00
Nicolas Steinmetz
7e749f869e Fix name_override example in mysql rreadme (#4100) 2018-05-04 14:20:34 -07:00
Mauro Murari
cb8d5cc265 Fix platform not supported error in build.py (#4102) 2018-05-04 14:18:59 -07:00
Daniel Nelson
0527474bf6 Move usage string to internal to fix go run 2018-05-04 14:16:21 -07:00
Daniel Nelson
8ecf81378a Remove -i flag from make telegraf 2018-05-04 14:08:23 -07:00
Daniel Nelson
030eb95b71 Fix grammar 2018-05-03 17:26:01 -07:00
Daniel Nelson
e17a7378c2 Clarify max_retry option in kafka output 2018-05-03 17:22:49 -07:00
Daniel Nelson
7302ab2f14 Update gopsutil version 2018-05-03 12:32:53 -07:00
Daniel Nelson
1d910529c0 Update changelog 2018-05-03 11:41:18 -07:00
Daniel Meiners
7ba8ac7645 Ignore UTF8 BOM in JSON parser (#4099) 2018-05-03 11:40:28 -07:00
Daniel Nelson
a5586e48e2 Update telegraf.conf 2018-05-02 11:50:11 -07:00
Daniel Nelson
11c11da831 Remove dead link from logparser sample config 2018-05-02 11:49:51 -07:00
Daniel Nelson
0976aee411 Update changelog 2018-05-01 18:57:26 -07:00
Daniel Nelson
55818e791d Fix handling of uint64 in datadog output (#4091) 2018-05-01 18:56:39 -07:00
Daniel Nelson
916e9ab815 Update changelog, add mcrouter to README 2018-05-01 12:01:08 -07:00
Craig Thayer
9803d6291b Add input plugin for McRouter (#4077) 2018-05-01 11:58:15 -07:00
Daniel Nelson
cb0472c4d3 Update changelog 2018-04-30 19:21:12 -07:00
Mariusz Brzeski
a19eaf0b06 Support busybox ping in the ping input (#3877) 2018-04-30 19:20:13 -07:00
Daniel Nelson
fc0bba511d Update changelog 2018-04-30 17:51:04 -07:00
Daniel Nelson
95d2857ab8 Fix win_perf_counters to collect counters per instance (#4036) 2018-04-30 17:48:45 -07:00
Daniel Nelson
54f9e9e133 Document one field per line requirement in logparser 2018-04-30 16:15:51 -07:00
Grégoire Bellon-Gervais
d1982dc72f Metrics values have same names as old cassandra plugin (#4080) 2018-04-27 15:12:59 -07:00
Daniel Nelson
cfeefa44a2 Update changelog 2018-04-27 14:56:31 -07:00
Vincent Caron
3d979493ad Use same timestamp for fields in system input (#4078) 2018-04-27 14:55:10 -07:00
Daniel Nelson
95a8291722 Update changelog 2018-04-25 19:02:00 -07:00
Adrián López
aceba08d0f Add parameter to force the interval of gather for sysstat (#4068) 2018-04-25 18:59:42 -07:00
Daniel Nelson
65f1a3a0e3 Note options that only work with influxdb HTTP 2018-04-25 13:47:16 -07:00
Daniel Nelson
4ff3792a8c Update changelog 2018-04-25 13:47:16 -07:00
Jack Zampolin
2c4d6a867f Fix timeout parsing error in nvidia_smi (#4070) 2018-04-24 14:40:19 -07:00
Yosuke Hara
7f1e4c847f Add support for LeoFS v1.4 to leofs input (#4044) 2018-04-24 14:14:31 -07:00
Daniel Nelson
518f8dcef3 Fix nightly build 2018-04-24 13:42:42 -07:00
Daniel Nelson
116d479975 Fix links to jolokia example configs 2018-04-24 12:46:40 -07:00
Daniel Nelson
07590b69cd Update changelog 2018-04-23 15:15:08 -07:00
Daniel Nelson
114800a768 Add docker input server version (#4035) 2018-04-23 15:09:04 -07:00
Daniel Nelson
c277161858 Ignore writer error in file output (#4055) 2018-04-23 15:08:04 -07:00
Daniel Nelson
96120a6fc5 Deprecate the cassandra input plugin (#4050) 2018-04-23 15:06:26 -07:00
Daniel Nelson
f8063113ce Update changelog 2018-04-23 14:01:38 -07:00
Daniel Nelson
b9c5e88c22 Fix handling of floats with multiple leading zeroes (#4065) 2018-04-23 13:29:49 -07:00
Daniel Nelson
0bedc11d2d Return errors in mongodb SSL/TLS configuration (#4066) 2018-04-23 13:29:12 -07:00
Fred Cox
e610f2b02d Add server argument as first argument in unbound input (#4062) 2018-04-23 13:27:29 -07:00
Daniel Nelson
0b795d662b Update changelog 2018-04-20 18:49:55 -07:00
Daniel Nelson
d3d1bc72ca Fix duplicate tags when overriding tag (#4056) 2018-04-20 18:39:31 -07:00
Daniel Nelson
3440d70f5c Run 32-bit tests in CircleCI 2018-04-20 15:10:22 -07:00
Daniel Nelson
64072a9c8a Update changelog 2018-04-20 15:05:39 -07:00
Daniel Nelson
493ec3773b Fix ints being capped at 32-bits on 32-bit archs (#4054) 2018-04-20 14:56:28 -07:00
Leandro Piccilli
4df09fbd39 Update gopsutils to include fixes for #4037 and #3750 (#4045) 2018-04-20 14:32:19 -07:00
Daniel Nelson
4a08223b74 Update changelog 2018-04-19 16:58:59 -07:00
Daniel Nelson
18cfb3f295 Add only valid field types in cassandra input (#4048) 2018-04-19 16:56:46 -07:00
Daniel Nelson
07760b2758 Allow metrics to be unserializable in influx.Reader (#4047)
Metrics that are unserializable will be logged at debug level, but the
rest of the batch will be sent.  Unserializable metrics can occur during
normal operation such as if you remove all fields from a metric or the
metric cannot fit within the line size limit.
2018-04-19 16:24:31 -07:00
Daniel Nelson
6e0e6db1ee Update changelog 2018-04-18 16:57:15 -07:00
Daniel Nelson
04c72df264 Report available fields if utmp is unreadable (#4043) 2018-04-18 16:55:18 -07:00
Daniel Nelson
32eb442e5b Update github.com/gorilla/mux version (#4042) 2018-04-18 16:55:02 -07:00
Daniel Nelson
04d7e53700 Test using Go 1.8-1.10; official builds with 1.10 (#4041) 2018-04-18 16:14:06 -07:00
Daniel Nelson
11f5d478f6 Update changelog 2018-04-18 12:14:58 -07:00
Daniel Nelson
8d87f3933c Fix graphite serialization of unsigned ints (#4033) 2018-04-18 12:13:25 -07:00
Daniel Nelson
fc74c1afa5 Tidy up last change to socket listener/writer 2018-04-17 17:48:30 -07:00
Daniel Nelson
37474d28a5 Update changelog 2018-04-17 17:36:35 -07:00
Matt
18a51d54dc Add snmp input option to strip non fixed length index suffixes (#4025) 2018-04-17 17:34:39 -07:00
Daniel Nelson
3c9498aae2 Update changelog 2018-04-17 17:03:18 -07:00
Bob Shannon
86933ebb7f Add TLS support to socket_writer and socket_listener plugins (#4021) 2018-04-17 17:02:04 -07:00
Daniel Nelson
97c7ea5dca Update changelog 2018-04-17 15:45:49 -07:00
James Maidment
300568db72 Update mem values to gauge (#4034) 2018-04-17 15:43:10 -07:00
Daniel Nelson
4af88fe363 Update changelog adding nvidia_smi 2018-04-17 13:43:36 -07:00
Jack Zampolin
160c96ccfe Add nvidia_smi input to monitor nvidia GPUs (#4026) 2018-04-17 13:40:55 -07:00
Daniel Nelson
cd124bb2ee Fix docs about outputs and fieldpass/fielddrop
This has been allowed since 1.1.0
2018-04-17 13:35:27 -07:00
Daniel Nelson
13c2f68453 Remove RateLimiter tests due to race conditions
These tests are fundamentally racy, removing to improve reliability of
test cases.
2018-04-16 18:52:52 -07:00
Daniel Nelson
3175bddd6d Set 1.6 release date in changelog 2018-04-16 12:04:31 -07:00
Daniel Nelson
8c35451400 Fix HashID conflicts in pathological cases
Use "\n" as delimiter as it cannot occur in the series name.
2018-04-12 18:09:31 -07:00
Daniel Nelson
4d9e234175 Fix MQTT sample config 2018-04-12 14:34:55 -07:00
Daniel Nelson
ad7955bdb5 Update changelog 2018-04-11 16:52:40 -07:00
jvassev
af7382e224 Prevent loading config twice in K8S (#3999)
When config dir is mounted from configmap, filepath.Walk() finds the same
.conf file twice as 20-acme.conf is a link to ..data/20-acme.conf for example.

This patch skips all folder names starting with '..' which is pretty
uncommon and mainly used by Kubernetes mounts.
2018-04-11 16:51:19 -07:00
Daniel Nelson
5b8401fa37 Add --console and --service to usage message in Windows (#3993) 2018-04-11 16:44:55 -07:00
Daniel Nelson
dc9789d589 Update changelog 2018-04-10 18:18:27 -07:00
Daniel Nelson
e8a3178b4a Allow grok pattern to contain newlines (#4005) 2018-04-10 18:16:21 -07:00
Daniel Nelson
d4733f28bb Update changelog 2018-04-10 18:15:02 -07:00
Daniel Nelson
a805c424bf Typesetting changes to fibaro README 2018-04-10 18:14:27 -07:00
Pierrick Brossin
2e0da23c7b Add Fibaro input plugin (#2741) 2018-04-10 18:04:58 -07:00
Daniel Nelson
da6a299a22 Fix host ordering in mongodb unit tests 2018-04-10 17:24:40 -07:00
Daniel Nelson
6ef237437d Updated changelog 2018-04-10 17:11:25 -07:00
Jake Champlin
0fc8724f88 Add per-host shard metrics in mongodb input (#3819) 2018-04-10 17:10:29 -07:00
Boris Schrijver
d44b3f6839 Fix make test-ci run (#4002) 2018-04-10 15:35:58 -07:00
Daniel Nelson
6ff0bcd677 Document that InfluxDB input metrics vary with version 2018-04-09 19:30:18 -07:00
Daniel Nelson
45af6239e8 Update changelog 2018-04-09 17:06:34 -07:00
Daniel Nelson
906616d639 Rename repl_oplog_window_s to repl_oplog_window_sec
To match existing metric style.
2018-04-09 17:05:45 -07:00
Daniel Nelson
cad0cf4c78 Fix newline escaping in line protocol (#3992) 2018-04-09 15:29:52 -07:00
Daniel Nelson
d9230ac92d Update changelog 2018-04-06 16:45:07 -07:00
Daniel Nelson
997406ea2e Add details about MongoDB permissions 2018-04-06 16:43:03 -07:00
Daniel Nelson
ee94fd6a4e Modernize mongodb docs 2018-04-06 16:36:03 -07:00
Matvey Kruglov
9c2bd062a8 Add repl_oplog_window_s metric to mongodb input (#3964) 2018-04-06 16:34:47 -07:00
alekseyp
5d1585db8c Fix typo in phpfpm README (#3985) 2018-04-06 16:20:36 -07:00
Mark Wilkinson - m82labs
cbaf8481c9 Use explicit casts to avoid datatype issues (#3980) 2018-04-06 14:58:33 -07:00
Daniel Nelson
72e9f1d7d0 Update changelog 2018-04-06 13:19:02 -07:00
Daniel Nelson
8b269c4e87 Export all vars defined in /etc/default/telegraf (#3981)
This keeps the format of this file the same between systemd and
sysvinit.
2018-04-06 13:17:24 -07:00
Daniel Nelson
7bfcd87e83 Fix conversion of unsigned ints in prometheus output (#3978) 2018-04-05 16:38:41 -07:00
Daniel Nelson
cf49ed3b93 Update changelog 2018-04-05 11:19:01 -07:00
Daniel Nelson
a02af5f03a Update gosnmp revision (#3973) 2018-04-05 11:15:20 -07:00
Daniel Nelson
a2ba62d756 Log error if scheme is unsupported 2018-04-05 11:08:31 -07:00
Jeff Ashton
f70c3b3382 Fix https in InfluxDB output (#3976) 2018-04-05 10:50:32 -07:00
Daniel Nelson
559ad1fcdc Fix build.py next_version 2018-04-04 21:53:20 -07:00
Daniel Nelson
990343604a Use automatic extension naming when running go build 2018-04-04 19:00:28 -07:00
Daniel Nelson
23dd19a85f Enable ntpq tests on Windows (#3972) 2018-04-04 18:35:05 -07:00
Daniel Nelson
c367fb404d Add config-directory documentation for Windows service 2018-04-04 16:30:22 -07:00
Daniel Nelson
bf60b55bcb Don't print name of plugin or interval size during --test 2018-04-04 16:30:22 -07:00
Daniel Nelson
15dbcd4d97 Sort field names when running --test 2018-04-04 16:30:22 -07:00
Scott Anderson
f692f656fd Add details about why not all logstash patterns are supported (#3971) 2018-04-04 14:42:58 -07:00
Daniel Nelson
f38d7f1a5b Fix bug preventing database from being recreated (#3962) 2018-04-02 16:18:33 -07:00
Daniel Nelson
f70694ae4f Set next version to 1.7 on master 2018-04-02 14:44:09 -07:00
Daniel Nelson
3e184ff8ba Update sample telegraf.conf 2018-04-02 14:40:51 -07:00
Daniel Nelson
4a11957498 Update changelog 2018-04-02 14:34:25 -07:00
Daniel Nelson
52d9a98b09 Fix precision truncation when no timestamp included (#3961) 2018-04-02 14:32:33 -07:00
Daniel Nelson
45e77b3301 Update changelog 2018-04-02 14:31:36 -07:00
Daniel Nelson
e775c886b7 Fix go vet and use go test -race 2018-04-02 14:30:46 -07:00
Daniel Nelson
7079c6ee60 Fix parsing of dos line endings in smart input (#3960) 2018-04-02 13:55:10 -07:00
Daniel Nelson
fe173c18bd Update gopsutil version to v2.18.03 2018-04-02 13:54:16 -07:00
Daniel Nelson
d30faaf029 Add metric_version option to mysql input (#3954) 2018-04-02 13:10:43 -07:00
Daniel Nelson
d247425e03 Add mutex to influx parser 2018-04-02 12:52:23 -07:00
Daniel Nelson
717347fce2 Allow empty string field values 2018-03-30 16:57:35 -07:00
Mark Wilkinson - m82labs
952b6763ff Remove host tag from Database IO v2 Query (#3953) 2018-03-30 13:22:24 -07:00
Daniel Nelson
973ae07d2f Update changelog 2018-03-30 13:20:07 -07:00
Daniel Nelson
005d7823a5 Add filters for container state to docker input (#3950) 2018-03-30 13:17:48 -07:00
Daniel Nelson
0d5759daed Fix http_proxy variable name in http_response plugin 2018-03-30 11:11:12 -07:00
Daniel Nelson
666f757ae3 Move Handler interface into machine where it is used 2018-03-30 11:11:12 -07:00
Daniel Nelson
4218eb7367 Add MmapStats when using rocksdb storage engine (#3930) 2018-03-29 13:32:05 -07:00
Daniel Nelson
2fe2622327 Add influx uint support as a runtime option (#3948) 2018-03-29 13:31:43 -07:00
Daniel Nelson
8440887288 Update changelog 2018-03-29 12:44:33 -07:00
Daniel Nelson
da4fcccd8f Add TLS support to zookeeper input (#3949) 2018-03-29 12:42:25 -07:00
Matt
006ccbf05b Add line protocol uint64 support (#3946) 2018-03-28 16:43:25 -07:00
Daniel Nelson
741abbf590 Revert to 'f' formatting for floats in line protocol
Using 'g' with -1 precision switches over to scientific notation for too
small of numbers, and setting a larger precision results in larger than
desired representations.
2018-03-28 14:38:39 -07:00
rabhis
df0bded83e Reconnect AMQP consumer to broker (#3947) 2018-03-28 14:00:56 -07:00
Daniel Nelson
352e99c890 Update changelog 2018-03-27 18:38:39 -07:00
Daniel Nelson
937c7365af Add support for connecting to InfluxDB over a unix domain socket (#3942) 2018-03-27 18:36:08 -07:00
Daniel Nelson
bc9123848b Update changelog 2018-03-27 18:07:37 -07:00
Daniel Nelson
c695fdf77e Add support for skipping database creation (#3941) 2018-03-27 17:59:57 -07:00
Daniel Nelson
e0c3b7ff2b Update changelog 2018-03-27 17:44:13 -07:00
Daniel Nelson
222a68d72e Add new line protocol parser and serializer, influxdb output (#3924) 2018-03-27 17:30:51 -07:00
Daniel Nelson
720c27559c Update to latest fsnotify release 2018-03-27 17:21:00 -07:00
Daniel Nelson
efc2809dad Update to latest gopsutil release 2018-03-27 15:12:57 -07:00
Daniel Nelson
b187ffc55f Add documentation for existing TLS settings in consul input (#3931) 2018-03-26 19:22:17 -07:00
Daniel Nelson
9146bbd78a Update DC/OS guidance for cardinality 2018-03-26 19:20:27 -07:00
Daniel Nelson
b82381aefe Update passenger input documentation (#3938) 2018-03-26 19:11:08 -07:00
Daniel Nelson
47ecd6229d Update changelog 2018-03-23 19:17:03 -07:00
Daniel Nelson
338def3524 Fix DC/OS URL creation race (#3932) 2018-03-23 19:14:07 -07:00
Daniel Nelson
519e0274a0 Update changelog 2018-03-23 11:57:42 -07:00
Evan Kinney
798fea3109 Add HTTP basic auth support to the http_listener input (#3496) 2018-03-23 11:56:49 -07:00
Daniel Nelson
5389f40057 Update changelog 2018-03-23 11:54:06 -07:00
Daniel Nelson
c12c6b9d35 Add TLS support to kapacitor input (#3927) 2018-03-23 11:53:18 -07:00
Daniel Nelson
00cac268d2 Update changelog 2018-03-23 11:52:00 -07:00
Daniel Nelson
338cd0b757 Add tag for target url to phpfpm input (#3928) 2018-03-23 11:50:52 -07:00
Daniel Nelson
2750228aa9 Skip hanging test on darwin 2018-03-22 14:41:37 -07:00
Mark Wilkinson - m82labs
cce1601a54 Fix SQL Server 2008 compatibility (#3916)
* Fixed a bug in the performance counter query when run against SQL Server 2016 SP1-CU2. The performance counter DMV contains duplicate entries which are not handled by the query.

* Adding more stats related to workload groups.

* Adding new RG stats, removing "host" tag

* Removed workload group query

* Fixing some 2008 compat issues, removed the host field from the result set.

* Adding fixes for SQL Server 2008 compat around RG columns. Also converted perf counter query to support named instances.
2018-03-22 10:38:40 -07:00
Daniel Nelson
ed6e5b40c3 Update fsnotify path in license of dependencies 2018-03-21 23:06:14 -07:00
Daniel Nelson
c2f6bae271 Use copy of fsnotify from tail vendor 2018-03-21 10:23:28 -07:00
Pierre Tessier
8907db858e Remove noisy debug message from Wavefront output (#3899) 2018-03-19 11:04:35 -07:00
Daniel Nelson
239dddbe1a Fix breaker stat name in elasticsearch comment 2018-03-16 12:58:39 -07:00
Daniel Nelson
ec90824686 Set 1.5.3 release date 2018-03-14 16:32:18 -07:00
Daniel Nelson
f50935d930 Update changelog 2018-03-14 12:10:16 -07:00
Jonas Hahnfeld
cdcfff2fb6 Add output of stderr in case of error to exec log message (#3862)
If the command failed with a non-zero exit status there might be an error
message on stderr. Append the first line to the error message to ease the
search for its cause.
2018-03-14 12:09:01 -07:00
Daniel Nelson
db3373e51e Remove gdm -parallel false 2018-03-14 11:36:03 -07:00
Daniel Nelson
e0afe7e5cd Use previous image on appveyor 2018-03-14 11:02:33 -07:00
Daniel Nelson
6485291033 Update changelog 2018-03-13 21:09:54 -07:00
Chris Ottinger
25cc56d1e3 Added config flag to skip collection of network protocol metrics (#3880) 2018-03-13 21:08:21 -07:00
Daniel Nelson
7f50fa26e9 Disable parallel restore in gdm
May be aggrevating timeout issue on appveyor builds.
2018-03-13 20:44:51 -07:00
Daniel Nelson
ed56360db9 Use Go 1.9.4 for builds 2018-03-09 14:37:26 -08:00
Patrick Hemmer
48cbdbcdde Fix socket_listener setting ReadBufferSize on TCP sockets (#3874) 2018-03-09 09:44:35 -08:00
Daniel Nelson
6437e23dd4 Update changelog 2018-03-08 15:16:46 -08:00
Daniel Nelson
7bc438b6b0 Update http_response documentation 2018-03-08 15:13:26 -08:00
Germán Jaber
e9da4e529e Add result related tags and fields to http_response (#3814) 2018-03-08 14:55:59 -08:00
Margarita Bliznikova
fe78df3ba0 Fix intermittent TestTailBadLine failures (#3869) 2018-03-08 13:03:48 -08:00
Daniel Nelson
b8c4a6bb39 Update changelog 2018-03-08 10:54:03 -08:00
Dennis Schön
6a1f5767bb Fix uptime metric in passenger input plugin (#3871) 2018-03-08 10:52:58 -08:00
Daniel Nelson
314630271d Update changelog 2018-03-07 14:17:11 -08:00
dilshatm
cca7ef3dde Fix collation difference in sqlserver input (#3786) 2018-03-07 14:16:17 -08:00
Daniel Nelson
30d595fe0c Update example config 2018-03-07 13:49:04 -08:00
Daniel Nelson
d191ccdd3f Update docs for addition of override processor 2018-03-07 13:47:54 -08:00
Karsten Schnitter
82d224d9e2 Add override processor (#3773)
This plugin can perform the standard metric modifications using override semantics.
2018-03-07 13:27:43 -08:00
Daniel Nelson
64c1a7a860 Update changelog 2018-03-06 13:12:16 -08:00
Margarita Bliznikova
86f7767439 Add host to ping timeout log message (#3853) 2018-03-06 13:10:44 -08:00
Daniel Nelson
19e79b0bf8 Update changelog 2018-03-06 12:12:26 -08:00
Marcel
1a03db7119 Add ability to override proxy from environment in http response (#3626) 2018-03-06 12:11:38 -08:00
Demian Dekoninck
8fac10e3e5 Add link to ServiceInput interface in contributing guide (#3828) 2018-03-06 10:14:14 -08:00
Patrick O'Keeffe
a409c6c60a Improve fail2ban use_sudo docs (#3852) 2018-03-05 16:32:45 -08:00
Jiri Tyr
3532667bdc Fixing error in snmp example config (#3855) 2018-03-05 15:29:26 -08:00
Daniel Nelson
9114580102 Update changelog 2018-03-05 15:28:09 -08:00
Carl Pacey
54f4a5a502 Add sum stat to basicstats aggregator (#3797) 2018-03-05 15:26:31 -08:00
Daniel Nelson
491b27adbb Update changelog 2018-03-05 11:42:01 -08:00
Michael Boudreau
f7ffcfbba3 Add Solr 3 compatibility (#3799) 2018-03-05 11:41:10 -08:00
Daniel Nelson
5821f6f487 Update changelog 2018-02-25 01:06:44 -08:00
Daniel Nelson
3c179494ce Disable keepalive in mqtt output. (#3779)
This functionality currently has race conditions that can result in the
output deadlocking.
2018-02-25 01:04:04 -08:00
Daniel Nelson
7648a2a5c5 Update changelog 2018-02-20 17:33:25 -08:00
Pranay Kanwar
6dd39616de Convert boolean metric values to float in datadog output (#3804) 2018-02-20 17:32:18 -08:00
Daniel Nelson
3a4507866d Update changelog 2018-02-20 16:07:10 -08:00
Fred Cox
4a4557e371 Add server option to unbound plugin (#3713) 2018-02-20 16:06:13 -08:00
Daniel Nelson
20a5887a4a Update changelog 2018-02-20 13:56:44 -08:00
Jake Champlin
3e31ae4eca Add shard server stats to the mongodb input plugin (#3808) 2018-02-20 13:55:56 -08:00
Daniel Nelson
1fc8b2c71e Fix metric buffer limit in internal plugin after reload 2018-02-19 20:55:28 -08:00
Daniel Nelson
495d9700f6 Update changelog 2018-02-16 14:08:11 -08:00
S
17e1bff028 Add option to disable labels in prometheus output for string fields (#3765) 2018-02-16 14:07:26 -08:00
Dwight Spencer
c48b15e620 Add README.md for mqtt output (#3764) 2018-02-16 13:51:20 -08:00
Daniel Nelson
2ade95e6bb Method new dropwizard parser more prominently. 2018-02-15 20:33:57 -08:00
Daniel Nelson
0c161b70ca Update changelog 2018-02-15 20:11:52 -08:00
everpcpc
37ae4b00bf Support deadline in ping plugin (#3783) 2018-02-15 20:11:07 -08:00
Daniel Nelson
eceba38ec2 Update changelog 2018-02-15 20:06:01 -08:00
Jorge Canha
b8a4eae583 Add keep alive support to the TCP mode of statsd (#3781) 2018-02-15 20:04:49 -08:00
Daniel Nelson
f567be3d0f Update changelog 2018-02-15 19:09:50 -08:00
Daniel Nelson
dcb8417277 Use proxy from environment in http input 2018-02-15 19:06:22 -08:00
Daniel Nelson
c76ef34edc Deprecate httpjson input 2018-02-15 19:06:22 -08:00
Daniel Nelson
bc96f65881 Add configurable method to http input 2018-02-15 19:06:22 -08:00
Daniel Nelson
0d683f65a3 Check parser initialization earlier 2018-02-15 19:06:22 -08:00
Daniel Nelson
0851de714d Add url tag only if not already set 2018-02-15 19:06:20 -08:00
Daniel Nelson
027ff4e2dd Allow setting basic auth with empty username 2018-02-15 19:05:36 -08:00
Daniel Nelson
f664fef1f6 Update http input documentation 2018-02-15 19:05:36 -08:00
Nicolas Grange
f1861a08b9 Add http input plugin which supports any input data format (#3546) 2018-02-15 16:00:10 -08:00
Mark Wilkinson - m82labs
e14cf49f63 Added additional SQL Server performance counters (#3770)
* Included system databases in server properties, added backup/restore throughput counter, error counters, and user settable counters.

* Added more resource governor counters.

* Added Target and Total Server Memory counters.

* Removed the c_type tag from the performance counters query, added more documentation instead.
2018-02-09 12:45:22 -08:00
Daniel Nelson
2af3d8c15b Update changelog 2018-02-09 12:13:07 -08:00
efficks
d67e46bb4e Fix ping plugin not reporting zero durations (#3778) 2018-02-09 12:11:19 -08:00
Daniel Nelson
23e9306ce0 Adjust time of nightly build 2018-02-07 18:37:33 -08:00
Daniel Nelson
e5919c9c5f Update changelog 2018-02-07 18:37:32 -08:00
Daniel Nelson
2950a3bdeb Add TLS support to the mesos input plugin (#3769) 2018-02-07 18:36:38 -08:00
Daniel Nelson
d467a20b2c Install new requirements for fpm gem install 2018-02-06 11:33:18 -08:00
Daniel Nelson
02892404d0 Update changelog 2018-02-05 12:55:22 -08:00
Andy Cobaugh
1ab0153cb5 Add additional metrics and reverse metric names option to openldap (#3722) 2018-02-05 12:48:41 -08:00
Daniel Nelson
3e37f9f591 Update paho mqtt to latest release 2018-02-05 12:20:14 -08:00
Daniel Nelson
ebaf355ad9 Update changelog 2018-02-05 11:17:36 -08:00
Philipp Weber
0cb1b147e6 Remove userinfo from url tag in prometheus input (#3743) 2018-02-05 11:16:00 -08:00
Daniel Nelson
248ac6d92b Update sample config in contributing docs 2018-02-02 12:31:31 -08:00
Daniel Nelson
4c4733fdee Run nightly build sequentially 2018-02-02 12:31:31 -08:00
Daniel Nelson
0e5eb8a584 Fix Makefile on Windows and use in AppVeyor build (#3748) 2018-02-02 12:25:59 -08:00
Pierre Tessier
94e603b46a Fix example source_override values in wavefront output (#3744) 2018-02-02 10:51:00 -08:00
Daniel Nelson
ea83d46daf Update gitignore 2018-02-01 16:18:01 -08:00
Daniel Nelson
8c00010b86 Update changelog 2018-02-01 16:12:57 -08:00
Daniel Nelson
192af981c0 Improve procstat readme 2018-02-01 16:12:08 -08:00
Ben Aldrich
551c771bba Add native Go method for finding pids to procstat (#3559) 2018-02-01 15:14:27 -08:00
Paul Myjavec
9b4177d46c Use CircleCI 2.0 for builds (#3731) 2018-02-01 15:05:39 -08:00
Daniel Nelson
1164289619 Update changelog 2018-02-01 12:15:24 -08:00
Daniel Nelson
7162db68f4 Update sqlserver readme; enable query_version = 2 in default config
If unset, query_version is still treated as version 1 for compatibility.
2018-02-01 12:13:49 -08:00
Mark Wilkinson - m82labs
43c092d600 Add new sql server output data model (#3618) 2018-02-01 11:50:26 -08:00
John Eismeier
32a94f1c89 Fix spelling mistakes in zipkin and apache inputs (#3741) 2018-02-01 11:15:12 -08:00
Daniel Nelson
71c8bcd540 Update changelog 2018-02-01 11:13:14 -08:00
Philipp Weber
b39dd3a363 Add TLS and http basic_auth to prometheus_client output (#3719) 2018-02-01 11:12:16 -08:00
Daniel Nelson
cdbc77ed53 Update documetation style for smart input 2018-02-01 10:51:03 -08:00
Daniel Nelson
34fbdc9b7f Update changelog 2018-01-31 12:30:03 -08:00
Laurent Sesquès
e0bba3cdec Add Ipset input plugin (#3346) 2018-01-31 12:25:27 -08:00
Daniel Nelson
a20d167619 Update changelog 2018-01-30 18:08:31 -08:00
Daniel Nelson
b6912e84f4 Set path to / if HOST_MOUNT_PREFIX matches full path (#3736) 2018-01-30 18:06:53 -08:00
Daniel Nelson
5b1203ca34 Set release date for 1.5.2 2018-01-30 14:00:34 -08:00
Daniel Nelson
ebc59cf81d Update changelog 2018-01-30 14:00:33 -08:00
Daniel Nelson
5a4ceab81b Exclude master_replid fields from redis input (#3725) 2018-01-30 13:58:44 -08:00
Daniel Nelson
7ac39869ff Do not build nats input on freebsd
This plugin can work on freebsd, but will only build with cgo
enabled.  For now, disable this plugin to avoid this requirement.
2018-01-30 12:04:21 -08:00
Daniel Nelson
44ea2adfa9 Update changelog 2018-01-29 14:02:44 -08:00
Philipp Weber
90efb9c844 Add support for setting bsd source address to the ping input (#3726) 2018-01-29 14:01:00 -08:00
Daniel Nelson
a6e100fd54 Update changelog 2018-01-29 12:16:15 -08:00
Ildar Svetlov
7a44c309b7 Add ability to select which queues will be gathered to rabbitmq input (#3702) 2018-01-29 12:14:49 -08:00
Daniel Nelson
95c9b81397 Update nats readme 2018-01-26 17:15:02 -08:00
Daniel Nelson
22b487769f Add nats input to readme and changelog 2018-01-26 15:18:15 -08:00
Menno Finlay-Smits
1a16126a09 Add NATS Monitoring Input Plugin (#3674) 2018-01-26 15:14:54 -08:00
Daniel Nelson
49e2308e71 Update changelog 2018-01-26 15:03:19 -08:00
Ivan Lopez
782b1336e3 Add RabbitMQ cluster and running nodes count and running node status (#3703) 2018-01-26 15:00:58 -08:00
Daniel Nelson
ff63421d0e Return Accumulator interface from NewAccumulator 2018-01-26 11:40:34 -08:00
Peter
eca80961b8 Expand on tagvalue option in postgresql_extensible (#3720) 2018-01-25 15:38:11 -08:00
Daniel Nelson
7a197a3b2e Update changelog 2018-01-25 15:05:46 -08:00
Logan
1e5ee780e5 Allow running as console application on Windows (#2754) 2018-01-25 15:04:09 -08:00
Daniel Nelson
ed6c59bf97 Update changelog 2018-01-25 13:47:21 -08:00
Pierre Tessier
506cbf0d48 Add timeout to wavefront output write (#3711) 2018-01-25 13:44:25 -08:00
Daniel Nelson
54b8fbb38c Update changelog 2018-01-22 12:06:10 -08:00
Daniel Nelson
f3a57ea69e Remove graphite serializer replacement of dot with underscore in field key (#3705) 2018-01-22 12:04:16 -08:00
Daniel Nelson
35ec1ad178 Update changelog 2018-01-22 12:01:09 -08:00
Daniel Nelson
0f63b18c3b Avoid loop creation in second processor pass (#3656) 2018-01-22 11:16:07 -08:00
Daniel Nelson
04f5493ccc Limit wait time for writes in mqtt output (#3699) 2018-01-22 11:15:13 -08:00
Daniel Nelson
d1cbf4598c Make error loading tls config fatal in mysql input 2018-01-19 12:16:28 -08:00
Daniel Nelson
704c6c01eb Update changelog 2018-01-18 17:39:03 -08:00
Piotr Popieluch
3ea7c2d222 Align aggregator period with internal ticker to avoid skipping metrics (#3693)
By the time the aggregator.run() was called about 600ms already passed since setting now which was skewing up the aggregation intervals and skipping metrics.
2018-01-18 17:37:53 -08:00
Daniel Nelson
96a175a54c Update changelog 2018-01-17 15:28:35 -08:00
Piotr Popieluch
5f8d908f74 Reconnect before sending graphite metrics if disconnected (#3680) 2018-01-17 15:27:24 -08:00
Daniel Nelson
6e253a67a7 Update changelog 2018-01-17 15:14:07 -08:00
Daniel Nelson
7e597c8992 Add support for using globs in devices list of diskio input plugin (#3687) 2018-01-17 15:12:05 -08:00
Daniel Nelson
c3c954441e Use go-redis for the redis input (#3661) 2018-01-17 14:57:46 -08:00
Daniel Nelson
e333dcdfc1 Update changelog 2018-01-17 14:38:47 -08:00
Michael Boudreau
20f5741d44 Fix index out of bounds error in solr input plugin (#3683) 2018-01-17 14:37:34 -08:00
Daniel Nelson
4da881d646 Update changelog 2018-01-16 13:46:41 -08:00
Noah Crowley
b9ec94f181 Ignore empty lines in Graphite plaintext (#3684) 2018-01-16 13:44:56 -08:00
atzoum
72a235d9cf Add string and boolean support to dropwizard; fix escaping of tags/fields (#3664) 2018-01-16 12:12:14 -08:00
Daniel Nelson
26b34ef6ab Update changelog 2018-01-12 17:46:20 -08:00
Jacob McCann
286dcab4f9 Add container health metrics to docker input (#3666) 2018-01-12 17:43:51 -08:00
Daniel Nelson
4c9e9ac6f3 Skip intermittent test on CircleCI 2018-01-12 16:49:05 -08:00
Jacob McCann
e226aa49c9 Listen on localhost interface in tests (#3667) 2018-01-12 12:08:19 -08:00
Daniel Nelson
b7b55d1806 Set 1.5.1 release date 2018-01-10 13:27:58 -08:00
Daniel Nelson
651b576175 Skip CircleCI test of tail plugin due to intermittent deadlock 2018-01-09 15:01:20 -08:00
Daniel Nelson
80ac46a468 Pin crate docker image for testing 2018-01-09 13:10:40 -08:00
Daniel Nelson
696dcc06b0 Update release notes 2018-01-08 16:29:59 -08:00
Daniel Nelson
6097a2fb96 Update changelog 2018-01-08 15:21:20 -08:00
Daniel Nelson
a177486463 Update changelog 2018-01-08 15:18:31 -08:00
Daniel Nelson
a08c1be88f Add gjson and match to dependency license file 2018-01-08 15:15:23 -08:00
atzoum
05d691aa81 Add support for dropwizard input format (#2846) 2018-01-08 15:11:36 -08:00
Daniel Nelson
5207b32b25 Reorder httpjson config to keep variables out of toml table 2018-01-08 15:06:58 -08:00
Daniel Nelson
ce09aa35dd Update changelog 2018-01-05 16:04:12 -08:00
James
ab4f3176bb Use persistent connection to postgresql database (#2701) 2018-01-05 16:03:09 -08:00
Daniel Nelson
b9286bbe23 Fix link to cratedb readme 2018-01-05 16:01:06 -08:00
Daniel Nelson
d531f49f9d Update changelog 2018-01-05 16:00:44 -08:00
Daniel Nelson
aec09e711a Add user privilege level setting to IPMI sensors (#3643) 2018-01-05 15:59:25 -08:00
Daniel Nelson
500c3b68c9 Update changelog 2018-01-05 14:56:54 -08:00
gerardocorea92
3997abfd65 Add available_entropy field to kernel input plugin (#3524) 2018-01-05 14:54:29 -08:00
Daniel Nelson
279d38b79a Update release notes for 1.5 2018-01-04 18:05:21 -08:00
Daniel Nelson
b9fa390881 Add link to docs for configuring the openldap monitoring backend 2018-01-04 15:34:55 -08:00
Daniel Nelson
e563c97b5e Update changelog 2018-01-04 15:29:56 -08:00
Daniel Nelson
86701ad873 Escape environment variables during config toml parsing (#3637) 2018-01-04 15:28:00 -08:00
Daniel Nelson
91713ecfd6 Update changelog 2018-01-03 17:47:13 -08:00
Richard Elling
f13afea7d9 Add support for additional metrics on Linux in zfs input (#3565) 2018-01-03 17:45:48 -08:00
Daniel Nelson
1ea8d648dc Update changelog 2018-01-03 17:40:37 -08:00
kerams
bde4d004df Add support for exchanges to RabbitMQ input (#3619) 2018-01-03 17:38:11 -08:00
Daniel Nelson
57138e0668 Update changelog 2018-01-03 13:44:33 -08:00
kerams
19a5e0b433 Fix deliver_get field in rabbitmq input (#3633) 2018-01-03 13:43:17 -08:00
Daniel Nelson
646506b4eb Update changelog 2018-01-02 16:38:20 -08:00
Daniel Nelson
b657480a1b Add wired field to mem input (#3632) 2018-01-02 16:37:11 -08:00
Daniel Nelson
2f7906d5b9 Update changelog 2018-01-02 16:36:04 -08:00
Adam Johnson
371423cdf5 Reintroduce AWS credential check to cloudwatch output (#3587) 2018-01-02 16:33:15 -08:00
Daniel Nelson
dce9c335c5 Add information about how to set permissions for postfix input (#3594) 2018-01-02 14:09:14 -08:00
Daniel Nelson
5bb0d30cf5 Update changelog 2017-12-28 16:24:04 -08:00
Daniel Nelson
6b7eb19996 Set content-type charset in influxdb output and allow it be overridden (#3593) 2017-12-28 16:22:19 -08:00
Daniel Nelson
d61d406da5 Update changelog 2017-12-28 16:19:04 -08:00
Daniel Nelson
262bd1f326 Fix DC/OS login expiration time (#3625) 2017-12-28 16:17:40 -08:00
Daniel Nelson
0f6aadf253 Update changelog 2017-12-28 16:12:56 -08:00
Daniel Nelson
a38fc4270c Fix name error in jolokia2_agent sample config (#3624) 2017-12-28 16:10:00 -08:00
Daniel Nelson
6ff256b71a Fix grammar in haproxy docs 2017-12-21 18:46:03 -08:00
Daniel Nelson
4412f7522a Fix grammar in dcos readme 2017-12-21 16:26:50 -08:00
Daniel Nelson
08c0a8a7a8 Update changelog 2017-12-18 20:39:26 -08:00
kerams
dd8639366c Add messages_delivered_get to rabbitmq_overview (#3596) 2017-12-18 20:36:59 -08:00
Daniel Nelson
13fda9405d Update changelog 2017-12-14 16:59:58 -08:00
Jeff Ashton
e1bc191f9f Add control over which stats to gather in basicstats aggregator (#3580) 2017-12-14 16:56:10 -08:00
Daniel Nelson
dfb68c5810 Update bond input description 2017-12-14 16:03:29 -08:00
timhallinflux
df4ad82317 Improve bond plugin description (#3588) 2017-12-14 15:59:20 -08:00
Daniel Nelson
697b191807 Update haproxy documentation 2017-12-14 15:50:03 -08:00
Daniel Nelson
4901f321ee Set release date for 1.5.0 2017-12-14 10:58:33 -08:00
Daniel Nelson
bd3d6452f2 Remove AWS credential check from cloudwatch output (#3583)
This method is reported to not work with IAM Instance Profiles, and we
do not want to make any calls that would require additional permissions.
2017-12-13 17:51:55 -08:00
Brian Knight
956a2226b0 Update README with missing Redis measurements (#3582) 2017-12-13 11:24:48 -08:00
Antoine Augusti
5f6a657809 Fix refType documentation for GitHub webhooks (#3579) 2017-12-13 11:22:47 -08:00
Daniel Nelson
b1e02de879 Update changelog 2017-12-13 11:17:36 -08:00
Ildar Svetlov
856655f955 Don't add system input uptime_format as a counter (#3578) 2017-12-13 11:13:56 -08:00
Daniel Nelson
0111ee6b84 Update changelog 2017-12-13 10:58:50 -08:00
Logan
4411e3bcc8 Typo and sentence consistency (#3581) 2017-12-13 10:51:15 -08:00
Daniel Nelson
bcb66d759a Update changelog 2017-12-12 13:32:47 -08:00
Mike Danko
60c39ced69 Fix various mysql data type conversions (#3554) 2017-12-12 13:22:11 -08:00
Steve Banik
825d338386 Fixed typo in README.md (#3574) 2017-12-12 11:21:32 -08:00
Daniel Nelson
be1d4dc9c0 Update changelog 2017-12-11 18:01:50 -08:00
Daniel Nelson
2cf34dd875 Fix separation of multiple prometheus_client outputs (#3570) 2017-12-11 18:00:19 -08:00
Daniel Nelson
09fddafed6 Update exec plugin documentation 2017-12-11 17:58:06 -08:00
Daniel Nelson
c46863b87d Update changelog 2017-12-11 15:34:52 -08:00
Daniel Nelson
8761193dc7 Add idle state to processes test 2017-12-11 15:33:44 -08:00
Ted Zlatanov
6a5d8e31b3 Support I (idle) process state on procfs+Linux (#3530) 2017-12-11 15:31:52 -08:00
Daniel Nelson
297282cf78 Use auto type detection for scanned devices in smart input (#3561) 2017-12-08 18:03:12 -08:00
Daniel Nelson
ad70f169af Update changelog 2017-12-08 18:02:01 -08:00
Daniel Nelson
3e2eadaf5a Update sarama-cluster to latest release (#3560) 2017-12-08 17:59:06 -08:00
Daniel Nelson
afa6347631 Add benchmark test for single metric 2017-12-08 13:23:08 -08:00
Daniel Nelson
4452b0a03f Use device name instead of abs path for devices tag in smart input (#3550) 2017-12-08 13:22:41 -08:00
Daniel Nelson
899ad26373 Update changelog 2017-12-07 11:32:54 -08:00
Arkady Emelyanov
1326f61635 Add health status mapping from string to int in elasticsearch input (#3551) 2017-12-07 11:31:03 -08:00
Daniel Nelson
6265a3b06f Log connect error only in wavefront output (#3549) 2017-12-06 14:55:29 -08:00
Daniel Nelson
b5cd471c1d Fix formatting in changelog 2017-12-04 13:18:14 -08:00
Daniel Nelson
4eee2e772a Update next version number for dev builds 2017-12-01 11:52:46 -08:00
Daniel Nelson
589da9c481 Update example config 2017-12-01 11:49:07 -08:00
Daniel Nelson
407f0fe545 Update changelog 2017-12-01 11:42:00 -08:00
Daniel Nelson
0bdd2763b3 Update changelog 2017-12-01 11:23:18 -08:00
Daniel Nelson
7e91563647 Fix HOST_MOUNT_PREFIX in docker with disk input (#3529) 2017-12-01 11:21:39 -08:00
Daniel Nelson
b89db57629 Update changelog 2017-11-30 18:42:14 -08:00
Daniel Nelson
bca73f0923 Add option to amqp output to publish persistent messages (#3528) 2017-11-30 18:40:12 -08:00
Daniel Nelson
1dee532574 Add time import 2017-11-29 17:05:13 -08:00
Daniel Nelson
24828e1185 Update changelog 2017-11-29 16:36:00 -08:00
Nathan Ferch
d758008c1e Add input plugin for OpenBSD/FreeBSD pf (#3405) 2017-11-29 16:32:50 -08:00
Daniel Nelson
4337c98b41 Update changelog 2017-11-29 12:17:46 -08:00
Bob Shannon
dd8157ec68 Add support for glob patterns in net input plugin (#3140) 2017-11-29 12:16:34 -08:00
Daniel Nelson
ca76242e3e Update changelog 2017-11-29 12:10:56 -08:00
Daniel Nelson
e79639859b Update gopsutil version to include netstat fix (#3513) 2017-11-29 12:06:47 -08:00
Daniel Nelson
aaed325345 Add dcos plugin to changelog and readme 2017-11-29 11:54:33 -08:00
Daniel Nelson
2ce21bff24 Add input plugin for DC/OS (#3519) 2017-11-29 11:50:32 -08:00
Patrick Hemmer
b6e8214396 Fix postfix plugin age to use ctime, not mtime (#3525) 2017-11-29 11:25:31 -08:00
Daniel Nelson
eca20036b7 Update changelog 2017-11-29 10:52:59 -08:00
Daniel Nelson
9325f6e937 Add slab to mem plugin (#3518) 2017-11-29 10:49:45 -08:00
Daniel Nelson
62b7cb91dc Add bond input to readme and update changelog 2017-11-28 15:19:30 -08:00
Ildar Svetlov
2ccebf2371 Add bond input plugin (#3424) 2017-11-28 15:16:19 -08:00
Daniel Nelson
1ebdde9487 Update changelog 2017-11-28 10:10:36 -08:00
Patrick Hemmer
2ae35591a0 Add postfix input plugin (#2553) 2017-11-28 10:08:41 -08:00
Daniel Nelson
2681be7caa Update changelog 2017-11-27 17:06:50 -08:00
Lukasz Jagiello
9c45a2150d Use deb-systemd-invoke to restart service (#3506)
From man page:
```
deb-systemd-invoke is a Debian-specific helper script which asks
       /usr/sbin/policy-rc.d before performing a systemctl call.

deb-systemd-invoke is intended to be used from maintscripts to start
       systemd unit files. It is specifically NOT intended to be used
       interactively by users. Instead, users should run systemd and use
       systemctl, or not bother about the systemd enabled state in case they
       are not running systemd.
```

This PR replace regular `systemctl` with `deb-systemd-invoke`.
2017-11-27 17:05:32 -08:00
Lukasz Jagiello
b7a50b9414 Add shadow-utils dependency to rpm package (#3505) 2017-11-27 17:02:16 -08:00
Dylan Meissner
d9e2599de7 Jolokia2 handles unordered mbean object name properties (#3504) 2017-11-27 13:43:19 -08:00
Daniel Nelson
fb1edd5da3 Update changelog 2017-11-27 12:32:36 -08:00
Laurent Gosselin
5ae114bde7 Fix global variable collection when using interval_slow option in mysql input (#3500) 2017-11-27 12:29:51 -08:00
Daniel Nelson
e3812e9b97 Update changelog 2017-11-20 16:50:18 -08:00
Daniel Nelson
f9ded8fdd8 Fix snmp tools output parsing when they contain Windows eols (#3396) 2017-11-20 16:48:30 -08:00
Daniel Nelson
662e2df779 Update changelog 2017-11-20 16:27:18 -08:00
Leandro Piccilli
9e95d51648 Add support for tags in the index name in elasticsearch output (#3470) 2017-11-20 16:25:36 -08:00
Daniel Nelson
612d81d689 Update changelog 2017-11-20 14:40:45 -08:00
aromeyer
dd6fbb62b5 Add opensmtpd input plugin (#3449) 2017-11-20 14:39:13 -08:00
Daniel Nelson
ecc619f538 Update changelog 2017-11-20 14:37:09 -08:00
aromeyer
f89c774226 Add unbound input plugin (#3434) 2017-11-20 14:32:06 -08:00
Daniel Nelson
51ec55fb16 Update changelog 2017-11-20 14:23:16 -08:00
Leandro Piccilli
ca2c1e75c7 Add index by week number to Elasticsearch output (#3490) 2017-11-20 14:22:29 -08:00
Daniel Nelson
527892eef8 Update changelog 2017-11-20 14:20:05 -08:00
Chris Goller
113184ddae Use hexadecimal ids and lowercase names in zipkin input (#3488) 2017-11-20 14:19:32 -08:00
Daniel Nelson
f9b808572f Update changelog 2017-11-16 16:51:02 -08:00
erayaslan
650f44980b Use MAX() instead of SUM() for latency measurements in sqlserver (#3471) 2017-11-16 16:49:51 -08:00
Daniel Nelson
a8c6a31d1e Update changelog and add particle webhook to readme 2017-11-16 16:11:20 -08:00
David G. Simmons
1fd88ad0d8 Add Particle Webhook Plugin (#3477) 2017-11-16 16:03:19 -08:00
Pierre Fersing
f30716e2d0 Whitelist allowed char classes for graphite output (#3473) 2017-11-15 14:44:20 -08:00
Daniel Nelson
3405deebe3 Skip test requiring cratedb server in short test mode 2017-11-13 15:22:57 -08:00
Daniel Nelson
c4720e5d8b Update changelog 2017-11-13 15:09:05 -08:00
Daniel Nelson
e57cf8c9df Fix typo in error message 2017-11-13 15:07:54 -08:00
faye-sama
ccd21755d5 Fail metrics parsing on unescaped quotes (#3409)
Before this change Fields() method on a metric parsed from a line with
unescaped quotes could panic. This change makes such line unparseable.

Fixes #3326
2017-11-13 15:06:47 -08:00
Patrick Hemmer
176064cdf7 Add tests for procstat systemd & cgroup matching (#3469) 2017-11-13 14:45:31 -08:00
Daniel Nelson
23b0e1bc7a Update changelog 2017-11-13 11:02:01 -08:00
Patrick Hemmer
2323d9ae48 Add systemd unit pid and cgroup matching to procstat (#3459) 2017-11-13 10:59:27 -08:00
Daniel Nelson
084f7dc53b Update changelog 2017-11-10 14:39:11 -08:00
Trevor Pounds
742949594b Compile with Go 1.9.2 (#3458) 2017-11-10 14:39:00 -08:00
Daniel Nelson
9befd42ffe Update changelog 2017-11-09 14:05:36 -08:00
Felix Geisendörfer
e1005ebfab Add CrateDB output plugin (#3210) 2017-11-09 14:03:16 -08:00
Daniel Nelson
5234e4ff7b Set 1.4.4 release date 2017-11-08 15:21:20 -08:00
Daniel Nelson
4489813ade Update changelog 2017-11-07 16:48:44 -08:00
Lukasz Jagiello
89650bdf52 Add Solr input plugin (#2019) 2017-11-07 16:44:09 -08:00
Daniel Nelson
293ca69a47 Update changelog 2017-11-07 14:37:04 -08:00
Pierre Tessier
60e24fa3a7 Add modification_time field to filestat input plugin (#3305) 2017-11-07 14:32:48 -08:00
Daniel Nelson
80b60542fa Update contributing documentation 2017-11-07 13:59:06 -08:00
Daniel Nelson
d12cdb2185 Update changelog 2017-11-07 13:59:06 -08:00
Daniel Nelson
07a98ea5f7 Always ignore autofs filesystems in disk input (#3440) 2017-11-07 11:45:09 -08:00
Daniel Nelson
c8c02ff10d Update changelog 2017-11-07 11:43:15 -08:00
Daniel Nelson
b486950b8e Use current time if container read time is zero value (#3437) 2017-11-07 11:41:53 -08:00
Daniel Nelson
e08a0c9b5c Update changelog 2017-11-07 11:36:29 -08:00
Daniel Nelson
14bc81e10d Update gopsutil to v2.17.10 (#3441) 2017-11-07 11:26:11 -08:00
Daniel Nelson
bfd7c8504e Update changelog 2017-11-06 17:42:42 -08:00
Bob Shannon
180cd896fd Redact datadog API key in log output (#3420) 2017-11-06 17:41:14 -08:00
Daniel Nelson
b2e0677c09 Revert particle webhook changes on master 2017-11-06 10:47:10 -08:00
David G. Simmons
d2b34f3f51 Merge branch 'master' of https://github.com/influxdata/telegraf into dn-particle-plugin 2017-11-04 09:30:17 -04:00
David G. Simmons
29e48c082a Revert "Undo Revert "Revert changes since 9b0af4478""
This reverts commit 6e6aefe5da.
2017-11-04 09:19:37 -04:00
David G. Simmons
ad6946cd8c Undo Revert "Revert changes since 9b0af4478"
This reverts commit 2c31345c70.
2017-11-04 09:14:52 -04:00
David G. Simmons
4b6e258d4e Readme update 2017-11-04 08:43:13 -04:00
Daniel Nelson
f3d90bdac6 Update http_listener certs 2017-11-03 21:52:45 -07:00
Daniel Nelson
b573039af4 Revert changes since 9b0af4478 2017-11-03 21:10:56 -07:00
David G. Simmons
f26c640d06 Merge branch 'master' of https://github.com/influxdata/telegraf into dn-particle-plugin 2017-11-03 13:48:45 -04:00
David G. Simmons
0e0e91ef1e Revert "New Particle Plugin"
This reverts commit ba462f5c94.
2017-11-03 13:28:54 -04:00
David G. Simmons
1b7a1d9228 Revert "bug fixes and refactoring"
This reverts commit 86961cc814.
2017-11-03 13:28:35 -04:00
David G. Simmons
ae9c881d33 Revert "Update README.md"
This reverts commit 8ed00af10a.
2017-11-03 13:28:00 -04:00
David G. Simmons
9acf7f18ca Revert "Updated README.md"
This reverts commit a6ada03b91.
2017-11-03 13:27:06 -04:00
David G. Simmons
f6ea405c7a Revert "Small fixes"
This reverts commit a987118b01.
2017-11-03 13:27:06 -04:00
David G. Simmons
e1f478383e Revert "Updated Test JSON"
This reverts commit 92caf33fff.
2017-11-03 13:27:06 -04:00
David G. Simmons
479dead075 Revert "Updated Test JSON"
This reverts commit 92caf33fff.
2017-11-03 13:16:09 -04:00
David G. Simmons
43b8f19dce Merge branch 'master' into dn-particle-plugin 2017-11-03 12:13:49 -04:00
David G. Simmons
8f4db900f1 ignore mac-files 2017-11-03 12:07:03 -04:00
David G. Simmons
c37b951717 Updated Test JSON 2017-11-03 12:07:03 -04:00
David G. Simmons
5cacf2738c Small fixes
Hoping to pass CircleCI this time
2017-11-03 12:07:03 -04:00
David G. Simmons
43fa8d180a Updated README.md 2017-11-03 12:07:03 -04:00
David G. Simmons
875e8ef16d Update README.md 2017-11-03 12:07:03 -04:00
David Norton
d2e0794815 bug fixes and refactoring 2017-11-03 12:07:03 -04:00
David G. Simmons
8e70b56ded New Particle Plugin 2017-11-03 12:07:03 -04:00
David G. Simmons
f5f8d5192a Updated Test JSON 2017-11-02 17:21:50 -04:00
David G. Simmons
f73048da4e Fixed Readme 2017-11-02 17:19:37 -04:00
David G. Simmons
c3a277999a test son update 2017-11-02 14:19:01 -04:00
Daniel Nelson
c934f36c1c Remove incorrect comment about linker options 2017-11-01 18:17:51 -07:00
Daniel Nelson
43ac7b6e17 Add teamspeak to readme and update changelog 2017-11-01 13:30:43 -07:00
Patric Kanngießer
deed04c2f7 Add Teamspeak 3 input plugin (#3315) 2017-11-01 13:27:59 -07:00
Maximilien Richer
c569863119 Fix typos in comments (#3415) 2017-10-31 17:00:06 -07:00
Maximilien Richer
8bd21bb537 Add config to input-varnish README (#3414) 2017-10-31 16:58:45 -07:00
Daniel Nelson
c849d88253 Clarify what it means to filter metrics from processors 2017-10-30 16:32:39 -07:00
Daniel Nelson
d7857eea1a Update changelog 2017-10-30 15:35:34 -07:00
Daniel Nelson
97a1e4e706 Use explicit schemas in mqtt_consumer input (#3401) 2017-10-30 15:33:20 -07:00
Daniel Nelson
ed52baf5dd Update changelog 2017-10-30 13:53:45 -07:00
Aditya C S
78df21d6a2 Add support for SSL settings to ElasticSearch output plugin (#3406) 2017-10-30 13:52:40 -07:00
Aditya C S
f205c1b5e1 Update docker plugin README (#3404) 2017-10-30 12:26:39 -07:00
Daniel Nelson
8d8acb0f86 Update changelog 2017-10-27 11:55:17 -07:00
Maximilien Richer
626ff99b6e Add instance name option to varnish plugin (#3398)
This change add a new configuration option to allow probing of
namespaced varnish instances, usually reached using the '-n' switch on
the varnish cli.
2017-10-27 11:53:59 -07:00
Daniel Nelson
b78b8f2b50 Update changelog 2017-10-26 13:37:54 -07:00
Vladimir S
ba551c4bb0 Perform DNS lookup before ping (#3385) 2017-10-26 13:35:37 -07:00
Daniel Nelson
957740f64f Update changelog 2017-10-25 15:29:56 -07:00
Daniel Nelson
ccea33ff28 Gather concurrently from snmp agents (#3365) 2017-10-25 15:28:55 -07:00
Daniel Nelson
db8b7e2e17 Set release date for 1.4.3 2017-10-25 14:15:10 -07:00
Daniel Nelson
e29aa45091 Update changelog 2017-10-24 16:31:22 -07:00
Jeremy Doupe
43d69d805d Add history and summary types to telegraf and prometheus plugins (#3337) 2017-10-24 16:28:52 -07:00
Daniel Nelson
76fbe598a7 Update changelog 2017-10-24 16:25:49 -07:00
Daniel Nelson
71480f8cee Use golang.org/x/sys/unix instead of syscall in diskio (#3384) 2017-10-24 16:22:31 -07:00
Daniel Nelson
db9c0643de Update changelog 2017-10-24 15:46:47 -07:00
Daniel Nelson
e19692dd60 If the connector name cannot be unquoted, use the raw value (#3371) 2017-10-24 15:36:23 -07:00
Daniel Nelson
67fbc67906 Update changelog 2017-10-23 12:36:31 -07:00
Sergei Smolianinov
b4a0edf5ba Fix ACL token usage in consul input plugin (#3376) 2017-10-23 12:31:27 -07:00
Daniel Nelson
db5769136c Update changelog 2017-10-19 17:06:14 -07:00
Daniel Nelson
bb6d50f011 Add support for decimal timestamps to ts-epoch modifier (#3358) 2017-10-19 16:36:32 -07:00
Daniel Nelson
2ad9183e47 Update changelog 2017-10-19 16:27:29 -07:00
Daniel Nelson
69591e1fab Remove warning when JSON contains null value (#3359) 2017-10-19 16:25:58 -07:00
Mamat Rahmat
46d489c632 Fix small typo in documentation (#3364) 2017-10-19 14:47:40 -07:00
Daniel Nelson
6c587849ce Update changelog 2017-10-18 17:43:01 -07:00
Daniel Nelson
7ef88c4bf9 Use labels in prometheus output for string fields (#3350) 2017-10-18 17:42:30 -07:00
Daniel Nelson
a6de4577b0 Update changelog 2017-10-18 14:53:34 -07:00
Daniel Nelson
01cfe1d505 Fix prometheus passthrough for existing value types (#3351) 2017-10-18 14:51:08 -07:00
Daniel Nelson
66376d54a2 Update changelog 2017-10-18 13:57:58 -07:00
clheikes
0fe8ed9ce3 Fix TELEGRAF_OPTS expansion in systemd service unit (#3354) 2017-10-18 13:57:32 -07:00
Daniel Nelson
d68302b153 Update changelog 2017-10-18 12:47:58 -07:00
Daniel Nelson
45b92ded5f Update changelog 2017-10-18 12:25:46 -07:00
Ayrdrie
ca3c03f710 Fix mongodb input panic when restarting mongodb (#3355) 2017-10-18 12:24:30 -07:00
Daniel Nelson
fc9cbd3906 Add release date info to FAQ 2017-10-17 10:43:53 -07:00
Daniel Nelson
057b1557bc Update changelog 2017-10-16 14:26:12 -07:00
Pierre Fersing
7efce41d39 Fix CPU system plugin gets stuck after system suspend (#3342) 2017-10-16 14:25:00 -07:00
Daniel Nelson
d739aa448d Update changelog 2017-10-16 14:19:16 -07:00
Craig Wickesser
cc47382da0 Add UDP IPv6 support to statsd input (#3344) 2017-10-16 14:18:36 -07:00
Daniel Nelson
b73f493f98 Update changelog 2017-10-16 11:27:00 -07:00
Daniel Nelson
7ff6cdd017 Fix case sensitivity issue in sqlserver query (#3336) 2017-10-16 11:26:16 -07:00
Daniel Nelson
c8a5598b59 Fix typo in ipmi_sensor readme 2017-10-16 11:10:06 -07:00
Daniel Nelson
d6ad16f431 Add ipmi_sensor permission documentation 2017-10-13 13:53:18 -07:00
Daniel Nelson
fc1309c8fb Remove timing sensitive riemann test 2017-10-13 11:30:30 -07:00
Daniel Nelson
f8546397d1 Update changelog 2017-10-13 11:12:27 -07:00
Adam Johnson
52a1f98695 Fix cloudwatch output requires unneeded permissions (#3335) 2017-10-13 11:04:40 -07:00
Daniel Nelson
86dd509ab6 Update changelog 2017-10-12 17:26:58 -07:00
Windkit Li
6a433f97e4 Fix snmpwalk address format in leofs input (#3328) 2017-10-12 17:26:14 -07:00
Daniel Nelson
943296a31d Update changelog 2017-10-12 15:52:01 -07:00
Daniel Nelson
4729c5697a Fix container name filters in docker input (#3331) 2017-10-12 15:50:09 -07:00
Patrick Hemmer
43a2b49ad1 Fix documented equation for diskio average queue depth (#3334) 2017-10-12 15:08:51 -07:00
Daniel Nelson
d3264d9746 Remove suggested plugins from readme.
These are confusing since we don't support all of the examples.
2017-10-11 12:56:33 -07:00
Daniel Nelson
b2365a7ebf Set 1.4.2 release date 2017-10-10 13:29:31 -07:00
Daniel Nelson
be54556980 Update readme and changelog for basicstats aggregator 2017-10-10 12:04:41 -07:00
Toni Moreno
2901652bf9 Add new basicstats aggregator (#2167) 2017-10-10 12:02:01 -07:00
Pierre Tessier
81acd6e8a6 Fix link for wavefront plugin in changelog (#3317) 2017-10-10 11:21:46 -07:00
Daniel Nelson
c49eda6810 Use 5 second timeout overhead when waiting for ping to complete 2017-10-09 15:09:07 -07:00
Daniel Nelson
6ed5dc444d Add HasPoint method to testutil.Accumulator 2017-10-09 15:02:57 -07:00
Daniel Nelson
abfeafd248 Document /etc/default/telegraf file 2017-10-06 16:57:57 -07:00
Daniel Nelson
6618850cd7 Update changelog 2017-10-06 16:17:09 -07:00
Christian Meilke
4783b872ea Add ability to limit node stats in elasticsearch input (#3304) 2017-10-06 16:16:32 -07:00
Daniel Nelson
1cb21d2bda Use golang 1.9.1 2017-10-05 16:19:53 -07:00
Daniel Nelson
5d4507e1f4 Update changelog 2017-10-05 16:15:43 -07:00
Daniel Nelson
bb448d5af7 Use chunked transfer encoding in InfluxDB output (#3307) 2017-10-05 16:14:21 -07:00
Daniel Nelson
852a419fa5 Update changelog 2017-10-05 16:05:51 -07:00
Daniel Nelson
e7bbb66957 Fix panic in cpu input if number of cpus changes (#3306) 2017-10-05 16:02:21 -07:00
Daniel Nelson
df4c24a01e Release buffer back to pool earlier 2017-10-05 12:12:14 -07:00
Daniel Nelson
fe40bcb92e Update changelog 2017-10-04 15:30:11 -07:00
Christian Meilke
4acee14f8a Add cluster health level configuration to elasticsearch input (#3269) 2017-10-04 15:29:32 -07:00
Daniel Nelson
ed9c2ccfa2 Add smart to changelog and readme 2017-10-04 15:18:15 -07:00
Rickard von Essen
3be58c6571 Add smart input plugin for collecting S.M.A.R.T. data (#2449) 2017-10-04 15:15:58 -07:00
Daniel Nelson
6b1d3edf6e Update changelog 2017-10-03 15:25:19 -07:00
Daniel Nelson
bfd3a3ac13 Add support for proxy environment variables to http_response (#3302) 2017-10-03 15:22:57 -07:00
Daniel Nelson
25fb040f3e Update changelog 2017-10-03 14:37:02 -07:00
Aditya C S
308f4af40f Collect Docker Swarm service metrics in docker input plugin (#3141) 2017-10-03 14:36:26 -07:00
Daniel Nelson
9257f3b148 Skip invalid urls in nginx input 2017-10-03 10:54:31 -07:00
David Norton
68cd7a45ef bug fixes and refactoring 2017-10-03 09:07:15 -04:00
Pierre Tessier
ea11fae57b Added newline to each metric line in wavefront output (#3290) 2017-10-02 17:42:21 -07:00
Daniel Nelson
2a840cf3de Update changelog 2017-10-02 17:39:32 -07:00
Jimena Cabrera Notari
5ca10ac5fe Add extra wired tiger cache metrics to mongodb input (#3281) 2017-10-02 17:38:51 -07:00
Daniel Nelson
af36d5a7e7 Update changelog 2017-10-02 17:16:38 -07:00
Daniel Nelson
fba3d66681 Fix case sensitivity error in sqlserver input (#3287) 2017-10-02 17:15:34 -07:00
Daniel Nelson
9b7fe6ce99 Regenerate TLS certs due to expiration 2017-10-02 15:44:55 -07:00
David G. Simmons
8b67272c7d New Particle Plugin 2017-10-02 16:50:23 -04:00
Daniel Nelson
63e898c058 Fix mqtt_consumer connection_timeout test 2017-10-02 12:28:31 -07:00
Daniel Nelson
fcfa7ed7bf Add Wavefront output to changelog and readme 2017-09-29 16:15:48 -07:00
Pierre Tessier
8355f941f9 Add Wavefront output plugin (#3160) 2017-09-29 16:13:08 -07:00
Daniel Nelson
fbb1cd0903 Update example config 2017-09-29 16:09:31 -07:00
Daniel Nelson
e6912e1cd5 Add deprecation notice to jolokia sample config 2017-09-29 16:08:31 -07:00
Daniel Nelson
1b1840e939 Update changelog 2017-09-29 15:59:56 -07:00
Daniel Nelson
f7f699995a Fix format of connection_timeout in mqtt_consumer (#3286) 2017-09-29 15:58:38 -07:00
Daniel Nelson
b0b1e43f92 Document how to exclude kubernetes annotation 2017-09-29 14:07:19 -07:00
Daniel Nelson
742eafce33 Update changelog 2017-09-29 11:50:15 -07:00
François de Metz
945eabc273 Add support for the rollbar occurrence webhook event. (#1692) 2017-09-29 11:49:22 -07:00
David G. Simmons
7dfdc9304e Revert "New Particle.io Plugin for Telegraf"
This reverts commit c3b11f9cfb.
Accidentally pushed to master, instead of my fork. Backing it out.
2017-09-29 12:57:13 -04:00
David G. Simmons
520929a015 New Particle.io Plugin for Telegraf
Only the tests need to be fixed.
2017-09-29 12:45:06 -04:00
Daniel Nelson
5b1fada643 Update changelog 2017-09-27 11:38:43 -07:00
Daniel Nelson
d0f6b4d6b2 Use underscore as default opentsdb seperator
Preserves backwards compatibility
2017-09-27 11:36:41 -07:00
owlet123
f634414935 Add configurable separator for metrics and fields in opentsdb output (#3106) 2017-09-27 11:29:40 -07:00
Daniel Nelson
084f73c0ea Add deprecation notice to jolokia plugin 2017-09-27 10:52:10 -07:00
Daniel Nelson
82a65fd70e Update changelog and readme for jolokia2 plugin 2017-09-26 17:42:38 -07:00
Dylan Meissner
be8dd9e384 Add redesigned Jolokia input plugin (#2278) 2017-09-26 17:34:46 -07:00
Daniel Nelson
6addc388d5 Update changelog 2017-09-26 16:03:04 -07:00
Daniel Nelson
596c0f97d7 Allow JSON data format to contain zero metrics (#3268) 2017-09-26 15:58:33 -07:00
Daniel Nelson
b167667432 Update changelog 2017-09-26 15:38:22 -07:00
Daniel Nelson
5a66090264 Fix parsing of JSON with a UTF8 BOM in httpjson (#3267) 2017-09-26 15:36:00 -07:00
Daniel Nelson
9938d5f2e3 Update changelog 2017-09-26 15:28:07 -07:00
Daniel Nelson
ba270887fd Fix dmcache tests with 32bit int 2017-09-26 15:25:57 -07:00
Daniel Nelson
0d966ed5f7 Fix cgroup tests with 32bit int 2017-09-26 15:25:57 -07:00
Daniel Nelson
1861f0f752 Fix ceph tests with 32bit int 2017-09-26 15:25:57 -07:00
Daniel Nelson
2bd16ab923 Fix nginx_plus tests with 32bit int 2017-09-26 15:25:57 -07:00
Daniel Nelson
3398c43c75 Allow 64bit integers in kernel_vmstat 2017-09-26 15:25:57 -07:00
Daniel Nelson
ffb04761d2 Set 1.4.1 release date in changelog 2017-09-26 14:19:02 -07:00
Daniel Nelson
3d0492b8b0 Update changelog 2017-09-25 16:34:04 -07:00
Lukasz Jagiello
77c7b6bee5 Add support for NSQLookupd to nsq_consumer (#3215) 2017-09-25 16:33:05 -07:00
James
4ccef6f99e Add additional numeric type handling tests for postgresql_extensible (#3066) 2017-09-25 10:58:10 -07:00
Agniva De Sarker
c50e66e18f Improve statsd plugin perf by using a byte buffer pool (#3254) 2017-09-25 10:55:02 -07:00
Daniel Nelson
48edce0170 Remove nightly versioning scheme 2017-09-22 18:07:08 -07:00
Daniel Nelson
66b23ab505 Remove out of date Vagrantfile 2017-09-22 17:35:58 -07:00
Daniel Nelson
7b41da4ddd Fix build versioning; add dev.docker file 2017-09-22 17:35:58 -07:00
Daniel Nelson
db787f9a83 Fix golang version 2017-09-22 17:35:58 -07:00
Daniel Nelson
e4f429572d Fix unittest for golang 1.9 2017-09-22 17:35:58 -07:00
Christian Meilke
b63f2a1acf Tag original URL for k8s services in prometheus input (#3257) 2017-09-22 17:26:19 -07:00
Daniel Nelson
53522f8eb2 Update changelog 2017-09-22 11:46:47 -07:00
Daniel Nelson
82f760e18d Unlock Statsd when stopping to prevent deadlock (#3258) 2017-09-22 11:45:45 -07:00
Daniel Nelson
4a406780c6 Add nginx_plus to changelog and readme 2017-09-19 11:49:55 -07:00
Patrick O'Brien
d3cb050d8f Add new nginx_plus input plugin (#3214) 2017-09-19 11:46:01 -07:00
Daniel Nelson
c0fa37bb03 Update changelog 2017-09-19 11:27:57 -07:00
Paulo Cabido
43e2400612 Add configurable metrics endpoint to prometheus output (#3245) 2017-09-19 11:27:11 -07:00
Daniel Nelson
cf69a97ae0 Build with go 1.9 on circleci 2017-09-18 16:30:09 -07:00
Daniel Nelson
bf3fdbd841 Update prometheus input documentation 2017-09-18 16:21:45 -07:00
Daniel Nelson
5eff12a840 Update changelog 2017-09-18 15:07:18 -07:00
Christian Meilke
af7710dcb8 Add support for k8s service DNS discovery to prometheus input (#3236) 2017-09-18 15:06:11 -07:00
Daniel Nelson
c47cc28950 Update changelog 2017-09-18 14:25:17 -07:00
Daniel Nelson
126bd1f38f Fix arm64 packages contain 32-bit executable (#3246) 2017-09-18 14:22:54 -07:00
Patrick Hemmer
19084f8fb6 Add process resource limits to procstat input (#3231) 2017-09-15 11:16:44 -07:00
Daniel Nelson
c2383e9d78 Update input plugin example readme. 2017-09-14 15:50:55 -07:00
Daniel Nelson
dc6fbed954 Update changelog 2017-09-14 15:28:47 -07:00
Trevor Pounds
3468ffc40f Fix panic in statsd p100 calculation (#3230) 2017-09-14 15:27:42 -07:00
Daniel Nelson
279fa20b4a Update changelog 2017-09-14 15:22:46 -07:00
Trevor Pounds
3073221f7d Add support for timing sums in statsd input (#3234) 2017-09-14 15:21:54 -07:00
Daniel Nelson
f2294c7f2c Update changelog 2017-09-14 15:05:03 -07:00
Mark Wilkinson - m82labs
53cb9ffb31 Fix duplicate keys in perf counters sqlserver query (#3175) 2017-09-14 15:04:13 -07:00
Daniel Nelson
5fd6b64d10 Update changelog 2017-09-14 15:00:55 -07:00
Daniel Nelson
9ce131dfc0 Fix skipped line with empty target in iptables (#3235) 2017-09-14 14:59:28 -07:00
Daniel Nelson
dc12ac391b Update changelog 2017-09-14 13:06:58 -07:00
Trevor Pounds
ef7ce31f9c Fix counter and gauge metric types. (#3232) 2017-09-14 13:05:37 -07:00
Daniel Nelson
d557cbd103 Update changelog 2017-09-13 17:31:39 -07:00
Daniel Nelson
8f9ede301d Whitelist allowed char classes for opentsdb output. (#3227) 2017-09-13 17:30:52 -07:00
Daniel Nelson
3727d2d470 Update changelog 2017-09-13 17:28:33 -07:00
Dimitris Rozakis
9cb7b2c249 Respect path prefix in influx output uri (#3224) 2017-09-13 17:27:01 -07:00
Daniel Nelson
f87f44832b Fix fluentd test 2017-09-12 17:57:55 -07:00
Daniel Nelson
0a6aa238b9 Update changelog 2017-09-12 17:27:50 -07:00
Daniel Nelson
1e16cb463a Remove unneeded error check 2017-09-12 17:24:57 -07:00
Adrián López
2dc18135cf Add timeout option for kubernetes (#3211) 2017-09-12 17:22:15 -07:00
Daniel Nelson
6aa88c7113 Update changelog 2017-09-12 17:17:41 -07:00
Daniel Nelson
aa5c5dfd87 Fix optional field types in fluentd input 2017-09-12 17:15:19 -07:00
Daniel Nelson
a33a8fdc31 Update changelog 2017-09-11 12:27:39 -07:00
DanKans
f5d400a1ce Fix MQTT input exits if Broker is not available on startup (#3202) 2017-09-11 12:24:51 -07:00
Daniel Nelson
8a82073891 Update changelog 2017-09-11 11:57:18 -07:00
Daniel Nelson
b06e2a0c3d Add polling method to logparser and tail inputs (#3213) 2017-09-11 11:56:04 -07:00
Daniel Nelson
cb40972635 Update changelog 2017-09-11 11:54:18 -07:00
DanKans
5079187fde Fix address already in use with webhooks input during reload (#3206) 2017-09-11 11:51:45 -07:00
Daniel Nelson
8e333492f8 Update changelog 2017-09-08 16:02:15 -07:00
Jeff Nickoloff
ea6acff175 TLS and MTLS enhancements to HTTPListener input plugin (#3191) 2017-09-08 16:01:16 -07:00
Daniel Nelson
4fe8efd0e4 Update changelog 2017-09-08 15:36:26 -07:00
Daniel Nelson
5920cc9571 Add support for standard proxy env vars in outputs. (#3212) 2017-09-08 15:35:20 -07:00
Daniel Nelson
c4e9c8cbf2 Fix short tests on darwin (#3099) 2017-09-08 13:03:37 -07:00
Daniel Nelson
225b7d90d8 Update changelog 2017-09-06 14:29:03 -07:00
Raúl Benencia
f685837519 Include mount mode option in disk metrics (#3027) 2017-09-06 14:28:11 -07:00
Daniel Nelson
37bad29dc5 Update changelog 2017-09-06 14:20:38 -07:00
Daniel Nelson
359302a742 Fix typo 2017-09-06 14:19:42 -07:00
Pavel Gurkov
843e6ac044 Add Kafka output plugin topic_suffix option (#3196) 2017-09-06 14:18:26 -07:00
Daniel Nelson
df9bb7278b Add 1.4.0 release date 2017-09-05 17:14:11 -07:00
Daniel Nelson
d7f95a9dc9 Improve question title in FAQ 2017-09-05 17:12:36 -07:00
Daniel Nelson
4ec13c1b8e Add FAQ doc with dns resolver information 2017-09-05 13:12:11 -07:00
Daniel Nelson
cd40999225 Use ip address for default InfluxDB ip in config
Helps with initial setup if localhost cannot be resolved due to the pure
go resolver.
2017-09-05 12:55:21 -07:00
Daniel Nelson
16edaa0ae9 Sort metrics before comparing in graphite test 2017-09-05 12:50:30 -07:00
rdxmb
7f71b10080 Fix docker image name in docs (#3193) 2017-09-05 11:44:51 -07:00
Daniel Nelson
28d41380a3 Update changelog 2017-08-31 13:43:47 -07:00
Daniel Nelson
bdf5e4534d Fix panic when handling string fields with escapes (#3188) 2017-08-30 21:16:37 -07:00
Daniel Nelson
f53b788987 Update changelog 2017-08-29 16:27:02 -07:00
Daniel Nelson
87d08e25fd Convert bool fields to int in graphite serializer 2017-08-29 16:22:03 -07:00
Seua Polyakov
9357059aef Skip non-numerical values in graphite format (#3179) 2017-08-29 15:59:38 -07:00
Daniel Nelson
2af953c128 Move changelog item to 1.4 2017-08-28 17:17:03 -07:00
Daniel Nelson
7811eeea83 Update changelog 2017-08-28 17:08:44 -07:00
Jeff Nickoloff
6c6dd69b74 Added CloudWatch metric constraint validation (#3183) 2017-08-28 16:56:03 -07:00
Daniel Nelson
50ba31a161 Update changelog 2017-08-28 16:30:51 -07:00
Nevins
77c6089634 Add support for sharding based on metric name (#3170) 2017-08-28 16:24:38 -07:00
Daniel Nelson
914a8132b5 Update changelog 2017-08-28 16:11:00 -07:00
Dylan Meissner
701b34dc55 HTTP headers can be added to InfluxDB output (#3182) 2017-08-28 16:08:50 -07:00
Daniel Nelson
d21fbf14f4 Update changelog 2017-08-25 18:08:33 -07:00
Ashton Kinslow
5be114ca6f Fix NSQ input plugin when used with version 1.0.0-compat 2017-08-25 18:06:48 -07:00
Daniel Nelson
e99099f49c Close response bodies in http_listener test 2017-08-25 13:58:45 -07:00
Daniel Nelson
97d9c0c430 Update changelog 2017-08-25 12:59:19 -07:00
Rickard von Essen
c77b8f2e77 Don't fail parsing of zpool stats if pool health is UNAVAIL on FreeBSD (#3149) 2017-08-25 12:57:35 -07:00
Daniel Nelson
9d65670d19 Update changelog 2017-08-25 11:55:59 -07:00
Jan Willem Janssen
f0f77486a5 Fix parsing of SHM remotes in ntpq input (#3163) 2017-08-25 11:54:06 -07:00
Daniel Nelson
ae1611aecc Update fail2ban documentation 2017-08-25 11:42:07 -07:00
Daniel Nelson
9c792c26e3 Fix amqp_consumer data_format documentation
closes #3164
2017-08-24 13:17:29 -07:00
Daniel Nelson
d61b509ade Add links to nightly builds 2017-08-23 15:42:25 -07:00
Daniel Nelson
236d5e0ec9 Update changelog 2017-08-23 15:21:48 -07:00
Daniel Nelson
6caa896cb1 Escape backslash within string fields (#3161) 2017-08-23 15:17:26 -07:00
Daniel Nelson
7fdb8d3e4f Update changelog 2017-08-23 15:16:04 -07:00
Rickard von Essen
8edebf65e9 Enable hddtemp on all platforms (#3153)
Also disables dmcache tests on non-linux.
2017-08-23 15:14:32 -07:00
Daniel Nelson
ca690fe48d Update changelog 2017-08-22 17:03:00 -07:00
Daniel Nelson
ec44f8bbab Don't start Telegraf on install in Amazon Linux (#3156) 2017-08-22 17:01:59 -07:00
Daniel Nelson
6efb52e22c Update changelog 2017-08-22 16:55:15 -07:00
Daniel Nelson
5520f662ba Don't retry points beyond retention policy (#3155) 2017-08-22 16:52:26 -07:00
Daniel Nelson
fcd5e5d9e3 Hide output of git describe 2017-08-22 13:32:52 -07:00
Rickard von Essen
5dd9031830 Enable fail2ban on all platforms (#3151) 2017-08-22 12:58:00 -07:00
Rickard von Essen
35ccafaaad Enable chrony for all platforms (#3152) 2017-08-22 11:49:51 -07:00
Daniel Nelson
6339228e44 Update config directory documentation 2017-08-22 11:33:26 -07:00
Daniel Nelson
77ae5dacc6 Cache intermediate objects during build 2017-08-21 17:26:55 -07:00
Chris Goller
d50e20f323 Add JSON input support to zipkin plugin (#3150) 2017-08-21 17:24:54 -07:00
Daniel Nelson
bbc4a82e9f Add win_services to the readme 2017-08-18 17:57:30 -07:00
Daniel Nelson
580fd73468 Update histogram aggregator documentation (#3133) 2017-08-18 13:24:05 -07:00
Daniel Nelson
d5bfc683fe Remove version test 2017-08-18 11:08:48 -07:00
Daniel Nelson
36b1ad979d Update example config 2017-08-17 18:54:06 -07:00
Daniel Nelson
2ec1f63ae6 Add queues to rabbitmq documentation (#3135) 2017-08-17 18:52:27 -07:00
Daniel Nelson
d008ffca1a Update master for 1.5 development 2017-08-16 16:54:15 -07:00
Daniel Nelson
c267b8d617 Update sample config 2017-08-16 16:46:40 -07:00
Daniel Nelson
7d634a8134 Add tomcat input to changelog and readme 2017-08-16 15:36:56 -07:00
Daniel Nelson
3aa8e61e21 Add error status handle to tomcat input 2017-08-16 15:33:47 -07:00
mlindes
cd52747ced Add tomcat input plugin (#3112) 2017-08-16 15:33:20 -07:00
Daniel Nelson
eb0b2feee1 Update changelog 2017-08-16 12:26:00 -07:00
Daniel Nelson
9b99dcac64 Discard logging from tail library (#3128) 2017-08-16 12:06:07 -07:00
Daniel Nelson
cc67c3f4de Allow using system plugin in Windows (#3127) 2017-08-16 12:05:46 -07:00
Daniel Nelson
733dcf6c65 Remove log message on ping timeout (#3126) 2017-08-16 11:59:41 -07:00
Daniel Nelson
0d6aca44fc Move http_response headers to end of configuration.
If the subtable comes before other options, they will be placed in the
subtable.
2017-08-15 11:50:08 -07:00
Daniel Nelson
064071ba51 Test for nil metric before reading tags in logparser 2017-08-15 11:43:16 -07:00
Daniel Nelson
71c567fb87 Update changelog 2017-08-14 14:51:28 -07:00
Bob Shannon
67fe167b79 Add gzip content-encoding support to influxdb output (#2978) 2017-08-14 14:50:15 -07:00
Daniel Nelson
68e6841a5c Improve apache input docs (#3120) 2017-08-11 17:50:51 -07:00
Daniel Nelson
d0cc7d9d2f Use double hyphen in cli examples 2017-08-11 16:26:54 -07:00
Daniel Nelson
d5cf0bc25f Merge LDFLAGS from env into build 2017-08-11 16:26:54 -07:00
G-Research
45228c0bcd Build NTPQ input on Windows (#3117) 2017-08-11 13:36:25 -07:00
Patrick Hemmer
585fbb6f0d Add weighted_io_time to diskio input (#3119) 2017-08-11 11:49:42 -07:00
Daniel Nelson
51c9c11505 Update changelog 2017-08-10 12:41:09 -07:00
Daniel Nelson
8da8608fb9 Skip compilcation of logparser and tail on solaris (#3113)
Allows compilation for solaris
2017-08-10 12:36:11 -07:00
Daniel Nelson
6911c474ef Update changelog 2017-08-10 10:22:11 -07:00
Daniel Nelson
294b7322b4 Converge to typed value in prometheus output (#3104) 2017-08-10 10:19:28 -07:00
Daniel Nelson
b1eb240b18 Update changelog 2017-08-09 11:48:36 -07:00
Daniel Nelson
e7e3be6d18 Tweak formatting of varnish README 2017-08-09 11:48:12 -07:00
Daniel Nelson
fb2af61743 Fix ordering of all target 2017-08-09 11:47:55 -07:00
Benjamin Stromski
83c9b8ad9c Add option to run varnish under sudo (#3097) 2017-08-09 11:38:54 -07:00
Daniel Nelson
6f0ff514c9 Add diskio %util sample query 2017-08-09 11:28:27 -07:00
Seva Poliakov
ad2b962563 Remove tag_env duplicate from docker README (#3109) 2017-08-09 10:21:22 -07:00
Daniel Nelson
faa3606262 Update changelog and readme 2017-08-08 11:50:16 -07:00
Rodolphe Blancho
2ef93a10e0 Add salesforce input plugin (#3075) 2017-08-08 11:48:01 -07:00
Slawomir Skowron
b9b5b74ede Add TCP listener for statsd input (#2293) 2017-08-08 11:41:26 -07:00
Daniel Nelson
6ebb93abcc Remove Godeps_windows from build.py 2017-08-07 17:43:06 -07:00
Daniel Nelson
88a11e6a67 Fix artifact redirection 2017-08-07 17:41:52 -07:00
Daniel Nelson
6cbc90da50 Only upload nightly if on master branch 2017-08-07 17:24:35 -07:00
Daniel Nelson
c1c85f4330 Upload as nightly builds if PACKAGE set 2017-08-07 17:16:34 -07:00
Daniel Nelson
1dcca00e3d Update changelog 2017-08-07 16:18:01 -07:00
Daniel Nelson
d9ddf7bfd0 Add path tag to logparser containing path of logfile (#3098) 2017-08-07 16:16:31 -07:00
Daniel Nelson
07cda8903a Build releases with -w -s ldflags 2017-08-07 15:47:20 -07:00
Daniel Nelson
6efd5a0b67 Update changelog 2017-08-07 14:39:22 -07:00
Vlasta Hajek
09b1f7e468 Add Windows Services input plugin (#3023) 2017-08-07 14:36:15 -07:00
Daniel Nelson
2a106be2b8 Cleanup Makefile (#3089) 2017-08-03 11:54:05 -07:00
Daniel Nelson
4fe36a9caf Update changelog and readme 2017-08-02 18:02:41 -07:00
Daniel Nelson
7611b40b7e Add Zipkin input plugin (#3080) 2017-08-02 17:58:26 -07:00
Daniel Nelson
008d0e724f Update precision documentation and examples
Precision is no longer used by the InfluxDB output.

closes #3079
2017-08-01 15:02:36 -07:00
Daniel Nelson
7b467a47a7 Add Appveyor continuous integration (#3074) 2017-07-31 16:12:09 -07:00
Daniel Nelson
0802a7bfc8 Update changelog 2017-07-31 11:37:32 -07:00
Vladislav Mugultyanov
265a558958 Add histogram aggregator plugin (#2387) 2017-07-31 11:33:51 -07:00
Daniel Nelson
9dad79eeb4 Update changelog 2017-07-31 11:30:27 -07:00
DanKans
4c84e5996c Sanitize password from couchbase metric (#3033) 2017-07-31 11:29:14 -07:00
Jeff Ashton
cb56269c8b Fix win_perf_counters tests (#3068) 2017-07-31 11:03:26 -07:00
Oscar Sironi
26ca13849d Add config file path troubleshooting advice for Windows (#3071) 2017-07-31 10:58:12 -07:00
Daniel Nelson
896422e4ee Update changelog 2017-07-27 17:19:33 -07:00
Daniel Nelson
4bfeb1512e Add tls options to docker input (#3063) 2017-07-27 17:18:44 -07:00
Daniel Nelson
3fc5a18c18 Update changelog 2017-07-27 15:21:52 -07:00
Daniel Nelson
25df7dcd8d Allow iptable entries with trailing text (#3060) 2017-07-27 15:21:06 -07:00
Daniel Nelson
2cae419783 Update changelog 2017-07-27 15:15:11 -07:00
Daniel Nelson
eb609f553f Fix docker memory and cpu reporting in Windows (#3043) 2017-07-27 15:12:29 -07:00
Daniel Nelson
539c340c4d Add circleci parameter to build packages 2017-07-26 17:13:50 -07:00
Daniel Nelson
98b5b906f8 Set 1.3.5 release date 2017-07-26 15:53:49 -07:00
Daniel Nelson
65d578c488 Update changelog 2017-07-25 17:12:45 -07:00
Daniel Nelson
742f18e8bf Default to localhost if zookeeper has no servers set (#3056) 2017-07-25 17:08:32 -07:00
Daniel Nelson
a3307476c7 Fix panic in logparser if file cannot be opened (#3055) 2017-07-25 17:08:03 -07:00
Daniel Nelson
60e0a839f2 Add redis_version field to redis input (#3054) 2017-07-25 17:07:43 -07:00
Daniel Nelson
7b5e5ed980 Update changelog 2017-07-25 16:09:48 -07:00
Daniel Nelson
daf357e7b2 Update changelog 2017-07-25 15:43:13 -07:00
Daniel Nelson
a5c0dac37f Fix prometheus output cannot be reloaded (#3053) 2017-07-25 15:41:18 -07:00
xin053
f179cdbec7 Correct spelling of toml field in mysql input (#3051) 2017-07-25 10:57:27 -07:00
Théophile Helleboid - chtitux
cc52711e1e Fix typo in postgresql_extensible/README.md (#3052) 2017-07-25 10:39:14 -07:00
Daniel Nelson
f486cc99cc Update changelog 2017-07-24 18:26:29 -07:00
Daniel Nelson
6ae58430cd Start first aggregator period at startup time (#3050)
Fixes issue where metrics collected immediately after startup would not
be aggregated.
2017-07-24 18:25:05 -07:00
Oskar
6396e3409d Fix go vet under windows (#3046) 2017-07-24 12:36:33 -07:00
Daniel Nelson
41c99827e1 Update changelog 2017-07-21 16:57:28 -07:00
Daniel Nelson
4adc6cafd0 Add network option to dns_query (#3042) 2017-07-21 16:56:08 -07:00
Daniel Nelson
b3fa28e449 Update changelog 2017-07-21 15:46:22 -07:00
Andy Cobaugh
9fb8cf6319 Add input plugin for OpenLDAP (#2612) 2017-07-21 15:44:20 -07:00
Daniel Nelson
06a285bb5e Update changelog 2017-07-21 14:31:25 -07:00
Daniel Nelson
e822d22565 Don't match pattern on any error (#3040)
This prevents a pattern with no wildcards from matching in case
permissions is denied.
2017-07-21 14:28:14 -07:00
Daniel Nelson
a6c44e3a00 Update changelog 2017-07-21 14:26:39 -07:00
Yann Cézard
b487a36a33 Only report cpu usage for online cpus in docker input (#3035) 2017-07-21 14:25:17 -07:00
Daniel Nelson
6d5a81dafb Document GNU make requirement 2017-07-21 11:15:00 -07:00
Daniel Nelson
22db07e417 Update changelog 2017-07-21 10:57:39 -07:00
Daniel Nelson
ac6e10528f Line wrap documentation 2017-07-21 10:57:12 -07:00
DanKans
0bfe723718 Fix filtering when both pass and drop match an item (#3036)
Adjust logic in functions responsible for passing metrics in order to be able
to process them correctly in case where pass and drop are defined together.
2017-07-21 10:53:57 -07:00
Daniel Nelson
b3a9fe0502 Update changelog 2017-07-19 13:09:49 -07:00
DanKans
7f3716b2b8 Fix combined tagdrop/tagpass filtering (#3031) 2017-07-19 13:08:40 -07:00
Daniel Nelson
6dd9bf5d1a Switch skipped kafka test 2017-07-18 18:18:57 -07:00
Daniel Nelson
5224e1748d Update download information in readme 2017-07-18 13:54:38 -07:00
Daniel Nelson
f2adecd753 Update changelog 2017-07-18 11:03:07 -07:00
DanKans
9a8de6085f Fix ntpq parse issue when using dns_lookup (#3026) 2017-07-18 11:01:08 -07:00
soldierkam
880ff896ac Add read timeout to socket_listener 2017-07-17 18:34:36 -07:00
Daniel Nelson
fa086ca5e4 Remove command in example output 2017-07-17 15:08:17 -07:00
Daniel Nelson
f8dd52c69d Update changelog 2017-07-17 12:01:35 -07:00
Daniel Nelson
99e5ccee6f Prevent startup if intervals are 0 2017-07-17 11:58:47 -07:00
Daniel Nelson
6edd848e4c Update changelog 2017-07-14 10:45:32 -07:00
Bob Shannon
39a8f73260 Add result_type field to net_response input plugin (#2990) 2017-07-14 10:43:36 -07:00
Daniel Nelson
08bdb780c6 Add credits for new plugins to changelog 2017-07-13 16:14:18 -07:00
Daniel Nelson
6d708d870b Update changelog 2017-07-13 16:00:09 -07:00
DanKans
0ca0e213de Add fluentd input plugin (#2661) 2017-07-13 15:58:20 -07:00
Daniel Nelson
4138e8af08 Update changelog 2017-07-13 15:39:45 -07:00
Daniel Nelson
8567dfe7b1 Prevent possible deadlock when using aggregators (#3016)
Looping the metrics back through the same channel could result in a
deadlock, by using a new channel and locking the processor we can ensure
that all stages can make continual progress.
2017-07-13 15:34:21 -07:00
Daniel Nelson
88037c8a2c Add release date for 1.3.4 2017-07-12 17:15:38 -07:00
Daniel Nelson
b201814cea Update changelog 2017-07-12 12:04:43 -07:00
Daniel Nelson
c5d49d1863 Prevent Write from being called concurrently (#3011) 2017-07-12 12:03:23 -07:00
Daniel Nelson
d21a9316bd Update changelog 2017-07-11 15:55:44 -07:00
Daniel Nelson
b086ecee0c Do not allow metrics with trailing slashes (#3007)
It is not possible to encode a measurement, tag, or field whose last
character is a backslash due to it being an unescapable character.
Because the tight coupling between line protocol and the internal metric
model, prevent metrics like this from being created.

Measurements with a trailing slash are not allowed and the point will be
dropped.  Tags and fields with a trailing a slash will be dropped from
the point.
2017-07-11 15:54:38 -07:00
Daniel Nelson
c35b4c8f1b Update changelog 2017-07-11 14:10:09 -07:00
JSH
0197a614ed Fix chrony plugin does not track system time offset (#2989) 2017-07-11 14:08:40 -07:00
Daniel Nelson
a9d332d673 Update changelog 2017-07-10 19:07:28 -07:00
Daniel Nelson
4780073ba1 Fix handling of escapes within fieldset (#3003)
Line protocol does not require or allow escaping of backslash, the only
requirement for a byte to be escaped is if it is an escapable char and
preceeded immediately by a slash.
2017-07-10 19:05:18 -07:00
Daniel Nelson
05309855e3 Update changelog 2017-07-10 12:23:16 -07:00
Daniel Nelson
c928e21462 Update elastic version to 5.0.41 (#2999) 2017-07-10 12:18:56 -07:00
Daniel Nelson
1a1ebc1424 Update dependencies 2017-07-10 12:01:22 -07:00
Wesley Merkel
050fb93e6c Add link to Graylog input to README.md (#2995) 2017-07-10 11:22:37 -07:00
Daniel Nelson
06fc3f66a5 Update changelog 2017-07-05 14:29:59 -07:00
Song Wenhao
89c5fab917 Display error message if prometheus output fails to listen (#2984) 2017-07-05 14:28:44 -07:00
Daniel Nelson
135ce41a59 Update changelog 2017-06-29 16:17:08 -07:00
Aleksey Shirokih
45c1fd1950 Change default prometheus_client port (#2973) 2017-06-29 14:03:42 -07:00
Daniel Nelson
daecb88808 Set release date for 1.3.3 2017-06-28 13:05:06 -07:00
Daniel Nelson
bd78b8e1b3 Fix build on Windows (#2972) 2017-06-27 16:31:28 -07:00
Daniel Nelson
8bd9ac8697 Use git sha1 as version if not tagged (#2969) 2017-06-27 13:24:06 -07:00
Adam Perlin
c30124e192 Fix several bugs in minecraft input (#2970) 2017-06-27 13:14:07 -07:00
Daniel Nelson
6cd958b215 Update changelog 2017-06-26 15:25:06 -07:00
Bob Shannon
35fff50eec Fix panic in elasticsearch input if cannot determine master (#2954) 2017-06-26 15:23:53 -07:00
Daniel Nelson
35f64043a3 Update changelog 2017-06-26 15:15:31 -07:00
Bob Shannon
d7af1b797c Add optional usage_active and time_active CPU metrics (#2943) 2017-06-26 15:13:38 -07:00
Daniel Nelson
6f803308c5 Log aerospike field value on error 2017-06-26 14:48:22 -07:00
Daniel Nelson
cbd93f0598 Update changelog 2017-06-26 14:31:17 -07:00
vodolaz095
ab876bb525 Add support for RethinkDB 1.0 handshake protocol (#2963)
Allow rethinkdb input plugin to work with RethinkDB 2.3.5+ databases that requires username,password authorization and Handshake protocol v1.0

* remove top level header not required in sample config

* remove top level header not required in sample config
2017-06-26 14:29:48 -07:00
Daniel Nelson
f070f1460a Update changelog 2017-06-23 16:56:36 -07:00
Ayrdrie
2ed4a73d73 Add Minecraft input plugin (#2960) 2017-06-23 16:54:12 -07:00
Daniel Nelson
e9d25c8e7e Update changelog 2017-06-23 11:13:00 -07:00
MatthewCh
cc72af94e6 Support HOST_PROC in processes and linux_sysctl_fs inputs (#2924) 2017-06-23 11:11:33 -07:00
Daniel Nelson
793f12a0b1 Update changelog 2017-06-23 11:04:13 -07:00
Daniel Nelson
87f2b44566 Fix bug parsing default timestamps with modified precision (#2949) 2017-06-23 10:59:04 -07:00
Daniel Nelson
2c61e5d3a5 Use strings.Join in statsd input (#2947) 2017-06-21 16:24:23 -07:00
Daniel Nelson
41b6445eb2 Update changelog 2017-06-21 12:46:57 -07:00
grugrut
1999cd3ba9 Add input plugin for Fail2ban (#2875) 2017-06-21 12:42:13 -07:00
Daniel Nelson
a4d18aab81 Update changelog 2017-06-21 12:39:09 -07:00
Daniel Nelson
995be3847a Remove label value sanitization in prometheus output (#2939) 2017-06-21 12:36:29 -07:00
Daniel Nelson
07dbf058ad Update changelog 2017-06-19 11:52:53 -07:00
Eugene Shilin
a7e3033646 Add standard SSL options to mysql input (#2933) 2017-06-19 11:42:43 -07:00
Artem Kovardin
31449368c9 More explicit 404 error in cassandra input (#2936) 2017-06-19 11:06:49 -07:00
trastle
0dcede784b Update README for Prometheus Client Output (#2452) 2017-06-19 11:04:08 -07:00
Daniel Nelson
4f095bfc1c Set default ping count in Windows
fixes #2934
2017-06-16 13:39:55 -07:00
Daniel Nelson
a375c9ac6b Document that ping_interval is non-linux only 2017-06-16 13:32:04 -07:00
Daniel Nelson
476656a523 Update changelog 2017-06-16 13:18:27 -07:00
Daniel Nelson
6bbed7aa90 Allow dos line endings in tail and logparser (#2920)
Parsing dos line ending delimited line protocol is still illegal in most
cases.
2017-06-16 13:16:48 -07:00
Daniel Nelson
148f81682a Update changelog 2017-06-16 12:06:40 -07:00
Simone Rotondo
b68c2d48ef Add HTTP Proxy support to influxdb output (#2929) 2017-06-16 12:05:08 -07:00
Daniel Nelson
2cfe2a3497 Update 1.3.2 release date 2017-06-14 12:16:47 -07:00
Daniel Nelson
c270fc4b7b Update changelog 2017-06-13 18:07:12 -07:00
Daniel Nelson
6ebeeef452 Ensure prometheus metrics have same set of labels (#2857) 2017-06-13 18:04:26 -07:00
Daniel Nelson
e2ab598a4a Update changelog 2017-06-13 17:19:33 -07:00
Daniel Nelson
868f7abc64 Change node_name to be a tag in aerospike input (#2918) 2017-06-13 17:09:38 -07:00
Daniel Nelson
810f2e74e8 Update changelog 2017-06-13 14:10:33 -07:00
Heston Kan
075066f452 Add min/max response time on linux/darwin to ping (#2908) 2017-06-13 14:09:17 -07:00
Daniel Nelson
26e526df67 Update changelog 2017-06-13 13:44:07 -07:00
Dheeraj Dwivedi
a27b074588 Add secure connection support to graphite output (#2602) 2017-06-13 13:42:11 -07:00
Daniel Nelson
4c8ff30611 Update changelog 2017-06-12 18:32:50 -07:00
Daniel Nelson
8a0d1bc283 Update aws-sdk-go dependency to latest release. (#2912) 2017-06-12 18:31:27 -07:00
Daniel Nelson
23794f35cc Update changelog 2017-06-08 16:55:27 -07:00
Daniel Nelson
f944bd1feb Fix support for mongodb/leofs urls without scheme (#2900)
This was broken by changes in go 1.8 to url.Parse.  This change allows
the string but prompts the user to move to the correct url string.
2017-06-08 16:52:01 -07:00
Daniel Nelson
d2eddec1e8 Update changelog 2017-06-08 13:20:44 -07:00
Matteo Cerutti
d7d64a76fe Add wildcard support for container inclusion/exclusion (#2793) 2017-06-08 13:17:31 -07:00
Daniel Nelson
d5c7fa206c Skip kafka_consumer_integration_test due to issue on CircleCI 2017-06-07 18:31:52 -07:00
Daniel Nelson
56d08c6b4f Add release note to changelog regarding kafka_consumer 2017-06-07 18:27:12 -07:00
Seuf
a24f7a0a05 Add Kafka 0.9+ consumer support (#2487) 2017-06-07 18:22:28 -07:00
Bob Shannon
8e309f864a Add SSL/TLS support to nginx input plugin (#2883) 2017-06-07 17:52:10 -07:00
Daniel Nelson
5f274f1a8e Update changelog 2017-06-07 13:46:06 -07:00
Daniel Nelson
f0c10b4012 Fix metric splitting edge cases (#2896)
Metrics needing one extra byte to fit the output buffer would not be split, so we would emit lines without a line ending. Metrics which overflowed by exactly one field length would be split one field too late, causing truncated fields.
2017-06-07 13:37:54 -07:00
Daniel Nelson
d3562b7730 Update changelog 2017-06-06 13:55:11 -07:00
Frederick Roth
38b760936d Add result_type field for http_response input (#2814) 2017-06-06 13:39:07 -07:00
Daniel Nelson
ef72c5703b Update changelog 2017-06-06 11:56:19 -07:00
Mariusz Brzeski
4bfef75fdb Fix timeout option in Windows ping input sample configuration (#2885) 2017-06-06 11:55:01 -07:00
Daniel Nelson
b2d208bb0d Update changelog 2017-06-05 14:47:34 -07:00
Sebastian Borza
1b3c2cdedf Add timezone support to logparser timestamps (#2882) 2017-06-05 14:45:11 -07:00
Daniel Nelson
3e946994ba Update changelog 2017-06-05 12:46:50 -07:00
Daniel Nelson
c1da0002c0 Fix udp metric splitting (#2880) 2017-06-05 12:44:29 -07:00
Daniel Nelson
3103fc775d Set 1.3.1 release date 2017-05-31 15:00:31 -07:00
Daniel Nelson
e9c233746f Generate sha256 hashes when packaging 2017-05-31 12:29:39 -07:00
Daniel Nelson
928320ae8d Update changelog 2017-05-30 17:40:37 -07:00
Daniel Nelson
25d3f06756 Fix length calculation of split metric buffer (#2869) 2017-05-30 17:38:32 -07:00
Daniel Nelson
3d16d714d0 Update changelog 2017-05-30 11:04:39 -07:00
Steve Nardone
e39ebdadd1 Fix panic in mongo input (#2848) 2017-05-30 11:02:26 -07:00
Daniel Nelson
88e4c6335b Update changelog 2017-05-26 12:12:18 -07:00
Matteo Cerutti
c8b7739237 MySQL input: log and continue on field parse error (#2855) 2017-05-26 12:09:43 -07:00
Daniel Nelson
5065a6e7f5 Update changelog 2017-05-25 16:20:29 -07:00
Daniel Nelson
db5560e2ea Update gopsutil version
fixes #2856
2017-05-25 16:11:49 -07:00
Daniel Nelson
a6fb50efd1 Update changelog 2017-05-25 13:39:16 -07:00
Daniel Nelson
f3321bc194 Fix influxdb output database quoting (#2851) 2017-05-25 13:25:52 -07:00
Olivier Lambert
d3241d5fd2 Add documentation for fetching metrics on Caddy HTTP and Prometheus (#2853) 2017-05-25 13:07:49 -07:00
Sylvain Boily
fba7735d96 Documentation privilege requirements for specific procstat metrics (#2787) 2017-05-25 13:06:27 -07:00
Matteo Cerutti
c505e015b3 Add timeout option to ipmi_sensor plugin - solves #2817 (#2818) 2017-05-22 13:41:34 -07:00
Daniel Nelson
c97f65c100 Remove changelog item from pull request template
Person who merges PR is now expected to update the CHANGELOG.
2017-05-22 12:06:48 -07:00
Daniel Nelson
4e46842546 Update CHANGELOG with fixed issue #1137 2017-05-22 12:01:22 -07:00
Steven Burgart
35004c5170 Fix multiple plugin loading in win_perf_counters (#2800) 2017-05-22 11:58:00 -07:00
Daniel Nelson
0bb9de5fe3 Update dependency license file 2017-05-19 18:03:49 -07:00
Lukasz Jagiello
ba74206597 Consul plugin README typo (#2829) 2017-05-19 11:37:31 -07:00
Daniel Nelson
bc6c311ffb Update changelog 2017-05-18 18:11:49 -07:00
rsingh2411
f28f166069 Add Docker container environment variables as tags. Only whitelisted #2580 (#2581) 2017-05-18 16:58:34 -07:00
mced
02d40565c6 [enh] set db_version at 0 if query version fails (#2819) 2017-05-18 13:52:56 -07:00
Daniel Nelson
5d7127e4e4 Update changelog for #2815 2017-05-16 17:37:51 -07:00
Timo Mihaljov
b66e53a2ac Handle process termination during read from /proc (#2816)
Fixes #2815.
2017-05-16 17:33:35 -07:00
Frederick Roth
ec3c27a555 Fixed inconsistency between HasIntField and IntField (#2813) 2017-05-16 15:25:30 -07:00
Daniel Nelson
f29cd638c9 Add release date for 1.3.0 2017-05-15 19:52:35 -07:00
Daniel Nelson
4a827243fc Add back the changelog entry for 2141 2017-05-15 12:54:03 -07:00
Daniel Nelson
dd0c04b6e2 Only split metrics if there is an udp output (#2799) 2017-05-12 15:34:05 -07:00
Zack Zatkin-Gold
61be19b1f0 Fix telegraf example arguments (#2788)
Many of the examples provided within documentation are using a single
dash for the command line arguments, but the telegraf executable
explicitly has two dashes.

There are also some inconsistencies with the ordering of the command
line argument examples.  I've ordered them so that the examples will
show: config, config-directory, input-filter, test
2017-05-12 15:22:29 -07:00
Sebastian Borza
a871b64ac3 split metrics based on UDPPayload size (#2795) 2017-05-12 14:45:50 -07:00
Daniel Nelson
0ed404e7ba Merge branch 'reuse-transport' 2017-05-10 18:19:21 -07:00
Daniel Nelson
1cc7fe7f3d Ensure keep-alive is not used in http_response input.
Using Keep-Alive would change the timing for already established
connections.  Previous to this commit, Keep-Alive worked only when using
a response_string_match due to failure to close the request body.
2017-05-10 14:40:55 -07:00
Daniel Nelson
f42768ed2e Update changelog 2017-05-10 13:11:33 -07:00
Daniel Nelson
3381ac8f94 Fix http_response input creation of transport on every gather 2017-05-09 16:23:38 -07:00
Daniel Nelson
b6312cf13c Fix prometheus input creation of transport on every gather 2017-05-09 16:21:49 -07:00
Daniel Nelson
9e85002875 Fix apache input creation of transport on every gather. 2017-05-09 16:19:56 -07:00
Daniel Nelson
5e739572f0 Merge branch 'update-readme' 2017-05-09 13:50:19 -07:00
Daniel Nelson
ac466b393d Add missing plugins to README 2017-05-09 13:50:12 -07:00
Daniel Nelson
c648cf48a2 Update contributing section
Hoping this will encourage more non-plugin contributions.
2017-05-09 13:50:12 -07:00
Adrian Sadłocha
b1b0efa546 Improve PostgreSQL plugin documentation (#2777) 2017-05-09 12:58:43 -07:00
Lukasz Jagiello
4133765208 Add support for self-signed certs to InfluxDB input plugin (#2773) 2017-05-08 15:20:24 -07:00
Sylvain Boily
6aa3762049 Systemd does not see all shutdowns as failures (#2716) 2017-05-08 11:48:29 -07:00
Daniel Nelson
dd2ef7a67e Update cloudwatch documentation
Mention that some metrics are available only at larger intervals than 5
minutes.  Update dead links to new locations and example config.

closes #1907
2017-05-08 11:31:20 -07:00
Daniel Nelson
d9c6543fac Enable s390x builds
closes #2766
2017-05-05 14:39:56 -07:00
Daniel Nelson
c7f5d96d0d Add SLES11 support to rpm package (#2768) 2017-05-05 14:29:40 -07:00
Sébastien
c7da3f1063 fix systemd path in order to add compatibility with SuSe (#2499) 2017-05-05 14:04:33 -07:00
ceseuron
45d22d942b Fixed sqlserver input to work with case sensitive server collation. (#2749)
Fixed a problem with sqlserver input where database properties are not returned by Telegraf when SQL Server has been set up with a case sensitive server-level collation.

* Added bugfix entry to CHANGELOG.md for sqlserver collation input fix.
2017-05-04 10:47:03 -07:00
Daniel Nelson
3e71a12cea Add 1.4 section to changelog 2017-05-03 17:29:34 -07:00
Daniel Nelson
23cdf12d83 Remove documentation in kafka_consumer for metric_buffer 2017-05-03 11:51:49 -07:00
Damien Krotkine
abe736ee8f reflect zookeeper chroot config in readme (#2759) 2017-05-03 11:50:08 -07:00
Daniel Nelson
99888bd614 Return an error if no valid patterns. (#2753) 2017-05-02 14:54:38 -07:00
Alexander Blagoev
1da3e41941 Improve redis input documentation (#2708) 2017-05-02 11:43:07 -07:00
Patrick Hemmer
74dd3be3a5 fix close on closed socket_writer (#2748) 2017-05-02 11:06:49 -07:00
Daniel Nelson
92673a915e Add initial documentation for rabbitmq input. (#2745) 2017-05-01 18:55:48 -07:00
Daniel Nelson
ec6ed1303d Don't log error creating database on connect (#2740)
closes #2739
2017-04-28 15:58:46 -07:00
Daniel Nelson
99f3dbcd60 Update telegraf.conf 2017-04-28 13:47:32 -07:00
Daniel Nelson
3d0df7a056 Clarify retention policy option for influxdb output
closes #2696
2017-04-28 13:46:23 -07:00
Daniel Nelson
d840bbafbb Clarify retention policy option for influxdb output
closes #2696
2017-04-28 13:40:58 -07:00
Daniel Nelson
ade21b0c6c Use go 1.8.1 for CI and Release builds (#2732) 2017-04-27 16:18:11 -07:00
Daniel Nelson
b60c8f1899 Fix grammar 2017-04-27 14:59:18 -07:00
Daniel Nelson
786915aa2a Update telegraf.conf 2017-04-27 11:53:32 -07:00
Seuf
b23596c232 Added SASL options for ouput kafka plugin (#2721) 2017-04-27 11:50:25 -07:00
Ross McDonald
c9921f5cf3 Kapacitor input plugin (#2031) 2017-04-27 11:47:22 -07:00
Daniel Nelson
d4a13c88fd Fix logfile documentation 2017-04-27 11:38:49 -07:00
Daniel Nelson
78d31992d7 Update haproxy README 2017-04-27 11:23:37 -07:00
Seuf
01f2a952c7 Added SSL configuration for input haproxy (#2723) 2017-04-27 11:20:41 -07:00
Daniel Nelson
dcd6936483 Fix amqp output block on write if disconnected (#2727)
fixes #2603
2017-04-27 11:10:30 -07:00
Damien Krotkine
ce3dc1f82b it's -> its (#2728) 2017-04-27 11:10:00 -07:00
Damien Krotkine
05a1af700d it's -> its (#2729) 2017-04-27 11:06:40 -07:00
Nevins
0514b3cfa7 add option to randomize Kinesis partition key (#2705) 2017-04-26 10:54:24 -07:00
Jeff Zellner
b95ade7ec4 Update README.md (#2719) 2017-04-25 13:17:15 -07:00
Daniel Nelson
6ff98da985 Don't close stdout on config reload. (#2707)
fixes #2528
2017-04-24 16:18:58 -07:00
Patrick Hemmer
b1a2f896a2 add keep-alive support to socket_listener & socket_writer (#2697)
closes #2635
2017-04-24 13:14:42 -07:00
Alexander Blagoev
ddc2f64593 Improve procstat input documentation (#2699)
closes #1895
2017-04-24 11:18:55 -07:00
Patrick Hemmer
5ebe43f86f use AddError everywhere (#2372) 2017-04-24 11:13:26 -07:00
Alexander Blagoev
06199523ac System net input documentation (#2698)
closes #2166
2017-04-24 11:03:53 -07:00
Daniel Nelson
0fd3aeb34d Update EXAMPLE_README.md 2017-04-21 14:27:36 -07:00
Daniel Nelson
8a1b070e2f Use C locale when running sadf (#2690)
fixes #1911
2017-04-21 10:55:54 -07:00
Daniel Nelson
1d4843bc8e Update commit hash of tail fork 2017-04-20 16:29:39 -07:00
Daniel Nelson
35d6d17989 Add fix for network aliases to changelog
Change was made in gopsutil
2017-04-20 15:34:30 -07:00
Alexander Blagoev
2cd12b9d8f Memcached input documentation (#2685)
Closes #2615
2017-04-20 11:25:22 -07:00
Oleg Grytsynevych
8cddffb43c win_perf_counters: Format errors reported by pdh.dll in human-readable format (#2338) 2017-04-20 11:22:44 -07:00
Martin
c0daa68e00 Fixed install/remove of telegraf on non-systemd Debian/Ubuntu systems (#2360) 2017-04-20 11:19:33 -07:00
Daniel Nelson
7e07d17b64 Fix ipmi_sensor config is shared between all plugin instances (#2684) 2017-04-19 17:02:44 -07:00
Daniel Nelson
c6b60744ed Add diskio for darwin to changelog 2017-04-19 13:42:24 -07:00
Patrick Hemmer
0f5d49a7fd change jolokia input to use bulk requests (#2253) 2017-04-18 13:00:41 -07:00
Nikolay Denev
cc44150054 Simplify system.DiskUsage() (#2630) 2017-04-18 11:42:58 -07:00
Ross McDonald
018bb9d742 Add input for receiving papertrail webhooks (#2038) 2017-04-17 13:49:36 -07:00
François de Metz
b7c34a3ff3 GitHub webhooks: check signature (#2493) 2017-04-17 11:42:03 -07:00
Daniel Nelson
b92f6f5fb2 Rename heap_objects_bytes to heap_objects in internal plugin. (#2674)
* Rename heap_objects_bytes to heap_objects in internal plugin.

This field does not contain bytes

fixes #2671
2017-04-14 17:32:14 -07:00
Daniel Nelson
2177270d80 Use variadic disk.IOCounters() function 2017-04-14 13:48:02 -07:00
Daniel Nelson
f005ea4a27 Improve logparser README (#2664) 2017-04-14 13:47:43 -07:00
calerogers
4df8b034bf Refactor interrupts plugin code (#2670) 2017-04-14 13:40:36 -07:00
calerogers
3e5980d017 Irqstat input plugin (#2494)
closes #2469
2017-04-13 15:53:02 -07:00
ingosus
2e306bf13d Feature #1820: add testing without outputs (#2446) 2017-04-13 12:59:28 -07:00
Gregory Kman
ff4f5286ea Update ping-input-plugin Readme (#2651) 2017-04-12 17:46:48 -07:00
Chris Goffinet
1e95e53375 Fixed content-type header in output plugin OpenTSDB (#2663) 2017-04-12 17:40:10 -07:00
Daniel Nelson
1876441ed7 Update grok version (#2662) 2017-04-12 17:10:17 -07:00
Jesús Roncero
0c0b22874e Nagios plugin documentation fix (#2659) 2017-04-12 12:04:44 -07:00
Daniel Nelson
87f4f67b44 Clarify precision documentation (#2655) 2017-04-12 10:42:11 -07:00
Daniel Nelson
c4634c1743 Add collectd parser (#2654) 2017-04-12 10:41:26 -07:00
Nick Irvine
198ef8de3a Add max_message_len in kafka_consumer input (#2636) 2017-04-11 12:05:39 -07:00
Daniel Nelson
8b4c3201a2 Use name filter for IOCounters in diskio (#2649)
Use IOCountersForNames for disk counters.
2017-04-11 11:41:09 -07:00
Patrick Hemmer
fa0f5bd6f3 set default measurement name on snmp input (#2639) 2017-04-10 16:45:02 -07:00
Daniel Nelson
147200f675 Add support for precision in http_listener (#2644) 2017-04-10 16:39:40 -07:00
Daniel Nelson
db7c97be32 Use random port in http_listener tests 2017-04-10 14:39:39 -07:00
Vladimir S
a92ec65549 Add dmcache input plugin (#1667) 2017-04-07 15:39:43 -07:00
Rajaseelan Ganeswaran
223fce4770 Add sample config stanza for CPU (#2620) 2017-04-06 14:44:02 -07:00
Victor Yunevich
fac5d605ac ipmi_sensor: allow @ symbol in password (#2633) 2017-04-06 14:40:34 -07:00
Daniel Nelson
6a98f9d8ea Update filtering documentation (#2631) 2017-04-06 12:06:08 -07:00
James
1191c12515 fix postgresql connection leak (#2611) 2017-04-04 17:37:44 -07:00
Daniel Nelson
2d51ecb300 Update httpjson documentation (#2619)
closes  #2536
2017-04-03 18:34:04 -07:00
Patrick Hemmer
d9ad9cfdeb socket_listener: clean up unix socket file on start & stop (#2618) 2017-04-03 18:06:51 -07:00
Shakeel Sorathia
95a9d904e4 Docker: optionally add labels as tags (#2425) 2017-04-03 13:43:15 -07:00
Patrick Hemmer
0def641ce8 add support for linux sysctl fs metrics (#2609) 2017-03-31 14:01:02 -07:00
Daniel Nelson
b8bb159a41 Fix possible deadlock when output cannot write. (#2610) 2017-03-31 12:45:28 -07:00
Dmitry Ulyanov
807c11629f Added pprof tool (#2512) 2017-03-29 18:28:43 -07:00
Daniel Nelson
d9b34c266e Update changelog for #2587 2017-03-29 17:15:11 -07:00
tjmcs
373839a594 Adds a new json_timestamp_units configuration parameter (#2587) 2017-03-29 17:12:29 -07:00
Patrick Hemmer
f13686bdf7 fix race in testutil Accumulator.Wait() (#2598) 2017-03-29 17:03:06 -07:00
djjorjinho
71cdcee8b2 fix timestamp parsing on prometheus plugin (#2596) 2017-03-29 15:04:29 -07:00
Daniel Nelson
5b9b04a4fc Use fork of hpcloud/tail (#2595) 2017-03-29 14:25:33 -07:00
Daniel Nelson
d4011169df Remove wait loop in riemann tests
This testcase still has a race condition but I believe it is when the
test does not complete quickly enough.
2017-03-28 13:05:10 -07:00
mgresser
c772d0a398 Removed duplicate evictions metric (#2577) 2017-03-28 10:47:00 -07:00
Daniel Nelson
6971ec6f8d Add elasticsearch output to changelog 2017-03-28 10:22:28 -07:00
Daniel Nelson
29ea9be71e Add write timeout to Riemann output (#2576) 2017-03-27 15:49:45 -07:00
Daniel Nelson
a855718cd9 Skip elasticsearch output integration test in short mode 2017-03-27 15:05:06 -07:00
Daniel Nelson
3bf45f9365 Update telegraf.conf 2017-03-27 14:49:04 -07:00
Daniel Nelson
d2afe424f5 Clarify influxdb output url format
closes #2568
2017-03-24 16:04:18 -07:00
Patrick Hemmer
36c1a39a09 snmp: support table indexes as tags (#2366) 2017-03-24 12:06:52 -07:00
Patrick Hemmer
c65cfb6a6e remove sleep from tests (#2555) 2017-03-24 12:03:36 -07:00
Oskar
6588c4a1a7 Multi instances in win_perf_counters (#2352) 2017-03-22 12:04:58 -07:00
Daniel Nelson
6860545ea3 Really fix procstat initialization 2017-03-21 11:40:51 -07:00
Daniel Nelson
6d0fbe9cf3 Fix procstat initialization 2017-03-21 10:59:41 -07:00
Leandro Piccilli
a7e8bc1c02 Add Elasticsearch 5.x output (#2332) 2017-03-20 17:47:57 -07:00
Daniel Nelson
12adad6b54 Refactor procstat input (#2540)
fixes #1636 
fixes #2315
2017-03-17 16:49:11 -07:00
Patrick Hemmer
be7de16dd5 return error on unsupported serializer data format (#2542) 2017-03-17 10:14:03 -07:00
Antoine Augusti
dcb8e3f7a6 Update default value for Cloudwatch rate limit (#2520) 2017-03-15 15:20:18 -07:00
Daniel Nelson
f740aff4a3 Add support for new SSL configuration to mongodb (#2522)
closes #2519
2017-03-10 11:27:55 -08:00
jeremydenoun
ccd2182295 Report DEAD (X) State Process (#2501)
Report count of processes in dead (X) process state from the processes input.  This process state is only valid on Linux.
2017-03-09 11:28:54 -08:00
Daniel Nelson
24ae421ad5 Fix typo in postgresql README 2017-03-09 10:13:31 -08:00
Cameron Sparr
3f35ae306f create telegraf.d directory in tarball
closes #2513
2017-03-09 11:41:08 +00:00
Timothy
94a733219e Update CONFIGURATION.md (#2516)
Add information about default configuration file locations.  Also mention that the config directory option is available.
2017-03-09 11:21:03 +00:00
Dennis Dryden
8ca01a5f5a Add configuration docs to Postgresql input plugin (#2515)
* Add configuration docs to Postgresql input plugin

Add configuration docs to PostgreSQL input plugin README (mostly from the source code) though I've not included the configuration example that seems to use all he connections on the database[1].

[1] https://github.com/influxdata/telegraf/issues/2410

* Fix typo in readme and sampleConfig string.
2017-03-09 11:19:03 +00:00
jeremydenoun
068611263a Remove warning if parse empty content (#2500)
closes #2448
2017-03-08 14:08:55 -08:00
Robpol86
68b10d73fc Exporting Ipmi.Path to be set by config. (#2498)
* Exporting Ipmi.Path to be set by config.

Currently "path" is not exported, giving this error when users try to
override the variable via telegraf.conf as per the sample config:

`field corresponding to `path' is not defined in `*ipmi_sensor.Ipmi'`

Exporting the variable solves the problem.

* Updating changelog.
2017-03-08 16:38:36 +00:00
vvvkamper
4a9650ecf5 Fix part 2 of #1291
added PDH_FMT_NOCAP100 format option

closes #2483
2017-03-08 13:39:03 +00:00
Cameron Sparr
5c3cd822a9 update gopsutil for file close fixes
hopefully this will fix #2472
2017-03-08 12:54:17 +00:00
Daniel Nelson
99176458ad Update issue template 2017-03-06 11:20:53 -08:00
Cameron Sparr
8f83d9318a Revert "Procstat: don't cache PIDs" (#2479) 2017-03-06 15:59:36 +00:00
François de Metz
e76dcf09ec Respond 200 when receiving a ping event. (#2492) 2017-03-06 12:34:41 +00:00
Jack Zampolin
2fe161356b AMQP Consumer plugin (#1678) 2017-03-03 10:24:50 -08:00
Charles-Henri
53fb5608a8 Iptables input: document better the ignored rules behavior (#2482)
During issue #2215 it was highlighted that the current behavior where
rules without a comment are ignored is confusing for several users.

This commit improves the documentation and adds a NOTE to the sample
config to clarify the behavior for new users.
2017-03-02 09:58:26 +00:00
Chris Koehnke
e37b28896e Disk counter array newline (#2481)
Tweak formatting of `LogicalDisk` counter array to have one entry per
line.
2017-03-02 08:43:33 +00:00
Cameron Sparr
629ba4c1c7 Fix type conflict on windows ping plugin (#2462)
closes #1433
2017-03-01 11:22:42 +00:00
Cameron Sparr
49ed1a278b Handle nil os.FileInfo in filepath.Walk
closes #2466
2017-02-28 17:51:03 +00:00
Cameron Sparr
a38ebcbe54 log error message when invalid regex is used
closes #2178
2017-02-28 12:48:14 +00:00
Cameron Sparr
ed43e1010b Remove sleep from riemann test 2017-02-28 12:46:27 +00:00
Cameron Sparr
633ccf33c5 add cgroup plugin to README 2017-02-24 09:43:22 +00:00
Cameron Sparr
0379c7309c switch out deprecated docker client library
closes #2071
2017-02-22 10:55:00 +00:00
Rickard von Essen
08395de355 Updated readme, now requires Go 1.8 (#2455) 2017-02-21 22:13:22 +01:00
Carlos
7f24cb1edd Added default config to file output pugin's README (#2426) 2017-02-20 11:50:39 +01:00
Cameron Sparr
3bbf8153ed Check for errors in user stats & process list
closes #2414
2017-02-17 15:38:33 +00:00
Cameron Sparr
31249eb20d Only set the buffer size once
fixes #2380
2017-02-17 14:11:15 +00:00
Cameron Sparr
a29c02f09f socket_writer output plugin README 2017-02-16 23:13:14 +00:00
Leandro Piccilli
df402e885d Check if tag value is empty before allocation
closes #2390
closes #2404
2017-02-16 23:07:27 +00:00
Cameron Sparr
dfddcc5146 Fix prometheus_client reload behavior
fixes #2282
2017-02-16 21:57:13 +00:00
Priyank Trivedi
e0a36c38df Fix typo - Default from Defalt (#2417) 2017-02-16 19:03:17 +00:00
Yaron de Leeuw
212fdc587a README: update golang requirement to 1.7 (#2412)
The docker engine-api package we use needs golang 1.7+, see:
https://github.com/docker/engine-api/pull/382#issuecomment-244512952

So telegraf won't compile without 1.7
2017-02-15 17:17:26 +00:00
François de Metz
c1f825c705 Fix setting the username and the password to the influxdb output. (#2401) 2017-02-13 15:30:30 +00:00
Cameron Sparr
577b25bcd1 Skip service input plugins in test mode 2017-02-13 10:40:38 +00:00
Cameron Sparr
d373fbbaaf prepend 'inputs.' to --test output check 2017-02-13 10:33:51 +00:00
Cameron Sparr
4b289fc60d don't use influxdata/config, just use influxdata/toml 2017-02-10 17:27:18 +00:00
Cameron Sparr
b550328aa8 update naoina/toml to do config validation 2017-02-10 17:05:13 +00:00
Cameron Sparr
4c7fbc490c deprecate udp_listener & tcp_listener 2017-02-06 10:41:44 +00:00
Cameron Sparr
f6e1409c9a Remove metric.Point from metric interface 2017-02-03 16:53:07 +00:00
Cosmo Petrich
aeffacbe4a Increment gather_errors for all input errors
closes #2339
2017-02-03 11:22:31 +00:00
Cameron Sparr
e8fdd96b2d changelog update 2017-02-03 10:04:50 +00:00
Nick Irvine
4816615deb Remove pidfile if pidfile was created (#2358)
Also, ensure pidfile perms are 644
2017-02-03 10:02:19 +00:00
Patrick Hemmer
510b750da4 add socket listener & writer (#2094)
closes #1516 
closes #1711 
closes #1721 
closes #1526
2017-02-02 16:24:03 +00:00
Yaron de Leeuw
2a32cba35b Procstat: don't cache PIDs (#2206)
* Procstat: don't cache PIDs

Changed the procstat input plugin to not cache PIDs. Solves #1636.
The logic of creating a process by pid was moved from `procstat.go` to
`spec_processor.go`.

* Procstat: go fmt

* procstat: modify changelog for #2206
2017-02-02 14:12:22 +00:00
Patrick Hemmer
036d1beb87 add missing fields to haproxy input (#2323) 2017-02-02 13:46:53 +00:00
Matteo Cerutti
c8de4833e3 allow querying sensors via the open interface
closes #2244
closes #1547
2017-02-02 13:31:04 +00:00
Cameron Sparr
cf3fcf328d fix telegraf swallowing panics in --test mode
this defer function was causing telegraf to call os.Exit(0) instead of
panicking when it was supposed to.

closes #2341
2017-02-02 12:14:35 +00:00
Cameron Sparr
7bd6dc3d7f Godeps update
closes #2356
2017-02-02 09:52:06 +00:00
Cameron Sparr
c158346642 Add more nested globpath tests 2017-02-01 23:44:35 +00:00
Nathan Haugo
0c5e329212 Update readme to link to k8s plugin (#2355) 2017-02-01 21:23:45 +00:00
Jérôme Vizcaino
6baa06121e Ceph: represent pgmap states using tags (#2229)
* ceph: maps are already refs, no need to use a pointer

* ceph: pgmap_states are represented in a single metric "count", differenciated by tag

* Update CHANGELOG
2017-02-01 14:47:23 +00:00
Cameron Sparr
2bf599b8c8 changelog update 2017-02-01 14:41:58 +00:00
James Gregory
f0f913ab41 Kubernetes input: Handle null startTime for stopped pods (#2335) 2017-02-01 14:41:04 +00:00
Cameron Sparr
c65d74d54e iptables changelog update 2017-02-01 14:39:16 +00:00
ldep30
4740b818fe Add lock option to the IPtables input plugin (#2201)
* Update README.md

* Add lock support to the IPtables input plugin

* Update iptables.go

Doc cleaning
2017-02-01 14:37:18 +00:00
Cameron Sparr
786557a2cc changelog fix 2017-02-01 14:22:31 +00:00
Len Smith
c2d86e6649 http_response : Add in support for looking for substring in response (#2204)
* Add in support for looking for substring in response

* Add note to CHANGELOG.md

* Switch from substring match to regex match

* Requested code changes

* Make requested changes and refactor to avoid nested if-else.

* Convert tabs to space and compile regex once
2017-02-01 14:21:08 +00:00
Pierre Fersing
07f2e6dc94 Keep -config-directory when running as Windows service (#2330)
* Keep -config-directory when running as Windows service

* Update changelog
2017-02-01 14:12:35 +00:00
njwhite
360b3a8b9f Make Logparser Plugin Check For New Files (#2141)
* Make Logparser Plugin Check For New Files

Check in the Gather metric to see if any new files matching the glob
have appeared. If so, start tailing them from the beginning.

* changelog update for #2141
2017-02-01 14:11:39 +00:00
Cameron Sparr
7549299e5e Go 1.7.5 update cherry-picked to 1.2.1 release 2017-02-01 10:11:16 +00:00
Cameron Sparr
b717b24443 Changelog update 2017-02-01 10:07:31 +00:00
Cameron Sparr
cd5bef3e14 metric: Fix negative number handling
closes #2324
2017-02-01 10:07:31 +00:00
Martin
f0498491b2 Go version 1.7.4 -> 1.7.5 (#2348) 2017-02-01 10:07:02 +00:00
Cameron Sparr
c1bf4d15f2 Changelog update 2017-02-01 08:59:54 +00:00
Cameron Sparr
2262a6a421 running output: Drop nil metrics
fixes #2317
2017-02-01 08:55:22 +00:00
John Engelman
ce2ad1a74c Add numerical representation of Consul health check state. (#2277) 2017-01-28 16:47:25 -08:00
Patrick Hemmer
28314f93b6 add support for diskio name templates & udev tags
closes #1453
closes #1386
closes #1428
2017-01-27 16:15:42 -08:00
Cameron Sparr
c88f2ba3a6 Fix riemann output unit tests 2017-01-27 15:08:21 -08:00
Cameron Sparr
a42e8380d5 Riemann rewrite changelog update 2017-01-27 14:59:35 -08:00
Fabio Berchtold
fc76f47e43 Rewriting Riemann output plugin (#1900)
* rename to riemann_legacy

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* initial draft for Riemann output plugin rewrite

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* add unit tests

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* add option to send string metrics as states

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* add integration tests

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* add plugin README.md

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* bump riemann library

* clarify settings description

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* update Readme.md with updated description

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* add Riemann event examples

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* use full URL for Riemann server address

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

closes #1878
2017-01-27 14:54:59 -08:00
Cameron Sparr
a36fd375de Revert using fasthttp library to net/http 2017-01-25 16:42:23 -08:00
Cameron Sparr
f5d892d7d3 Improve the InfluxDB through-put performance
This changes the current use of the InfluxDB client to instead use a
baked-in client that uses the fasthttp library.

This allows for significantly smaller allocations, the re-use of http
body buffers, and the re-use of the actual bytes of the line-protocol
metric representations.
2017-01-25 11:54:16 -08:00
Cameron Sparr
a8b1fe6f00 ntpq: correct number of seconds in an hour
closes #2256
2017-01-24 15:27:44 -08:00
Jonas Hahnfeld
b0c721491d snmp: Allow lines with empty or missing tags (#2172)
The changes in #1848 resulted in lines being dropped if they had an empty
tag. Let's allow all lines that have empty or missing tags!
2017-01-24 14:57:43 -08:00
Kali Hernandez
d4d3f61673 Debian package: check for group before useradd (#2107)
Fixes #2106
2017-01-24 14:54:19 -08:00
Will Pearson
e1faf06974 Fix problem with graphite talking to closed connections (#2171)
We were having problems with telegraf talking to
carbon-relay-ng using the graphite output. When
the carbon-relay-ng server restarted the connection
the telegraf side would go into CLOSE_WAIT but telegraf
would continue to send statistics through the connection.

Reading around it seems you need to a read from the connection
and see a EOF error. We've implemented this and added a test
that replicates roughly the error we were having.

Pair: @whpearson @joshmyers
2017-01-24 12:50:29 -08:00
Pierre Fersing
29933d0835 Improve win_perf_counters on non English systems (#2261) 2017-01-24 12:46:06 -08:00
Pierre Fersing
de38403899 Added more Windows metrics (#2290)
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2017-01-24 12:38:10 -08:00
James
6994b25656 fix postgresql 'name', and 'oid' data types by switching to a driver (#1750)
that handles them properly
2017-01-24 12:36:36 -08:00
Cameron Sparr
845392e090 32-bit binary for windows and freebsd
closes #1346
closes #2218
2017-01-23 20:28:13 -08:00
Cameron Sparr
819813ad72 influxdb output: treat field type conflicts as a successful write
If we write a batch of points and get a "field type conflict" error
message in return, we should drop the entire batch of points because
this indicates that one or more points have a type that doesnt match the
database.

These errors will never go away on their own, and InfluxDB will
successfully write the points that dont have a conflict.

closes #2245
2017-01-23 16:41:29 -08:00
Cameron Sparr
e06f1e0323 Run scheduled flushes in background
doing this unblocks incoming metrics while waiting for a flush to take
place.

we have to create a semaphore so that we can
'skip' flushes that try to run while a flush is already running.

closes #2262
2017-01-23 14:41:40 -08:00
Cameron Sparr
4d72cd7c9f Add newline to influx line-protocol if not present
closes #2297
2017-01-23 13:52:20 -08:00
Cameron Sparr
a852e8106e opentsdb: add tcp:// prefix if not present
closes #2299
2017-01-23 13:45:16 -08:00
Claudius Zingerli
c9e0ae4d81 Add minimal documentation to the diskio plugin (#2296)
* Add documentation to diskio plugin

* Update spelling, fix iops_in_progress unit
2017-01-21 15:08:17 -08:00
Cameron Sparr
c3d1da6b6b Direct people to downloads page for installation 2017-01-13 17:02:10 +00:00
Cameron Sparr
6ca52195a9 mysql build fixup and changelog update 2017-01-13 14:44:28 +00:00
Pierre Fersing
a33c86f9c4 Added more InnoDB metric to MySQL plugin (#2179) 2017-01-13 14:28:56 +00:00
Cameron Sparr
3551fbff4d Changelog update and go fmt 2017-01-13 14:27:20 +00:00
acezellponce
338f01a8da Added userstats to mysql input plugin (#2137)
* Added GatherUserStatistics, row Uptime in gatherGlobalStatuses, and version fields & tags

* Updated README file

* pulling in latest from master

* ran go fmt to fix formatting

* fix unreachable code

* few fixes

* cleaning up and applying suggestions from sparrc
2017-01-13 14:25:25 +00:00
Viet Hung Nguyen
c4a708751a Ignore devfs on OSX (#2232) 2017-01-13 14:19:57 +00:00
Cameron Sparr
ab8b7a55e1 Changelog update 2017-01-13 13:50:07 +00:00
Kebus1
6a9187ff48 Fixed Bug 2077 SQL Server (#2212) 2017-01-13 13:47:47 +00:00
Cameron Sparr
9b0e1e9c49 OpenTSDB filter types for HTTP AND telnet 2017-01-13 11:44:28 +00:00
Cameron Sparr
eb67b17c28 Accept an HTTP request body without newline at end (#2266)
I don't like this behavior, but it's what InfluxDB accepts, so the
telegraf listener should be consistent with that.

I accidentally reverted this behavior when I refactored the telegraf
metric representation earlier in this release cycle.
2017-01-13 11:43:50 +00:00
Cameron Sparr
51d343785e update etc/telegraf.conf 2017-01-12 11:14:12 +00:00
Patrick Hemmer
0c15099d94 allow changing jolokia delimiter (#2255) 2017-01-12 11:08:22 +00:00
Mohammad Ali Alfarra
b277a28e15 Document basic auth for haproxy (#2258)
* Document basic auth for haproxy

* Typo in haproxy readme
2017-01-12 08:47:01 +00:00
Cameron Sparr
61defd36d3 mongodb: Remove superfluous ReplSet log message
closes #2248
2017-01-11 17:50:01 +00:00
Emil Haugbergsmyr
9d28ebce91 Fixes change in Kafka consumer input plugin (#2222)
* Fixes change to the error api in the kafka project.

* Updated test to reflect the change.

* Update kafka to match master branch.
2017-01-11 16:24:09 +00:00
Kurt Mackey
6735d4e62c Fix for broken librato output (#2225)
* Fix for broken librato output

These errors are delightful, but I'd rather avoid them:

```
Error parsing /etc/telegraf/telegraf.conf, line 2: field corresponding to `api_user' is not defined in `*librato.Librato'
```

* Fixed bad format from last commit
2017-01-09 14:48:32 +00:00
Patrick Hemmer
e225aa85e4 ensure proper context on snmp error messages (#2220) 2017-01-09 13:03:33 +00:00
Jérôme Vizcaino
0d357a7d5b ceph: sample config should reflect actual defaults (#2228) 2017-01-09 12:51:15 +00:00
Cameron Sparr
fe9d3257c7 readme fixup & test output fixup 2017-01-09 12:28:13 +00:00
Cameron Sparr
c9089b4700 mongodb: dont print unecessary & inaccurate auth failure
closes #2209
2017-01-06 13:11:24 +01:00
YKlausz
fb225d69f8 Remove print call in cassandra plugin (#2192) 2016-12-21 17:23:54 +00:00
Dominik Labuda
e16072876d [plugins] jolokia input plugin: configurable http timeouts (#2098) 2016-12-21 12:41:58 +00:00
Cameron Sparr
b77dc90741 docker: check type when totalling blkio & net metrics
closes #2027
2016-12-21 12:18:38 +00:00
Cameron Sparr
1cc763e514 Do not try Uint parsing in redis plugin
this is just a waste of cpu cycles, since telegraf converts all uints to
int64 anyways.
2016-12-20 23:42:14 +00:00
Mark Wolfe
2f521a87d4 Fix for loop over value array range issue. (#2187) 2016-12-20 22:56:02 +00:00
Cameron Sparr
8311ff9156 Mask username/password from error messages
closes #1980
2016-12-20 19:35:45 +00:00
Cameron Sparr
84fc621a1a changelog update 2016-12-20 18:50:32 +00:00
Mark Wolfe
829c190b8c Moved to using the inbuilt serializer. (#1942)
* Moved to using the inbuilt serializer.

* Remove Atomic variable as it is not required.

* Adjusted metric type in line with latest changes.
2016-12-20 18:49:28 +00:00
Cameron Sparr
73acd114d1 Do not create a global statsd "previous instance"
this basically reverts #887

at some point we might want to do some special handling of reloading
plugins and keeping their state intact, but that will need to be done at
a higher level, and in a way that is thread-safe for multiple input
plugins of the same type.

Unfortunately this is a rather large feature that will not have a quick
fix available for it.

fixes #1975
fixes #2102
2016-12-20 17:55:04 +00:00
Cameron Sparr
491ba10b00 changelog update 2016-12-20 16:30:49 +00:00
Matt O'Hara
b0609beb2b Add clusterstats to elasticsearch plugin (#1979)
* add clusterstats to elasticsearch input plugin

* add clusterstats to elasticsearch input plugin

* add clusterstats to elasticsearch input plugin

* add clusterstats to elasticsearch input plugin

* add clusterstats to elasticsearch input plugin

* responses to requested changes

* remove unnecessary recommendation
2016-12-20 16:30:03 +00:00
Cameron Sparr
48fc28331e Fix & unit test logparser CLF pattern with IPv6
deals partially with #1973

see also https://github.com/vjeantet/grok/issues/17
2016-12-20 15:57:32 +00:00
Cameron Sparr
cf9fd9bb5f Support negative statsd counters
closes #1898
2016-12-20 13:21:51 +00:00
Cameron Sparr
a2feba21de changelog update 2016-12-20 13:04:51 +00:00
Łukasz Harasimowicz
68b351ca05 Fixing consul with multiple health checks per service (#1994)
* plugins/input/consul: moved check_id from regular fields to tags.

When service has more than one check sending data for both would overwrite each other
resulting only in one check being written (the last one). Adding check_id as a tag
ensures we will get info for all unique checks per service.

* plugins/inputs/consul: updated tests
2016-12-20 13:03:31 +00:00
Jeff Ashton
ca31aaad85 Importing pdh from github.com/lxn/win
closes #1763
closes #2017
2016-12-20 12:06:40 +00:00
Ken Dilley
08057b2bd3 Update MySQL Readme to clarify connection string examples. (#2175)
* Update MySQL Readme to clarify connection string examples.

* Update mysql sample config to clarify connection string examples
2016-12-20 10:17:00 +00:00
Cameron Sparr
468e7e2c74 internal.Duration build fixup 2016-12-17 13:10:33 +00:00
Pierre Tessier
6f9de7ab3d Added response_timeout property
closes #2006
2016-12-17 13:06:04 +00:00
Steven Pall
08f03ceba2 Add trailing slash to jolokia context (#2105) 2016-12-17 12:51:46 +00:00
Cameron Sparr
d2d00a6286 changelog update 2016-12-16 17:30:13 +00:00
Vincent
b7764a58a9 fix mongodb replica set lag awalys 0 #1449 (#2125) 2016-12-16 17:29:04 +00:00
Cameron Sparr
e8e5e5b818 rabbitmq, decrease timeout verbosity in config 2016-12-16 14:12:50 +00:00
Tevin Jeffrey
c02828322c Add field for last GC pause time (#2121) 2016-12-16 14:03:53 +00:00
Cameron Sparr
fbdb8b83d6 changelog update 2016-12-16 14:02:11 +00:00
Patrick Hemmer
f57b8aac0b fix tail input seeking when used with pipe (#2090) 2016-12-16 14:01:49 +00:00
alekseyp
d27c78a979 Standard deviation (jitter) for Input plugin Ping (#2078) 2016-12-16 13:58:27 +00:00
Cameron Sparr
cf7ea36541 changelog update 2016-12-16 13:54:51 +00:00
Alex Sherwin
86d31a5b79 fixes #1987 custom docker repos with non-standard port (#2018)
* fixed parsing of docker image name/version

now accounts for custom docker repo's which contain a colon for a non-default port

* 1978: modifying docker test case to have a custom repo with non-standard port

* using a temp var to store index, ran gofmt

* fixes #1987, renaming iterator to 'i'
2016-12-16 13:53:16 +00:00
Pierre Tessier
6255e9b474 Add Questions status variable for issue: #1988 (#2004) 2016-12-16 13:47:47 +00:00
Doug Reese
2214ee90b6 MongoDB input plugin: Improve state data (#2001)
* MongoDB input plugin: Improve state data

Adds ARB as a "member_status" (replica set arbiter).
Uses MongoDB replica set state string for "state" value.

* MongoDB input plugin: Improve state data - changelog update
2016-12-16 13:46:32 +00:00
Frank Stutz
99daa52254 fix for puppetagent config - test 1
put Makefile back to normal

removed comment from puppetagent.go

changed config_version to config_version_string and fixed yaml for build

changed workind from branch to environment for config_string

fixed casing and Changelog

fixed test case

closes #1917
2016-12-16 13:36:06 +00:00
Cameron Sparr
1ebc7245a3 Revert "Rabbitmq plugin: connection-related metrics." (#2169) 2016-12-15 19:31:40 +00:00
Florian Klink
d323a8f2e8 ping: fix typo in README (#2163) 2016-12-14 19:47:48 +00:00
Jose Luis Navarro
283bd6d965 Collect JSON values recursively
closes #1993
closes #1693
2016-12-13 21:06:05 +00:00
Pieter Slabbert
182f282fd2 Enable setting a clientID for MQTT Output
closes #2079
closes #1910
2016-12-13 20:03:09 +00:00
Cameron Sparr
cebbf39276 Set default values for delete_ configuration options
closes #1893
2016-12-13 20:00:52 +00:00
Jonas Falck
74d8aef0c0 Change hddtemp to always put temperature in temperature field (#1905)
Added unit tests for the changes

Fixes #1904
2016-12-13 19:40:55 +00:00
Cameron Sparr
c4c13c4e90 Graylog output should set short_message field
closes #2045
2016-12-13 16:10:59 +00:00
Cameron Sparr
b78859b331 Fix documentation for net_response plugin
closes #2103
2016-12-13 16:02:03 +00:00
Cameron Sparr
a5fd775369 Support strings in statsd set measurements
closes #2068
2016-12-13 15:42:22 +00:00
Cameron Sparr
8176f6f273 Fix possible panic when file info cannot be gotten
closes #2061
2016-12-13 14:54:07 +00:00
Cameron Sparr
921a3b1b65 Update changelog 2016-12-13 14:28:28 +00:00
Da1den
3e2296541a Fixed bug that you cannot gather data on non english systems (#1944) 2016-12-13 14:24:41 +00:00
krise3k
4a0f3a7100 Add missing slim (#1937) 2016-12-13 14:23:18 +00:00
Kishore Nallan
af850b8854 Rabbitmq plugin: connection-related metrics. (#1908)
* Rabbitmq plugin: connection-related metrics.

* Run go fmt.
2016-12-13 14:17:20 +00:00
Anthony Arnaud
a61148904d Output openTSDB HTTPS with basic auth (#1913) 2016-12-13 14:15:51 +00:00
Leon Barrett
9add7b9e9a Fix bug: too many cloudwatch metrics (#1885)
* Fix bug: too many cloudwatch metrics

Cloudwatch metrics were being added incorrectly. The most obvious
symptom of this was that too many metrics were being added. A simple
check against the name of the metric proved to be a sufficient fix. In
order to test the fix, a metric selection function was factored out.

* Go fmt cloudwatch

* Cloudwatch isSelected checks metric name

* Move cloudwatch line in changelog to 1.2 features
2016-12-13 14:13:53 +00:00
Rikaard Hosein
bf8e1b5f13 Can turn pid into tag instead of field
closes #1843
fixes  #1668
2016-12-13 13:21:39 +00:00
Cameron Sparr
cab1118c31 Check if metric is nil before calling SetAggregate
fixes #2146
2016-12-13 12:27:10 +00:00
18 changed files with 1178 additions and 24 deletions

View File

@@ -54,11 +54,11 @@ fmtcheck:
@echo '[INFO] done.'
test-windows:
go test -short ./plugins/inputs/ping/...
go test -short ./plugins/inputs/win_perf_counters/...
go test -short ./plugins/inputs/win_services/...
go test -short ./plugins/inputs/procstat/...
go test -short ./plugins/inputs/ntpq/...
go test ./plugins/inputs/ping/...
go test ./plugins/inputs/win_perf_counters/...
go test ./plugins/inputs/win_services/...
go test ./plugins/inputs/procstat/...
go test ./plugins/inputs/ntpq/...
# vet runs the Go source code static analysis tool `vet` to find
# any common errors.
@@ -92,4 +92,4 @@ docker-image:
plugins/parsers/influx/machine.go: plugins/parsers/influx/machine.go.rl
ragel -Z -G2 $^ -o $@
.PHONY: deps telegraf install test test-windows lint vet test-all package clean docker-image fmtcheck uint64
.PHONY: deps telegraf install test test-windows lint vet test-all package clean docker-image fmtcheck uint64

View File

@@ -9,6 +9,8 @@ Telegraf is able to parse the following input data formats into metrics:
1. [Nagios](https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md#nagios) (exec input only)
1. [Collectd](https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md#collectd)
1. [Dropwizard](https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md#dropwizard)
1. [Grok](https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md#grok)
Telegraf metrics, like InfluxDB
[points](https://docs.influxdata.com/influxdb/v0.10/write_protocols/line/),
@@ -651,5 +653,37 @@ For more information about the dropwizard json format see
# [inputs.exec.dropwizard_tag_paths]
# tag1 = "tags.tag1"
# tag2 = "tags.tag2"
```
```
#### Grok
Parse logstash-style "grok" patterns:
```toml
[inputs.reader]
## This is a list of patterns to check the given log file(s) for.
## Note that adding patterns here increases processing time. The most
## efficient configuration is to have one pattern per logparser.
## Other common built-in patterns are:
## %{COMMON_LOG_FORMAT} (plain apache & nginx access logs)
## %{COMBINED_LOG_FORMAT} (access logs + referrer & agent)
patterns = ["%{COMBINED_LOG_FORMAT}"]
## Name of the outputted measurement name.
name_override = "apache_access_log"
## Full path(s) to custom pattern files.
custom_pattern_files = []
## Custom patterns can also be defined here. Put one pattern per line.
custom_patterns = '''
## Timezone allows you to provide an override for timestamps that
## don't already include an offset
## e.g. 04/06/2016 12:41:45 data one two 5.43µs
##
## Default: "" which renders UTC
## Options are as follows:
## 1. Local -- interpret based on machine localtime
## 2. "Canada/Eastern" -- Unix TZ values like those found in https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
## 3. UTC -- or blank/unspecified, will return timestamp in UTC
timezone = "Canada/Eastern"
```

View File

@@ -211,16 +211,12 @@ var header = `# Telegraf Configuration
# Environment variables can be used anywhere in this config file, simply prepend
# them with $. For strings the variable must be within quotes (ie, "$STR_VAR"),
# for numbers and booleans they should be plain (ie, $INT_VAR, $BOOL_VAR)
# Global tags can be specified here in key="value" format.
[global_tags]
# dc = "us-east-1" # will tag all metrics with dc=us-east-1
# rack = "1a"
## Environment variables can be used as tags, and throughout the config file
# user = "$USER"
# Configuration for telegraf agent
[agent]
## Default data collection interval for all inputs
@@ -228,24 +224,20 @@ var header = `# Telegraf Configuration
## Rounds collection interval to 'interval'
## ie, if interval="10s" then always collect on :00, :10, :20, etc.
round_interval = true
## Telegraf will send metrics to outputs in batches of at most
## metric_batch_size metrics.
## This controls the size of writes that Telegraf sends to output plugins.
metric_batch_size = 1000
## For failed writes, telegraf will cache metric_buffer_limit metrics for each
## output, and will flush this buffer on a successful write. Oldest metrics
## are dropped first when this buffer fills.
## This buffer only fills when writes fail to output plugin(s).
metric_buffer_limit = 10000
## Collection jitter is used to jitter the collection by a random amount.
## Each plugin will sleep for a random time within jitter before collecting.
## This can be used to avoid many plugins querying things like sysfs at the
## same time, which can have a measurable effect on the system.
collection_jitter = "0s"
## Default flushing interval for all outputs. You shouldn't set this below
## interval. Maximum flush_interval will be flush_interval + flush_jitter
flush_interval = "10s"
@@ -253,7 +245,6 @@ var header = `# Telegraf Configuration
## large write spikes for users running a large number of telegraf instances.
## ie, a jitter of 5s and interval 10s means flushes will happen every 10-15s
flush_jitter = "0s"
## By default or when set to "0s", precision will be set to the same
## timestamp order as the collection interval, with the maximum being 1s.
## ie, when interval = "10s", precision will be "1s"
@@ -262,7 +253,6 @@ var header = `# Telegraf Configuration
## service input to set the timestamp at the appropriate precision.
## Valid time units are "ns", "us" (or "µs"), "ms", "s".
precision = ""
## Logging configuration:
## Run telegraf with debug log messages.
debug = false
@@ -270,41 +260,34 @@ var header = `# Telegraf Configuration
quiet = false
## Specify the log file name. The empty string means to log to stderr.
logfile = ""
## Override default hostname, if empty use os.Hostname()
hostname = ""
## If set to true, do no set the "host" tag in the telegraf agent.
omit_hostname = false
###############################################################################
# OUTPUT PLUGINS #
###############################################################################
`
var processorHeader = `
###############################################################################
# PROCESSOR PLUGINS #
###############################################################################
`
var aggregatorHeader = `
###############################################################################
# AGGREGATOR PLUGINS #
###############################################################################
`
var inputHeader = `
###############################################################################
# INPUT PLUGINS #
###############################################################################
`
var serviceInputHeader = `
###############################################################################
# SERVICE INPUT PLUGINS #
###############################################################################
@@ -1338,6 +1321,59 @@ func buildParser(name string, tbl *ast.Table) (parsers.Parser, error) {
}
}
//for grok data_format
if node, ok := tbl.Fields["named_patterns"]; ok {
if kv, ok := node.(*ast.KeyValue); ok {
if ary, ok := kv.Value.(*ast.Array); ok {
for _, elem := range ary.Value {
if str, ok := elem.(*ast.String); ok {
c.NamedPatterns = append(c.NamedPatterns, str.Value)
}
}
}
}
}
if node, ok := tbl.Fields["patterns"]; ok {
if kv, ok := node.(*ast.KeyValue); ok {
if ary, ok := kv.Value.(*ast.Array); ok {
for _, elem := range ary.Value {
if str, ok := elem.(*ast.String); ok {
c.Patterns = append(c.Patterns, str.Value)
}
}
}
}
}
if node, ok := tbl.Fields["custom_patterns"]; ok {
if kv, ok := node.(*ast.KeyValue); ok {
if str, ok := kv.Value.(*ast.String); ok {
c.CustomPatterns = str.Value
}
}
}
if node, ok := tbl.Fields["custom_pattern_files"]; ok {
if kv, ok := node.(*ast.KeyValue); ok {
if ary, ok := kv.Value.(*ast.Array); ok {
for _, elem := range ary.Value {
if str, ok := elem.(*ast.String); ok {
c.CustomPatternFiles = append(c.CustomPatternFiles, str.Value)
}
}
}
}
}
if node, ok := tbl.Fields["timezone"]; ok {
if kv, ok := node.(*ast.KeyValue); ok {
if str, ok := kv.Value.(*ast.String); ok {
c.TimeZone = str.Value
}
}
}
c.MetricName = name
delete(tbl.Fields, "data_format")
@@ -1353,6 +1389,11 @@ func buildParser(name string, tbl *ast.Table) (parsers.Parser, error) {
delete(tbl.Fields, "dropwizard_time_format")
delete(tbl.Fields, "dropwizard_tags_path")
delete(tbl.Fields, "dropwizard_tag_paths")
delete(tbl.Fields, "named_patterns")
delete(tbl.Fields, "patterns")
delete(tbl.Fields, "custom_patterns")
delete(tbl.Fields, "custom_pattern_files")
delete(tbl.Fields, "timezone")
return parsers.NewParser(c)
}

View File

@@ -85,6 +85,7 @@ import (
_ "github.com/influxdata/telegraf/plugins/inputs/puppetagent"
_ "github.com/influxdata/telegraf/plugins/inputs/rabbitmq"
_ "github.com/influxdata/telegraf/plugins/inputs/raindrops"
_ "github.com/influxdata/telegraf/plugins/inputs/reader"
_ "github.com/influxdata/telegraf/plugins/inputs/redis"
_ "github.com/influxdata/telegraf/plugins/inputs/rethinkdb"
_ "github.com/influxdata/telegraf/plugins/inputs/riak"

View File

@@ -0,0 +1,23 @@
# Reader Input Plugin
The `reader` plugin reads and parses files every interval. Reader will always begin at the top of each file.
Reader supports all data_format formats
### Configuration
```toml
## Files to parse each interval.
## These accept standard unix glob matching rules, but with the addition of
## ** as a "super asterisk". ie:
## /var/log/**.log -> recursively find all .log files in /var/log
## /var/log/*/*.log -> find all .log files with a parent dir in /var/log
## /var/log/apache.log -> only tail the apache log file
files = ["/var/log/apache/access.log"]
## The dataformat to be read from files
## Each data format has its own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
data_format = ""
```

View File

@@ -0,0 +1,14 @@
version: '3'
services:
telegraf:
image: glinton/scratch
volumes:
- ./telegraf.conf:/telegraf.conf
- ../../../../telegraf:/telegraf
- ./json_a.log:/var/log/test.log
entrypoint:
- /telegraf
- --config
- /telegraf.conf

View File

@@ -0,0 +1,15 @@
{
"parent": {
"child": 3.0,
"ignored_child": "hi"
},
"ignored_null": null,
"integer": 4,
"list": [3, 4],
"ignored_parent": {
"another_ignored_null": null,
"ignored_string": "hello, world!"
},
"another_list": [4]
}

View File

@@ -0,0 +1,8 @@
[[inputs.reader]]
files = ["/var/log/test.log"]
data_format = "json"
name_override = "json_reader"
[[outputs.file]]
files = ["stdout"]

View File

@@ -0,0 +1,102 @@
package reader
import (
"io/ioutil"
"log"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/internal/globpath"
"github.com/influxdata/telegraf/plugins/inputs"
"github.com/influxdata/telegraf/plugins/parsers"
)
type Reader struct {
Filepaths []string `toml:"files"`
FromBeginning bool
parser parsers.Parser
Filenames []string
}
const sampleConfig = `## Files to parse each interval.
## These accept standard unix glob matching rules, but with the addition of
## ** as a "super asterisk". ie:
## /var/log/**.log -> recursively find all .log files in /var/log
## /var/log/*/*.log -> find all .log files with a parent dir in /var/log
## /var/log/apache.log -> only tail the apache log file
files = ["/var/log/apache/access.log"]
## The dataformat to be read from files
## Each data format has its own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
data_format = ""
`
// SampleConfig returns the default configuration of the Input
func (r *Reader) SampleConfig() string {
return sampleConfig
}
func (r *Reader) Description() string {
return "reload and gather from file[s] on telegraf's interval"
}
func (r *Reader) Gather(acc telegraf.Accumulator) error {
r.refreshFilePaths()
for _, k := range r.Filenames {
metrics, err := r.readMetric(k)
if err != nil {
return err
}
for i, m := range metrics {
//error if m is nil
if m == nil {
log.Printf("E! Metric could not be parsed from: %v, on line %v", k, i)
continue
}
acc.AddFields(m.Name(), m.Fields(), m.Tags())
}
}
return nil
}
func (r *Reader) SetParser(p parsers.Parser) {
r.parser = p
}
func (r *Reader) refreshFilePaths() {
var allFiles []string
for _, filepath := range r.Filepaths {
g, err := globpath.Compile(filepath)
if err != nil {
log.Printf("E! Error Glob %s failed to compile, %s", filepath, err)
continue
}
files := g.Match()
for k := range files {
allFiles = append(allFiles, k)
}
}
r.Filenames = allFiles
}
//requires that Parser has been compiled
func (r *Reader) readMetric(filename string) ([]telegraf.Metric, error) {
fileContents, err := ioutil.ReadFile(filename)
if err != nil {
log.Printf("E! File could not be opened: %v", filename)
}
return r.parser.Parse(fileContents)
}
func init() {
inputs.Add("reader", func() telegraf.Input {
return &Reader{}
})
}

View File

@@ -0,0 +1,64 @@
package reader
import (
"runtime"
"strings"
"testing"
"github.com/influxdata/telegraf/plugins/parsers"
"github.com/influxdata/telegraf/testutil"
"github.com/stretchr/testify/assert"
)
func TestRefreshFilePaths(t *testing.T) {
testDir := getPluginDir()
r := Reader{
Filepaths: []string{testDir + "/logparser/grok/testdata/**.log"},
}
r.refreshFilePaths()
assert.Equal(t, len(r.Filenames), 2)
}
func TestJSONParserCompile(t *testing.T) {
testDir := getPluginDir()
var acc testutil.Accumulator
r := Reader{
Filepaths: []string{testDir + "/reader/testfiles/json_a.log"},
}
parserConfig := parsers.Config{
DataFormat: "json",
TagKeys: []string{"parent_ignored_child"},
}
nParser, err := parsers.NewParser(&parserConfig)
r.parser = nParser
assert.NoError(t, err)
r.Gather(&acc)
assert.Equal(t, map[string]string{"parent_ignored_child": "hi"}, acc.Metrics[0].Tags)
assert.Equal(t, 5, len(acc.Metrics[0].Fields))
}
func TestGrokParser(t *testing.T) {
testDir := getPluginDir()
var acc testutil.Accumulator
r := Reader{
Filepaths: []string{testDir + "/reader/testfiles/grok_a.log"},
}
parserConfig := parsers.Config{
DataFormat: "grok",
Patterns: []string{"%{COMMON_LOG_FORMAT}"},
}
nParser, err := parsers.NewParser(&parserConfig)
r.parser = nParser
assert.NoError(t, err)
err = r.Gather(&acc)
assert.Equal(t, 2, len(acc.Metrics))
}
func getPluginDir() string {
_, filename, _, _ := runtime.Caller(1)
return strings.Replace(filename, "/reader/reader_test.go", "", 1)
}

View File

@@ -0,0 +1,2 @@
127.0.0.1 user-identifier frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326
128.0.0.1 user-identifier tony [10/Oct/2000:13:55:36 -0800] "GET /apache_pb.gif HTTP/1.0" 300 45

View File

@@ -0,0 +1,14 @@
{
"parent": {
"child": 3.0,
"ignored_child": "hi"
},
"ignored_null": null,
"integer": 4,
"list": [3, 4],
"ignored_parent": {
"another_ignored_null": null,
"ignored_string": "hello, world!"
},
"another_list": [4]
}

View File

@@ -0,0 +1,73 @@
# Captures are a slightly modified version of logstash "grok" patterns, with
# the format %{<capture syntax>[:<semantic name>][:<modifier>]}
# By default all named captures are converted into string fields.
# Modifiers can be used to convert captures to other types or tags.
# Timestamp modifiers can be used to convert captures to the timestamp of the
# parsed metric.
# View logstash grok pattern docs here:
# https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html
# All default logstash patterns are supported, these can be viewed here:
# https://github.com/logstash-plugins/logstash-patterns-core/blob/master/patterns/grok-patterns
# Available modifiers:
# string (default if nothing is specified)
# int
# float
# duration (ie, 5.23ms gets converted to int nanoseconds)
# tag (converts the field into a tag)
# drop (drops the field completely)
# Timestamp modifiers:
# ts-ansic ("Mon Jan _2 15:04:05 2006")
# ts-unix ("Mon Jan _2 15:04:05 MST 2006")
# ts-ruby ("Mon Jan 02 15:04:05 -0700 2006")
# ts-rfc822 ("02 Jan 06 15:04 MST")
# ts-rfc822z ("02 Jan 06 15:04 -0700")
# ts-rfc850 ("Monday, 02-Jan-06 15:04:05 MST")
# ts-rfc1123 ("Mon, 02 Jan 2006 15:04:05 MST")
# ts-rfc1123z ("Mon, 02 Jan 2006 15:04:05 -0700")
# ts-rfc3339 ("2006-01-02T15:04:05Z07:00")
# ts-rfc3339nano ("2006-01-02T15:04:05.999999999Z07:00")
# ts-httpd ("02/Jan/2006:15:04:05 -0700")
# ts-epoch (seconds since unix epoch)
# ts-epochnano (nanoseconds since unix epoch)
# ts-"CUSTOM"
# CUSTOM time layouts must be within quotes and be the representation of the
# "reference time", which is Mon Jan 2 15:04:05 -0700 MST 2006
# See https://golang.org/pkg/time/#Parse for more details.
# Example log file pattern, example log looks like this:
# [04/Jun/2016:12:41:45 +0100] 1.25 200 192.168.1.1 5.432µs
# Breakdown of the DURATION pattern below:
# NUMBER is a builtin logstash grok pattern matching float & int numbers.
# [nuµm]? is a regex specifying 0 or 1 of the characters within brackets.
# s is also regex, this pattern must end in "s".
# so DURATION will match something like '5.324ms' or '6.1µs' or '10s'
DURATION %{NUMBER}[nuµm]?s
RESPONSE_CODE %{NUMBER:response_code:tag}
RESPONSE_TIME %{DURATION:response_time_ns:duration}
EXAMPLE_LOG \[%{HTTPDATE:ts:ts-httpd}\] %{NUMBER:myfloat:float} %{RESPONSE_CODE} %{IPORHOST:clientip} %{RESPONSE_TIME}
# Wider-ranging username matching vs. logstash built-in %{USER}
NGUSERNAME [a-zA-Z0-9\.\@\-\+_%]+
NGUSER %{NGUSERNAME}
# Wider-ranging client IP matching
CLIENT (?:%{IPORHOST}|%{HOSTPORT}|::1)
##
## COMMON LOG PATTERNS
##
# apache & nginx logs, this is also known as the "common log format"
# see https://en.wikipedia.org/wiki/Common_Log_Format
COMMON_LOG_FORMAT %{CLIENT:client_ip} %{NOTSPACE:ident} %{NOTSPACE:auth} \[%{HTTPDATE:ts:ts-httpd}\] "(?:%{WORD:verb:tag} %{NOTSPACE:request}(?: HTTP/%{NUMBER:http_version:float})?|%{DATA})" %{NUMBER:resp_code:tag} (?:%{NUMBER:resp_bytes:int}|-)
# Combined log format is the same as the common log format but with the addition
# of two quoted strings at the end for "referrer" and "agent"
# See Examples at http://httpd.apache.org/docs/current/mod/mod_log_config.html
COMBINED_LOG_FORMAT %{COMMON_LOG_FORMAT} %{QS:referrer} %{QS:agent}
# HTTPD log formats
HTTPD20_ERRORLOG \[%{HTTPDERROR_DATE:timestamp}\] \[%{LOGLEVEL:loglevel:tag}\] (?:\[client %{IPORHOST:clientip}\] ){0,1}%{GREEDYDATA:errormsg}
HTTPD24_ERRORLOG \[%{HTTPDERROR_DATE:timestamp}\] \[%{WORD:module}:%{LOGLEVEL:loglevel:tag}\] \[pid %{POSINT:pid:int}:tid %{NUMBER:tid:int}\]( \(%{POSINT:proxy_errorcode:int}\)%{DATA:proxy_errormessage}:)?( \[client %{IPORHOST:client}:%{POSINT:clientport}\])? %{DATA:errorcode}: %{GREEDYDATA:message}
HTTPD_ERRORLOG %{HTTPD20_ERRORLOG}|%{HTTPD24_ERRORLOG}

View File

@@ -0,0 +1,78 @@
package grok
// DEFAULT_PATTERNS SHOULD BE KEPT IN-SYNC WITH patterns/influx-patterns
const DEFAULT_PATTERNS = `
# Captures are a slightly modified version of logstash "grok" patterns, with
# the format %{<capture syntax>[:<semantic name>][:<modifier>]}
# By default all named captures are converted into string fields.
# Modifiers can be used to convert captures to other types or tags.
# Timestamp modifiers can be used to convert captures to the timestamp of the
# parsed metric.
# View logstash grok pattern docs here:
# https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html
# All default logstash patterns are supported, these can be viewed here:
# https://github.com/logstash-plugins/logstash-patterns-core/blob/master/patterns/grok-patterns
# Available modifiers:
# string (default if nothing is specified)
# int
# float
# duration (ie, 5.23ms gets converted to int nanoseconds)
# tag (converts the field into a tag)
# drop (drops the field completely)
# Timestamp modifiers:
# ts-ansic ("Mon Jan _2 15:04:05 2006")
# ts-unix ("Mon Jan _2 15:04:05 MST 2006")
# ts-ruby ("Mon Jan 02 15:04:05 -0700 2006")
# ts-rfc822 ("02 Jan 06 15:04 MST")
# ts-rfc822z ("02 Jan 06 15:04 -0700")
# ts-rfc850 ("Monday, 02-Jan-06 15:04:05 MST")
# ts-rfc1123 ("Mon, 02 Jan 2006 15:04:05 MST")
# ts-rfc1123z ("Mon, 02 Jan 2006 15:04:05 -0700")
# ts-rfc3339 ("2006-01-02T15:04:05Z07:00")
# ts-rfc3339nano ("2006-01-02T15:04:05.999999999Z07:00")
# ts-httpd ("02/Jan/2006:15:04:05 -0700")
# ts-epoch (seconds since unix epoch)
# ts-epochnano (nanoseconds since unix epoch)
# ts-"CUSTOM"
# CUSTOM time layouts must be within quotes and be the representation of the
# "reference time", which is Mon Jan 2 15:04:05 -0700 MST 2006
# See https://golang.org/pkg/time/#Parse for more details.
# Example log file pattern, example log looks like this:
# [04/Jun/2016:12:41:45 +0100] 1.25 200 192.168.1.1 5.432µs
# Breakdown of the DURATION pattern below:
# NUMBER is a builtin logstash grok pattern matching float & int numbers.
# [nuµm]? is a regex specifying 0 or 1 of the characters within brackets.
# s is also regex, this pattern must end in "s".
# so DURATION will match something like '5.324ms' or '6.1µs' or '10s'
DURATION %{NUMBER}[nuµm]?s
RESPONSE_CODE %{NUMBER:response_code:tag}
RESPONSE_TIME %{DURATION:response_time_ns:duration}
EXAMPLE_LOG \[%{HTTPDATE:ts:ts-httpd}\] %{NUMBER:myfloat:float} %{RESPONSE_CODE} %{IPORHOST:clientip} %{RESPONSE_TIME}
# Wider-ranging username matching vs. logstash built-in %{USER}
NGUSERNAME [a-zA-Z0-9\.\@\-\+_%]+
NGUSER %{NGUSERNAME}
# Wider-ranging client IP matching
CLIENT (?:%{IPV6}|%{IPV4}|%{HOSTNAME}|%{HOSTPORT})
##
## COMMON LOG PATTERNS
##
# apache & nginx logs, this is also known as the "common log format"
# see https://en.wikipedia.org/wiki/Common_Log_Format
COMMON_LOG_FORMAT %{CLIENT:client_ip} %{NOTSPACE:ident} %{NOTSPACE:auth} \[%{HTTPDATE:ts:ts-httpd}\] "(?:%{WORD:verb:tag} %{NOTSPACE:request}(?: HTTP/%{NUMBER:http_version:float})?|%{DATA})" %{NUMBER:resp_code:tag} (?:%{NUMBER:resp_bytes:int}|-)
# Combined log format is the same as the common log format but with the addition
# of two quoted strings at the end for "referrer" and "agent"
# See Examples at http://httpd.apache.org/docs/current/mod/mod_log_config.html
COMBINED_LOG_FORMAT %{COMMON_LOG_FORMAT} %{QS:referrer} %{QS:agent}
# HTTPD log formats
HTTPD20_ERRORLOG \[%{HTTPDERROR_DATE:timestamp}\] \[%{LOGLEVEL:loglevel:tag}\] (?:\[client %{IPORHOST:clientip}\] ){0,1}%{GREEDYDATA:errormsg}
HTTPD24_ERRORLOG \[%{HTTPDERROR_DATE:timestamp}\] \[%{WORD:module}:%{LOGLEVEL:loglevel:tag}\] \[pid %{POSINT:pid:int}:tid %{NUMBER:tid:int}\]( \(%{POSINT:proxy_errorcode:int}\)%{DATA:proxy_errormessage}:)?( \[client %{IPORHOST:client}:%{POSINT:clientport}\])? %{DATA:errorcode}: %{GREEDYDATA:message}
HTTPD_ERRORLOG %{HTTPD20_ERRORLOG}|%{HTTPD24_ERRORLOG}
`

View File

@@ -0,0 +1,527 @@
package grok
import (
"bufio"
"fmt"
"log"
"os"
"regexp"
"strconv"
"strings"
"time"
"github.com/vjeantet/grok"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/metric"
)
var timeLayouts = map[string]string{
"ts-ansic": "Mon Jan _2 15:04:05 2006",
"ts-unix": "Mon Jan _2 15:04:05 MST 2006",
"ts-ruby": "Mon Jan 02 15:04:05 -0700 2006",
"ts-rfc822": "02 Jan 06 15:04 MST",
"ts-rfc822z": "02 Jan 06 15:04 -0700", // RFC822 with numeric zone
"ts-rfc850": "Monday, 02-Jan-06 15:04:05 MST",
"ts-rfc1123": "Mon, 02 Jan 2006 15:04:05 MST",
"ts-rfc1123z": "Mon, 02 Jan 2006 15:04:05 -0700", // RFC1123 with numeric zone
"ts-rfc3339": "2006-01-02T15:04:05Z07:00",
"ts-rfc3339nano": "2006-01-02T15:04:05.999999999Z07:00",
"ts-httpd": "02/Jan/2006:15:04:05 -0700",
// These three are not exactly "layouts", but they are special cases that
// will get handled in the ParseLine function.
"ts-epoch": "EPOCH",
"ts-epochnano": "EPOCH_NANO",
"ts-syslog": "SYSLOG_TIMESTAMP",
"ts": "GENERIC_TIMESTAMP", // try parsing all known timestamp layouts.
}
const (
INT = "int"
TAG = "tag"
FLOAT = "float"
STRING = "string"
DURATION = "duration"
DROP = "drop"
EPOCH = "EPOCH"
EPOCH_NANO = "EPOCH_NANO"
SYSLOG_TIMESTAMP = "SYSLOG_TIMESTAMP"
GENERIC_TIMESTAMP = "GENERIC_TIMESTAMP"
)
var (
// matches named captures that contain a modifier.
// ie,
// %{NUMBER:bytes:int}
// %{IPORHOST:clientip:tag}
// %{HTTPDATE:ts1:ts-http}
// %{HTTPDATE:ts2:ts-"02 Jan 06 15:04"}
modifierRe = regexp.MustCompile(`%{\w+:(\w+):(ts-".+"|t?s?-?\w+)}`)
// matches a plain pattern name. ie, %{NUMBER}
patternOnlyRe = regexp.MustCompile(`%{(\w+)}`)
)
// Parser is the primary struct to handle and grok-patterns defined in the config toml
type Parser struct {
Patterns []string
// namedPatterns is a list of internally-assigned names to the patterns
// specified by the user in Patterns.
// They will look like:
// GROK_INTERNAL_PATTERN_0, GROK_INTERNAL_PATTERN_1, etc.
NamedPatterns []string
CustomPatterns string
CustomPatternFiles []string
Measurement string
// Timezone is an optional component to help render log dates to
// your chosen zone.
// Default: "" which renders UTC
// Options are as follows:
// 1. Local -- interpret based on machine localtime
// 2. "America/Chicago" -- Unix TZ values like those found in https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
// 3. UTC -- or blank/unspecified, will return timestamp in UTC
Timezone string
loc *time.Location
// typeMap is a map of patterns -> capture name -> modifier,
// ie, {
// "%{TESTLOG}":
// {
// "bytes": "int",
// "clientip": "tag"
// }
// }
typeMap map[string]map[string]string
// tsMap is a map of patterns -> capture name -> timestamp layout.
// ie, {
// "%{TESTLOG}":
// {
// "httptime": "02/Jan/2006:15:04:05 -0700"
// }
// }
tsMap map[string]map[string]string
// patterns is a map of all of the parsed patterns from CustomPatterns
// and CustomPatternFiles.
// ie, {
// "DURATION": "%{NUMBER}[nuµm]?s"
// "RESPONSE_CODE": "%{NUMBER:rc:tag}"
// }
patterns map[string]string
// foundTsLayouts is a slice of timestamp patterns that have been found
// in the log lines. This slice gets updated if the user uses the generic
// 'ts' modifier for timestamps. This slice is checked first for matches,
// so that previously-matched layouts get priority over all other timestamp
// layouts.
foundTsLayouts []string
timeFunc func() time.Time
g *grok.Grok
tsModder *tsModder
}
// Compile is a bound method to Parser which will process the options for our parser
func (p *Parser) Compile() error {
p.typeMap = make(map[string]map[string]string)
p.tsMap = make(map[string]map[string]string)
p.patterns = make(map[string]string)
p.tsModder = &tsModder{}
var err error
p.g, err = grok.NewWithConfig(&grok.Config{NamedCapturesOnly: true})
if err != nil {
return err
}
// Give Patterns fake names so that they can be treated as named
// "custom patterns"
p.NamedPatterns = make([]string, 0, len(p.Patterns))
for i, pattern := range p.Patterns {
pattern = strings.TrimSpace(pattern)
if pattern == "" {
continue
}
name := fmt.Sprintf("GROK_INTERNAL_PATTERN_%d", i)
p.CustomPatterns += "\n" + name + " " + pattern + "\n"
p.NamedPatterns = append(p.NamedPatterns, "%{"+name+"}")
}
if len(p.NamedPatterns) == 0 {
return fmt.Errorf("pattern required")
}
// Combine user-supplied CustomPatterns with DEFAULT_PATTERNS and parse
// them together as the same type of pattern.
p.CustomPatterns = DEFAULT_PATTERNS + p.CustomPatterns
if len(p.CustomPatterns) != 0 {
scanner := bufio.NewScanner(strings.NewReader(p.CustomPatterns))
p.addCustomPatterns(scanner)
}
// Parse any custom pattern files supplied.
for _, filename := range p.CustomPatternFiles {
file, fileErr := os.Open(filename)
if fileErr != nil {
return fileErr
}
scanner := bufio.NewScanner(bufio.NewReader(file))
p.addCustomPatterns(scanner)
}
if p.Measurement == "" {
p.Measurement = "logparser_grok"
}
p.loc, err = time.LoadLocation(p.Timezone)
if err != nil {
log.Printf("W! improper timezone supplied (%s), setting loc to UTC", p.Timezone)
p.loc, _ = time.LoadLocation("UTC")
}
if p.timeFunc == nil {
p.timeFunc = time.Now
}
return p.compileCustomPatterns()
}
// ParseLine is the primary function to process individual lines, returning the metrics
func (p *Parser) ParseLine(line string) (telegraf.Metric, error) {
var err error
// values are the parsed fields from the log line
var values map[string]string
// the matching pattern string
var patternName string
for _, pattern := range p.NamedPatterns {
if values, err = p.g.Parse(pattern, line); err != nil {
return nil, err
}
if len(values) != 0 {
patternName = pattern
break
}
}
if len(values) == 0 {
log.Printf("D! Grok no match found for: %q", line)
return nil, nil
}
fields := make(map[string]interface{})
tags := make(map[string]string)
timestamp := time.Now()
for k, v := range values {
if k == "" || v == "" {
continue
}
// t is the modifier of the field
var t string
// check if pattern has some modifiers
if types, ok := p.typeMap[patternName]; ok {
t = types[k]
}
// if we didn't find a modifier, check if we have a timestamp layout
if t == "" {
if ts, ok := p.tsMap[patternName]; ok {
// check if the modifier is a timestamp layout
if layout, ok := ts[k]; ok {
t = layout
}
}
}
// if we didn't find a type OR timestamp modifier, assume string
if t == "" {
t = STRING
}
switch t {
case INT:
iv, err := strconv.ParseInt(v, 10, 64)
if err != nil {
log.Printf("E! Error parsing %s to int: %s", v, err)
} else {
fields[k] = iv
}
case FLOAT:
fv, err := strconv.ParseFloat(v, 64)
if err != nil {
log.Printf("E! Error parsing %s to float: %s", v, err)
} else {
fields[k] = fv
}
case DURATION:
d, err := time.ParseDuration(v)
if err != nil {
log.Printf("E! Error parsing %s to duration: %s", v, err)
} else {
fields[k] = int64(d)
}
case TAG:
tags[k] = v
case STRING:
fields[k] = strings.Trim(v, `"`)
case EPOCH:
parts := strings.SplitN(v, ".", 2)
if len(parts) == 0 {
log.Printf("E! Error parsing %s to timestamp: %s", v, err)
break
}
sec, err := strconv.ParseInt(parts[0], 10, 64)
if err != nil {
log.Printf("E! Error parsing %s to timestamp: %s", v, err)
break
}
ts := time.Unix(sec, 0)
if len(parts) == 2 {
padded := fmt.Sprintf("%-9s", parts[1])
nsString := strings.Replace(padded[:9], " ", "0", -1)
nanosec, err := strconv.ParseInt(nsString, 10, 64)
if err != nil {
log.Printf("E! Error parsing %s to timestamp: %s", v, err)
break
}
ts = ts.Add(time.Duration(nanosec) * time.Nanosecond)
}
timestamp = ts
case EPOCH_NANO:
iv, err := strconv.ParseInt(v, 10, 64)
if err != nil {
log.Printf("E! Error parsing %s to int: %s", v, err)
} else {
timestamp = time.Unix(0, iv)
}
case SYSLOG_TIMESTAMP:
ts, err := time.ParseInLocation("Jan 02 15:04:05", v, p.loc)
if err == nil {
if ts.Year() == 0 {
ts = ts.AddDate(timestamp.Year(), 0, 0)
}
timestamp = ts
} else {
log.Printf("E! Error parsing %s to time layout [%s]: %s", v, t, err)
}
case GENERIC_TIMESTAMP:
var foundTs bool
// first try timestamp layouts that we've already found
for _, layout := range p.foundTsLayouts {
ts, err := time.ParseInLocation(layout, v, p.loc)
if err == nil {
timestamp = ts
foundTs = true
break
}
}
// if we haven't found a timestamp layout yet, try all timestamp
// layouts.
if !foundTs {
for _, layout := range timeLayouts {
ts, err := time.ParseInLocation(layout, v, p.loc)
if err == nil {
timestamp = ts
foundTs = true
p.foundTsLayouts = append(p.foundTsLayouts, layout)
break
}
}
}
// if we still haven't found a timestamp layout, log it and we will
// just use time.Now()
if !foundTs {
log.Printf("E! Error parsing timestamp [%s], could not find any "+
"suitable time layouts.", v)
}
case DROP:
// goodbye!
default:
ts, err := time.ParseInLocation(t, v, p.loc)
if err == nil {
timestamp = ts
} else {
log.Printf("E! Error parsing %s to time layout [%s]: %s", v, t, err)
}
}
}
if len(fields) == 0 {
return nil, fmt.Errorf("logparser_grok: must have one or more fields")
}
return metric.New(p.Measurement, tags, fields, p.tsModder.tsMod(timestamp))
}
func (p *Parser) Parse(buf []byte) ([]telegraf.Metric, error) {
lines := strings.Split(string(buf), "\n")
var metrics []telegraf.Metric
for _, line := range lines {
m, err := p.ParseLine(line)
if err != nil {
return nil, err
}
metrics = append(metrics, m)
}
return metrics, nil
}
func (p *Parser) SetDefaultTags(tags map[string]string) {
//needs implementation
}
func (p *Parser) addCustomPatterns(scanner *bufio.Scanner) {
for scanner.Scan() {
line := strings.TrimSpace(scanner.Text())
if len(line) > 0 && line[0] != '#' {
names := strings.SplitN(line, " ", 2)
p.patterns[names[0]] = names[1]
}
}
}
func (p *Parser) compileCustomPatterns() error {
var err error
// check if the pattern contains a subpattern that is already defined
// replace it with the subpattern for modifier inheritance.
for i := 0; i < 2; i++ {
for name, pattern := range p.patterns {
subNames := patternOnlyRe.FindAllStringSubmatch(pattern, -1)
for _, subName := range subNames {
if subPattern, ok := p.patterns[subName[1]]; ok {
pattern = strings.Replace(pattern, subName[0], subPattern, 1)
}
}
p.patterns[name] = pattern
}
}
// check if pattern contains modifiers. Parse them out if it does.
for name, pattern := range p.patterns {
if modifierRe.MatchString(pattern) {
// this pattern has modifiers, so parse out the modifiers
pattern, err = p.parseTypedCaptures(name, pattern)
if err != nil {
return err
}
p.patterns[name] = pattern
}
}
return p.g.AddPatternsFromMap(p.patterns)
}
// parseTypedCaptures parses the capture modifiers, and then deletes the
// modifier from the line so that it is a valid "grok" pattern again.
// ie,
// %{NUMBER:bytes:int} => %{NUMBER:bytes} (stores %{NUMBER}->bytes->int)
// %{IPORHOST:clientip:tag} => %{IPORHOST:clientip} (stores %{IPORHOST}->clientip->tag)
func (p *Parser) parseTypedCaptures(name, pattern string) (string, error) {
matches := modifierRe.FindAllStringSubmatch(pattern, -1)
// grab the name of the capture pattern
patternName := "%{" + name + "}"
// create type map for this pattern
p.typeMap[patternName] = make(map[string]string)
p.tsMap[patternName] = make(map[string]string)
// boolean to verify that each pattern only has a single ts- data type.
hasTimestamp := false
for _, match := range matches {
// regex capture 1 is the name of the capture
// regex capture 2 is the modifier of the capture
if strings.HasPrefix(match[2], "ts") {
if hasTimestamp {
return pattern, fmt.Errorf("logparser pattern compile error: "+
"Each pattern is allowed only one named "+
"timestamp data type. pattern: %s", pattern)
}
if layout, ok := timeLayouts[match[2]]; ok {
// built-in time format
p.tsMap[patternName][match[1]] = layout
} else {
// custom time format
p.tsMap[patternName][match[1]] = strings.TrimSuffix(strings.TrimPrefix(match[2], `ts-"`), `"`)
}
hasTimestamp = true
} else {
p.typeMap[patternName][match[1]] = match[2]
}
// the modifier is not a valid part of a "grok" pattern, so remove it
// from the pattern.
pattern = strings.Replace(pattern, ":"+match[2]+"}", "}", 1)
}
return pattern, nil
}
// tsModder is a struct for incrementing identical timestamps of log lines
// so that we don't push identical metrics that will get overwritten.
type tsModder struct {
dupe time.Time
last time.Time
incr time.Duration
incrn time.Duration
rollover time.Duration
}
// tsMod increments the given timestamp one unit more from the previous
// duplicate timestamp.
// the increment unit is determined as the next smallest time unit below the
// most significant time unit of ts.
// ie, if the input is at ms precision, it will increment it 1µs.
func (t *tsModder) tsMod(ts time.Time) time.Time {
defer func() { t.last = ts }()
// don't mod the time if we don't need to
if t.last.IsZero() || ts.IsZero() {
t.incrn = 0
t.rollover = 0
return ts
}
if !ts.Equal(t.last) && !ts.Equal(t.dupe) {
t.incr = 0
t.incrn = 0
t.rollover = 0
return ts
}
if ts.Equal(t.last) {
t.dupe = ts
}
if ts.Equal(t.dupe) && t.incr == time.Duration(0) {
tsNano := ts.UnixNano()
d := int64(10)
counter := 1
for {
a := tsNano % d
if a > 0 {
break
}
d = d * 10
counter++
}
switch {
case counter <= 6:
t.incr = time.Nanosecond
case counter <= 9:
t.incr = time.Microsecond
case counter > 9:
t.incr = time.Millisecond
}
}
t.incrn++
if t.incrn == 999 && t.incr > time.Nanosecond {
t.rollover = t.incr * t.incrn
t.incrn = 1
t.incr = t.incr / 1000
if t.incr < time.Nanosecond {
t.incr = time.Nanosecond
}
}
return ts.Add(t.incr*t.incrn + t.rollover)
}

View File

@@ -0,0 +1,19 @@
package grok
import (
"log"
"testing"
"github.com/stretchr/testify/assert"
)
func TestGrokParse(t *testing.T) {
parser := Parser{
Measurement: "t_met",
Patterns: []string{"%{COMMON_LOG_FORMAT}"},
}
parser.Compile()
metrics, err := parser.Parse([]byte(`127.0.0.1 user-identifier frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326`))
log.Printf("metric_tags: %v, metric_fields: %v", metrics[0].Tags(), metrics[0].Fields())
assert.NoError(t, err)
}

View File

@@ -8,6 +8,7 @@ import (
"github.com/influxdata/telegraf/plugins/parsers/collectd"
"github.com/influxdata/telegraf/plugins/parsers/dropwizard"
"github.com/influxdata/telegraf/plugins/parsers/graphite"
"github.com/influxdata/telegraf/plugins/parsers/grok"
"github.com/influxdata/telegraf/plugins/parsers/influx"
"github.com/influxdata/telegraf/plugins/parsers/json"
"github.com/influxdata/telegraf/plugins/parsers/nagios"
@@ -87,6 +88,13 @@ type Config struct {
// an optional map containing tag names as keys and json paths to retrieve the tag values from as values
// used if TagsPath is empty or doesn't return any tags
DropwizardTagPathsMap map[string]string
//grok patterns
Patterns []string
NamedPatterns []string
CustomPatterns string
CustomPatternFiles []string
TimeZone string
}
// NewParser returns a Parser interface based on the given config.
@@ -120,12 +128,39 @@ func NewParser(config *Config) (Parser, error) {
config.DefaultTags,
config.Separator,
config.Templates)
case "grok":
parser, err = NewGrokParser(
config.MetricName,
config.Patterns,
config.NamedPatterns,
config.CustomPatterns,
config.CustomPatternFiles,
config.TimeZone)
default:
err = fmt.Errorf("Invalid data format: %s", config.DataFormat)
}
return parser, err
}
func NewGrokParser(metricName string,
patterns []string,
nPatterns []string,
cPatterns string,
cPatternFiles []string, tZone string) (Parser, error) {
parser := grok.Parser{
Measurement: metricName,
Patterns: patterns,
NamedPatterns: nPatterns,
CustomPatterns: cPatterns,
CustomPatternFiles: cPatternFiles,
Timezone: tZone,
}
parser.Compile()
return &parser, nil
}
func NewJSONParser(
metricName string,
tagKeys []string,

104
telegraf.conf Normal file
View File

@@ -0,0 +1,104 @@
# Global tags can be specified here in key="value" format.
[global_tags]
# dc = "us-east-1" # will tag all metrics with dc=us-east-1
# rack = "1a"
## Environment variables can be used as tags, and throughout the config file
# user = "$USER"
# Configuration for telegraf agent
[agent]
## Default data collection interval for all inputs
interval = "10s"
## Rounds collection interval to 'interval'
## ie, if interval="10s" then always collect on :00, :10, :20, etc.
round_interval = true
## Telegraf will send metrics to outputs in batches of at most
## metric_batch_size metrics.
## This controls the size of writes that Telegraf sends to output plugins.
metric_batch_size = 1000
## For failed writes, telegraf will cache metric_buffer_limit metrics for each
## output, and will flush this buffer on a successful write. Oldest metrics
## are dropped first when this buffer fills.
## This buffer only fills when writes fail to output plugin(s).
metric_buffer_limit = 10000
## Collection jitter is used to jitter the collection by a random amount.
## Each plugin will sleep for a random time within jitter before collecting.
## This can be used to avoid many plugins querying things like sysfs at the
## same time, which can have a measurable effect on the system.
collection_jitter = "0s"
## Default flushing interval for all outputs. You shouldn't set this below
## interval. Maximum flush_interval will be flush_interval + flush_jitter
flush_interval = "10s"
## Jitter the flush interval by a random amount. This is primarily to avoid
## large write spikes for users running a large number of telegraf instances.
## ie, a jitter of 5s and interval 10s means flushes will happen every 10-15s
flush_jitter = "0s"
## By default or when set to "0s", precision will be set to the same
## timestamp order as the collection interval, with the maximum being 1s.
## ie, when interval = "10s", precision will be "1s"
## when interval = "250ms", precision will be "1ms"
## Precision will NOT be used for service inputs. It is up to each individual
## service input to set the timestamp at the appropriate precision.
## Valid time units are "ns", "us" (or "µs"), "ms", "s".
precision = ""
## Logging configuration:
## Run telegraf with debug log messages.
debug = false
## Run telegraf in quiet mode (error log messages only).
quiet = false
## Specify the log file name. The empty string means to log to stderr.
logfile = ""
## Override default hostname, if empty use os.Hostname()
hostname = ""
## If set to true, do no set the "host" tag in the telegraf agent.
omit_hostname = false
# # reload and gather from file[s] on telegraf's interval
[[inputs.reader]]
# ## These accept standard unix glob matching rules, but with the addition of
# ## ** as a "super asterisk". ie:
# ## /var/log/**.log -> recursively find all .log files in /var/log
# ## /var/log/*/*.log -> find all .log files with a parent dir in /var/log
# ## /var/log/apache.log -> only tail the apache log file
files = ["/Users/maxu/go/src/github.com/influxdata/telegraf/plugins/inputs/logparser/grok/testdata/**.log"]
#
# ## The dataformat to be read from files
# ## Each data format has its own unique set of configuration options, read
# ## more about them here:
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
data_format = "grok"
#
patterns = ["%{TEST_LOG_B}","%{TEST_LOG_A}"]
#
# ## Name of the outputted measurement name.
name_override = "grok_reader"
#
# ## Full path(s) to custom pattern files.
custom_pattern_files = ["/Users/maxu/go/src/github.com/influxdata/telegraf/plugins/inputs/logparser/grok/testdata/test-patterns"]
#
# ## Custom patterns can also be defined here. Put one pattern per line.
# custom_patterns = '''
# '''
#
# ## Timezone allows you to provide an override for timestamps that
# ## don't already include an offset
# ## e.g. 04/06/2016 12:41:45 data one two 5.43µs
# ##
# ## Default: "" which renders UTC
# ## Options are as follows:
# ## 1. Local -- interpret based on machine localtime
# ## 2. "Canada/Eastern" -- Unix TZ values like those found in https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# ## 3. UTC -- or blank/unspecified, will return timestamp in UTC
# timezone = "Canada/Eastern"