Compare commits

...

3062 Commits

Author SHA1 Message Date
dom 49701ffb05 add rss feed title 2020-06-06 21:24:46 +02:00
dom 65d8f2d0e4 add ablility to build new version with docker 2020-06-06 21:16:55 +02:00
dom 28cf69cc4b Merge latest version from github 2020-06-06 17:21:53 +02:00
Steven Soroka 62302a0f37
Update CHANGELOG.md 2020-06-05 18:46:58 -04:00
Steven Soroka 7ba226a00b
fix issue with stream parser blocking when data is in buffer (#7631) 2020-06-05 18:30:25 -04:00
Steven Soroka 741ea839d2
add support for streaming processors (#7634) 2020-06-05 10:43:43 -04:00
David Reimschussel b99e3bc63d Update changelog 2020-06-05 08:42:13 -06:00
reimda 49caba9b2f
Add tags to snmp_trap input for context name and engine ID (#7633)
Add tags for the context name and engine ID
2020-06-05 08:35:14 -06:00
Daniel Nelson 6f931c9834
Clarify use of multiple mqtt broker servers 2020-06-04 14:43:32 -07:00
kauppine 36316ee8f2
Add SNMPv3 trap support to snmp_trap input plugin (#7294)
Extend snmp_trap input plugin to support SNMPv3 traps. MD5 and SHA1 authentication protocols are supported, and DES, AES, AES192, AES256, AES192c and AES256c privacy protocols are supported.
2020-06-04 15:19:47 -06:00
Yarmo Mackenbach aa8cefedda
Add support for Solus distribution to maintainer scripts (#7585) 2020-06-02 23:20:45 -07:00
Simon Knittel af8093e00e
Fix typo in queue depth example of diskio plugin (#7613) 2020-06-02 23:11:13 -07:00
Yamagishi Kazutoshi 1e7f714b2b
Add support for env variables to shim config (#7603) 2020-06-02 09:29:57 -04:00
Daniel Nelson f27b709efa
Update changelog 2020-06-01 17:12:22 -07:00
Daniel Nelson 4e93b87085
Add support for once mode; run processors and aggregators during test (#7474) 2020-06-01 15:26:20 -07:00
kelseiv 573f144607
Update AGGREGATORS_AND_PROCESSORS.md (#7599) 2020-05-29 15:32:46 -07:00
Daniel Nelson 13da5e0802
Add github.com/inabagumi/twitter-telegraf-plugin to list of external plugins 2020-05-28 15:45:08 -07:00
Nicolas Filotto 430854f6de
Fix segmentation violation on connection failed (#7593) 2020-05-28 11:05:57 -07:00
David Reimschussel d7bb4a931b Update changelog 2020-05-27 15:43:26 -06:00
reimda 71b0b96241
Add processor to look up service name by port (#7540) 2020-05-27 15:42:59 -06:00
Steven Soroka a438678d5b
make sure parse error includes offending text (#7561) 2020-05-27 14:58:58 -04:00
Daniel Nelson 7b06624885
Update docs for newrelic output 2020-05-27 11:52:21 -07:00
hsinghkalsi 580ac61cf7
Add newrelic output plugin (#7019) 2020-05-27 11:24:49 -07:00
Daniel Nelson 7b33ef011a
Update changelog 2020-05-26 15:52:53 -07:00
Nicolas Filotto 7ef1d53551
Allow collection of HTTP Headers in http_response input (#7405) 2020-05-26 15:52:13 -07:00
Daniel Nelson 40fdafe193
Update changelog 2020-05-26 15:49:36 -07:00
Daniel Nelson d27f676091
Update to Go 1.14.3 with testing using 1.13.11 (#7564) 2020-05-26 15:40:25 -07:00
Daniel Nelson bdbf57576a
Update changelog 2020-05-26 14:18:53 -07:00
Harshit Bansal 092059c066
Exclude csv_timestamp_column and csv_measurement_column from fields (#7572) 2020-05-26 14:16:48 -07:00
Steven Soroka 2561aac6ef
fix go version check (#7562) 2020-05-26 16:11:02 -04:00
Daniel Nelson 5345ad529d
Update changelog 2020-05-26 12:20:08 -07:00
Harshit Bansal 22c0bdb38c
Fix the typo in `gcc_pu_fraction` to `gc_cpu_fraction` (#7573) 2020-05-26 12:18:24 -07:00
Daniel Nelson f9a110f407
Update changelog 2020-05-26 12:08:31 -07:00
Anton Aksola ad97b744a3
Fix numeric to bool conversion in converter (#7579)
A type switch case with multiple conditions causes the value to remain as
interface which causes toBool to always return true for any numeric values.
2020-05-26 12:07:24 -07:00
Daniel Nelson f91d0833fb
Add defaults processor to readme/changelog 2020-05-22 11:49:34 -07:00
Jeff Registre a7674b707b
Add defaults processor to set default field values (#7370) 2020-05-22 11:44:13 -07:00
Daniel Nelson e6f06457ce
Update changelog 2020-05-22 11:09:22 -07:00
Daniel Nelson a6010b8276
Update changelog 2020-05-22 00:12:03 -07:00
raul-te 4d071bed24
Add option to disable mongodb cluster status (#7515)
It can be expensive to compute these metrics. In particular, when
retrieveing the amount of jumbo chunks, an index is not being used and
consequently the query triggers an expensive COLLSCAN. For big
databases, this query has negative impact on the cluster performance.
2020-05-22 00:11:00 -07:00
Daniel Nelson 130403c0c9
Update changelog 2020-05-22 00:07:27 -07:00
Josh Soref f975b94404
Fix typos in sqlserver input (#7524) 2020-05-22 00:05:10 -07:00
Daniel Nelson a4459bd57a
Use updated clock package to resolve test failures (#7516) 2020-05-21 23:39:37 -07:00
Steven Soroka d4e9fd15ce
fix randomly failing CI test (#7514) 2020-05-21 16:53:07 -04:00
Daniel Nelson 58ad64a43b
Update changelog 2020-05-20 17:35:36 -07:00
debu99 f10c8ff92d
Add cluster state integer to mongodb input (#7489) 2020-05-20 17:34:50 -07:00
Daniel Nelson c3a54f4fb8
Update changelog 2020-05-20 17:16:01 -07:00
ihard 94c75b51a8
Add configurable separator graphite serializer and output (#7545) 2020-05-20 17:15:18 -07:00
Daniel Nelson 10560e5a10
Update changelog 2020-05-20 17:00:11 -07:00
denzilribeiro 5280023abe
Fix instance name resolution in performance counter query (#7526) 2020-05-20 16:55:37 -07:00
Daniel Nelson 89f924639c
Set 1.14.3 release date 2020-05-19 12:08:13 -07:00
Daniel Nelson 7681469cd5
Update changelog 2020-05-19 11:59:00 -07:00
Daniel Nelson edd8338180
Close HTTP2 connections on timeout in influxdb outputs (#7517) 2020-05-19 11:53:10 -07:00
Daniel Nelson 443ac6df23
Fix negative value parsing in impi_sensor input (#7541) 2020-05-19 11:20:29 -04:00
Josh Soref bf1eb291f2
Fix assorted spelling mistakes (#7507) 2020-05-15 15:43:32 -07:00
Max Greenwald f74824eecb
Fix documentation of percent_packet_loss field (#7510) 2020-05-14 13:39:00 -07:00
Samantha Wang d2831d73ab
Update docs for execd plugins (#7465) 2020-05-14 11:19:19 -04:00
Daniel Nelson 68b936c9f0
Update procstat pid_tag documentation 2020-05-14 00:48:05 -07:00
Josh Soref 2c56d6de81
Fix spelling errors in comments and documentation (#7492) 2020-05-14 00:41:58 -07:00
Daniel Nelson c78045c13f
Update changelog 2020-05-13 12:09:37 -07:00
Pontus Rydin 23756077a4
Add truncate_tags setting to wavefront output (#7503) 2020-05-13 12:02:39 -07:00
Daniel Nelson bb86ee0085
Update changelog 2020-05-12 14:02:21 -07:00
Darin Fisher 670277f785
Add authentication support to the http_response input plugin (#7491) 2020-05-12 14:01:17 -07:00
Daniel Nelson a78de9c5f0
Update changelog 2020-05-12 12:57:41 -07:00
reimda 934f6af99f
Handle multiple metrics with the same timestamp in dedup processor (#7439) 2020-05-12 12:56:35 -07:00
Daniel Nelson 47e1cdc0ee
Update changelog 2020-05-12 12:24:31 -07:00
Kostiantyn Nemchenko 00ad5baa19
Add additional fields to mongodb input (#7321)
New metrics include:
- assertions
- database operations
- documents/index keys usage
- replication
- tcmalloc memory management
- storage
- version
2020-05-12 11:31:54 -07:00
Daniel Nelson 6a9e879d71
Update changelog 2020-05-11 11:37:20 -07:00
Harshit Bansal 568cb8e64c
Add integer support to enum processor (#7483) 2020-05-11 11:36:21 -07:00
Alex Heylin 134c84f45d
Fix typo in Windows service description (#7486)
Co-authored-by: Alex Heylin <alexh@gmal.co.uk>
2020-05-11 12:20:02 -04:00
Daniel Nelson 48b8357f01
Update changelog 2020-05-07 17:19:46 -07:00
Rich Y f076b6c115
Add field creation to date processor and integer unix time support (#7464) 2020-05-07 17:19:03 -07:00
Daniel Nelson f14b3759d4
Update changelog 2020-05-07 11:26:42 -07:00
Giovanni Luisotto db0d950b3a
Add cpu query to sqlserver input (#7359) 2020-05-07 11:25:03 -07:00
Daniel Nelson 607038c652
Update changelog 2020-05-06 12:03:16 -07:00
Daniel Nelson fd76c8bf21
Rework plugin tickers to prevent drift and spread write ticks (#7390) 2020-05-06 11:59:16 -07:00
Daniel Nelson c8dbf13fc1
Update changelog 2020-05-06 11:40:59 -07:00
Daniel Nelson 283a16316a
Update datadog output documentation (#7467) 2020-05-06 11:25:21 -07:00
i-prudnikov 0924ad2668
Use docker log timestamp as metric time (#7434) 2020-05-06 11:20:44 -07:00
Steven Soroka 022ff63d29
fix issue with execd-multiline influx line protocol (#7463) 2020-05-05 17:43:45 -04:00
Alex Samorukov f25936b796
Add information about HEC JSON format limitations and workaround (#7459) 2020-05-05 11:12:21 -07:00
Giovanni Luisotto 53c86890af
Rename measurement to sqlserver_volume_space (#7457) 2020-05-05 10:56:03 -07:00
Steven Soroka cc927357a4
shim improvements for docs, clean quit, and slow readers (#7452) 2020-05-05 10:14:57 -04:00
Daniel Nelson 8ee12d07a1
Update changelog 2020-05-04 16:27:03 -07:00
Daniel Nelson d16485e1a3
Fix gzip support in socket_listener with tcp sockets (#7446) 2020-05-04 16:26:05 -07:00
Daniel Nelson f351e6a68f
Update changelog 2020-05-04 16:25:20 -07:00
Daniel Nelson 973aec42b3
Remove debug fields from spunkmetric serializer (#7455) 2020-05-04 16:21:32 -07:00
Samantha Wang 145bad6194
Fix filepath processor link in changelog (#7454) 2020-05-04 15:35:10 -07:00
Steven Soroka b73a232a6a
Support Go execd plugins with shim (#7283) 2020-05-04 14:09:10 -04:00
Daniel Nelson 7a5690cd36
Update changelog 2020-05-01 11:23:25 -07:00
Andrés Álvarez b1ae81bb75
Add filepath processor plugin (#7418) 2020-05-01 11:21:41 -07:00
William Austin 59acbd4f13
Add ContentEncoder to socket_writer for datagram sockets (#7417) 2020-04-30 13:21:34 -07:00
Steven Soroka 07c6b78c8f
Sflow rework (#7253) 2020-04-29 17:28:55 -04:00
Daniel Nelson a0679c5427
Update changelog 2020-04-29 11:33:46 -07:00
presslab-us e1b2ebe06d
Use same timestamp for all objects in arrays in the json parser (#7412) 2020-04-29 11:32:19 -07:00
Daniel Nelson 3163771778
Set 1.14.2 release date 2020-04-28 14:59:07 -07:00
Daniel Nelson 59aa0a3349
Update changelog 2020-04-28 14:54:18 -07:00
Daniel Nelson cf3d48bb68
Allow CR and FF inside of string fields and fix parser panic (#7427) 2020-04-28 14:42:37 -07:00
Daniel Nelson 476a899a1a
Fix typo in name of gc_cpu_fraction field (#7425) 2020-04-28 14:41:44 -07:00
Daniel Nelson b77dac9fdf
Run create database query once per database (#7333) 2020-04-28 13:41:59 -07:00
Daniel Nelson c4e9f72936
Ignore fields with NaN or Inf floats in the JSON serializer (#7426) 2020-04-28 13:41:25 -07:00
Pierrick Brossin 7ee776d67a
Fix interfaces with pointers (#7411) 2020-04-27 11:52:24 -04:00
Daniel Nelson be1dc49ad9
Document distinction between file and tail inputs (#7353) 2020-04-24 16:40:08 -07:00
Daniel Nelson 795750a7a0
Update changelog 2020-04-24 13:40:37 -07:00
Len Smith d915f7c7d6
Fix shard indices reporting in elasticsearch input (#7332) 2020-04-24 13:38:58 -07:00
Daniel Nelson f89381851e
Update changelog 2020-04-24 13:37:14 -07:00
Mark Drayton 1bb436e8a8
Fix string to int64 conversion for SNMP input (#7407) 2020-04-24 13:35:59 -07:00
timhallinflux 8957032790
Update nvidia-smi README for Windows users (#7399) 2020-04-23 17:20:35 -07:00
Daniel Nelson 277b4d2fc4
Update changelog 2020-04-23 15:39:34 -07:00
Jesper Brix Rosenkilde 8ab555129d
Extract target as a tag for each rule in iptables input (#7391) 2020-04-23 15:38:31 -07:00
Daniel Nelson c8b9cb4087
Update changelog 2020-04-22 16:18:00 -07:00
Daniel Nelson 2799302142
Fix dimension limit on azure_monitor output (#7336) 2020-04-22 16:16:22 -07:00
Daniel Nelson 0858b779c6
Update changelog 2020-04-22 16:00:55 -07:00
Daniel Nelson 5a30c9816e
Use new higher per request limit for cloudwatch GetMetricData (#7335) 2020-04-22 15:53:01 -07:00
Daniel Nelson 552ead3af5
Update changelog 2020-04-21 16:30:30 -07:00
hydro-b 4db9e8a968
Add support for MDS and RGW sockets to ceph input (#6915) 2020-04-21 16:29:43 -07:00
Daniel Nelson 4903facddb
Update changelog 2020-04-21 13:56:14 -07:00
Daniel Nelson 702946b5cf
Add option to save retention policy as tag in influxdb_listener (#7356) 2020-04-21 13:54:39 -07:00
Daniel Nelson b2ec7973df
Update changelog 2020-04-21 13:46:57 -07:00
Giovanni Luisotto 82c9f0f7f8
Trim instance tag in the sqlserver performance counters query (#7351) 2020-04-21 13:42:35 -07:00
Daniel Nelson 2d61669cfd
Update changelog 2020-04-21 11:31:45 -07:00
Pontus Rydin d0db0e8f0a
Fix vSphere 6.7 missing data issue (#7233) 2020-04-21 11:30:29 -07:00
Daniel Nelson d1f109b316
Update modbus readme 2020-04-21 11:27:35 -07:00
Daniel Nelson c7797cc3c4
Update changelog 2020-04-21 11:23:19 -07:00
Sven Rebhan 1006c65587
Add retry when slave is busy to modbus input (#7271) 2020-04-21 11:21:27 -07:00
Steven Soroka 050ed9e61e
fix issue with closing flush signal channel (#7384) 2020-04-21 13:33:47 -04:00
Daniel Nelson a4eb9c2205
Use the product token for the user agent in more locations (#7378) 2020-04-21 10:02:18 -07:00
Steven Soroka c9a3b697b8 Update changelog 2020-04-20 14:59:46 -04:00
Daniel Nelson 49c915541e
Update changelog 2020-04-20 11:56:17 -07:00
anilkun 1568932457
Update github.com/aws/aws-sdk-go (#7373)
Fix cloudwatch metric writing when imdsv1 is disabled.
2020-04-20 11:54:27 -07:00
Steven Soroka 819481b195
add support for SIGUSR1 to trigger flush (#7366) 2020-04-20 13:49:10 -04:00
Steven Soroka 6c72c645a2
add another grok example for custom timestamps (#7367) 2020-04-20 13:18:12 -04:00
Pierrick Brossin 52a3f5d404
Fibaro input: for battery operated devices, add battery level scraping (#7319) 2020-04-20 10:58:50 -04:00
Daniel Nelson 73ef0bcba2
Deprecate logparser input and recommend tail input as replacement (#7352) 2020-04-16 13:07:03 -07:00
Daniel Nelson 3380471e18
Adjust heading level in the filtering examples to allow linking 2020-04-15 10:51:31 -07:00
Daniel Nelson 03819ba9ec
Set 1.14.1 release date 2020-04-14 13:58:48 -07:00
Daniel Nelson 413ec7bbd7
Update changelog 2020-04-14 12:32:29 -07:00
M0rdecay 27f09758ba
Add reading bearer token from a file to http input (#7304) 2020-04-14 12:31:26 -07:00
Daniel Nelson 0fa92a686e
Update changelog 2020-04-14 12:19:43 -07:00
Daniel Nelson eb8d805370
Fix exclude database and retention policy tags is shared (#7323) 2020-04-14 12:15:35 -07:00
Daniel Nelson 48f5da7e33
Fix status path when using globs in phpfpm (#7324) 2020-04-14 12:14:49 -07:00
Daniel Nelson aab5800aac
Regenerate telegraf.conf 2020-04-13 12:46:03 -07:00
reimda 9413291064
Fix error in docs about exclude_retention_policy_tag (#7311) 2020-04-13 12:44:03 -07:00
Daniel Nelson f4fa64170e
Update changelog 2020-04-13 11:33:59 -07:00
Daniel Nelson 0479f399f9
Update changelog 2020-04-13 11:20:23 -07:00
Daniel Nelson 3dab845040
Fix Name field in template processor (#7258) 2020-04-13 10:57:48 -07:00
Andrés Álvarez cc6c77f301
Deploy telegraf configuration as a "non config" file (#7250) 2020-04-09 14:27:59 -04:00
Andrés Álvarez df145c7e56
Fix export timestamp not working for prometheus on v2 (#7289) 2020-04-06 16:21:01 -04:00
Giovanni Luisotto c56596dec2
Sql Server - Disk Space Measurement (#7214) 2020-04-06 11:53:54 -04:00
Russ Savage 73911d00f1
Add series cardinality warning to sflow readme (#7285) 2020-04-03 12:52:23 -07:00
Daniel Nelson 71a67ef227
Improve documentation for the Metric interface (#7256) 2020-04-03 10:11:41 -07:00
Daniel Nelson fb0fee0fbb
Update permission docs on postfix input (#7255) 2020-04-03 10:09:24 -07:00
kelseiv 6445e775cf
Document kapacitor_alert and kapacitor_cluster measurements (#7278) 2020-04-02 18:24:10 -07:00
Daniel Nelson c083c1f64d
Update changelog 2020-03-31 12:56:53 -07:00
denzilribeiro ccefc42711
Add OPTION RECOMPILE for perf reasons due to temp table (#7242) 2020-03-31 12:54:22 -07:00
Daniel Nelson 8ff2645550
Update changelog 2020-03-31 11:31:09 -07:00
Ilya Antipov 0cad343de7
Support multiple templates for graphite serializers (#7136) 2020-03-31 11:30:21 -07:00
Daniel Nelson 218fbc41b9
Update changelog 2020-03-30 13:31:33 -07:00
Sven Rebhan 3650d74de2
Add possibility to specify measurement per register (#7231) 2020-03-30 13:30:42 -07:00
Daniel Nelson 9a1c26d6cc
Add limit to number of undelivered lines to read ahead in tail (#7210) 2020-03-27 15:40:08 -07:00
Daniel Nelson 608e818645
Add docs for how to handle errors in check-deps script (#7243) 2020-03-27 15:39:32 -07:00
Daniel Nelson f3ee1d86df
Update changelog 2020-03-26 17:06:27 -07:00
Sven Rebhan f882b8f94f
Add support for 64-bit integer types to modbus input (#7225) 2020-03-26 17:05:43 -07:00
Daniel Nelson cb42f610f4
Set 1.14.0 release date 2020-03-26 12:01:44 -07:00
Daniel Nelson cd1cd54e06
Update changelog 2020-03-24 17:03:31 -07:00
dbutler-starry 124735af2e
Apply ping deadline to dns lookup (#7140) 2020-03-24 17:02:23 -07:00
Daniel Nelson 83925c9960
Update changelog 2020-03-24 14:22:03 -07:00
Programmer19 715e991186
Add ability to specify HTTP Headers in http_listener_v2 which will added as tags (#7223) 2020-03-24 14:20:46 -07:00
Asgaut Eng c12c55da96
Fix 'nil' file created by Makefile on Windows (#7224)
The /dev/null device on Windows is a virtual file named "nul" not "nil".
This fix works under both cmd.exe and Powershell.
2020-03-24 14:18:03 -07:00
Daniel Nelson 9b9a84964b
Update changelog 2020-03-23 16:17:04 -07:00
Denis Pershin 4c59de9023
Add additional concurrent transaction information (#7193) 2020-03-23 16:14:56 -07:00
AnastasiyaRagozina 3e1c7a8948
Add commands stats to mongodb input plugin (#6905) 2020-03-23 12:33:10 -07:00
Daniel Nelson ba138b8f5b
Update changelog 2020-03-23 11:34:39 -07:00
Harshit Bansal a907edc1f3
Fix url encoding of job names in jenkins input plugin (#7211) 2020-03-23 11:33:06 -07:00
Daniel Nelson 1d697dd323
Update next_version on master to 1.15.0 2020-03-18 16:21:48 -07:00
Daniel Nelson 6a2d35956c
Update etc/telegraf.conf 2020-03-18 16:15:15 -07:00
Daniel Nelson 2a45781697
Fix datastore_include option in vsphere input readme 2020-03-18 16:13:14 -07:00
Daniel Nelson ccdd3cd245
Update github.com/prometheus/client_golang to latest (#7200) 2020-03-18 16:09:53 -07:00
Daniel Nelson e376228a1a
Update etc/telegraf.conf 2020-03-18 15:32:02 -07:00
Daniel Nelson 4e28e5721b
Update google.cloud.go to latest (#7199) 2020-03-18 15:30:49 -07:00
Daniel Nelson 9fbf288518
Remove init checks for valid label and field selectors (#7198)
Importing k8s.io/klog starts a long running goroutine at init time.
2020-03-18 13:48:29 -07:00
Daniel Nelson f11a2f80c4
Fix s2geo import 2020-03-18 13:04:42 -07:00
Daniel Nelson 35ef2559d3
Fix s2geo documentation and code to reflect current plugin name 2020-03-18 12:28:02 -07:00
Daniel Nelson ffaa9467a5
Update changelog and readme 2020-03-18 12:16:05 -07:00
Daniel Nelson cc92d4aba7
Add sFlow input plugin (#7188) 2020-03-18 12:12:24 -07:00
Daniel Nelson 56a7ff574c
Adjust dedup processor description 2020-03-17 18:46:52 -07:00
Daniel Nelson 78fb879aa7
Update readme and changelog 2020-03-17 18:39:08 -07:00
igomura 0038205266
Add dedup processor (#6792) 2020-03-17 15:53:03 -07:00
Daniel Nelson f6ea2598e5
Update changelog 2020-03-17 12:58:20 -07:00
Steven Barth 064247a345
Add support for GNMI DecimalVal type (#7173) 2020-03-17 12:56:51 -07:00
David Reimschussel 9d7f56052e Update changelog 2020-03-17 11:39:36 -06:00
Steven Soroka 6ce0660cee
Update to the latest gopsutil (#7185) 2020-03-17 13:22:11 -04:00
reimda ef2bff2916
Set headers on influxdb_listener ping URL (#7182) 2020-03-17 11:03:27 -06:00
Steven Soroka 4162599081
Remove dep from contribution guidelines (#7180) 2020-03-16 19:24:02 -04:00
Steven Soroka fcb038d352
update docker files for go modules. Closes #7170 (#7179) 2020-03-16 19:21:21 -04:00
Steven Soroka dafd08c0ca add docker to bug report instructions 2020-03-16 19:17:49 -04:00
Steven Soroka c78e4b449c
fix broken test on mac (#7181) 2020-03-16 19:07:39 -04:00
Daniel Nelson 222dce49f0
Update changelog 2020-03-16 13:47:58 -07:00
Harshit Bansal a612a4d85f
Add option for explicitly including queries in sqlserver input plugin (#7150) 2020-03-16 13:46:42 -07:00
Daniel Nelson 87f60ccf87
Update changelog 2020-03-16 13:45:34 -07:00
Giovanni Luisotto 20d45d651c
Fix schedulers query compatibility with pre SQL-2016 (#7144) 2020-03-16 13:36:31 -07:00
denzilribeiro 0a75dea70d
Add Database IO Tempdb per Azure DB and fix PerfmonV2 collection for on-prem (#7163) 2020-03-16 13:32:30 -07:00
Daniel Nelson 9508bbdf29
Update eventhub_consumer README. 2020-03-16 13:21:53 -07:00
Daniel Nelson 1b187b173d
Update changelog 2020-03-16 12:37:44 -07:00
Daniel Nelson 79aad9f06a
Rename eventhub -> eventhub_consumer 2020-03-16 12:15:18 -07:00
R290 f69b639aa9
Add Azure IoT Hub / Event Hub input plugin (#6928) 2020-03-16 10:54:21 -07:00
Daniel Nelson 2a465cc687
Use merge=union driver for go.sum 2020-03-16 10:02:49 -07:00
M0rdecay da9f19ca9d
Allow using name_* modificators for output plugins (#7174) 2020-03-13 15:04:23 -07:00
Daniel Nelson d8b66b69d5
Mention metric filtering in csv parser docs 2020-03-13 14:30:27 -07:00
Daniel Nelson d5df7666d8
Update changelog 2020-03-12 17:01:07 -07:00
Tim Hughes e6f0644128
Add Arista LANZ consumer input plugin (#4112) 2020-03-12 16:45:35 -07:00
Steven Soroka 42804b7c56
fix issue with ping input in windows. Closes #7088 (#7157) 2020-03-11 18:03:11 -04:00
Daniel Nelson 389723c08a
Update changelog, readme, licenses 2020-03-10 15:47:05 -07:00
Daniel Nelson fe4ff3a3be
Move s2_geo processor to directory with same name 2020-03-10 15:46:46 -07:00
alespour c5234b365a
Add s2_geo processor plugin (#7087) 2020-03-10 15:39:06 -07:00
Samantha Wang 0be6275495
Add versioning to example readme (#7152) 2020-03-10 18:31:59 -04:00
Daniel Nelson eb063d0cc7
Update changelog 2020-03-10 15:22:19 -07:00
Daniel Nelson c7146be2f2
Add support for setting retention policy using tag (#7141) 2020-03-10 15:20:03 -07:00
Daniel Nelson c50b02e58d
Fix internal metrics for output split into multiple lines (#7119) 2020-03-10 15:19:32 -07:00
Steven Soroka 64fecfa19e
fix inputs.postgresql panic in posgres 12 (#7151) 2020-03-10 17:06:29 -04:00
Steven Soroka 3bc53558a4
fix concurrency panic in ntpq input. Closes #7101 (#7143) 2020-03-10 16:48:30 -04:00
Steven Soroka c31ba94bb8
modbus to support scaling int32 and float32-ieee (#7148) 2020-03-10 16:46:36 -04:00
Daniel Nelson 755ff25502
Update changelog 2020-03-10 13:44:09 -07:00
Daniel Nelson b6de4da41f
Add topic tag options to kafka output (#7142) 2020-03-10 13:38:26 -07:00
Daniel Nelson 41f39f5f59
Update changelog 2020-03-10 12:47:26 -07:00
Giovanni Luisotto 1601a06915
Fix several issues with DatabaseIO query in sqlserver input (#7103) 2020-03-10 12:44:54 -07:00
Daniel Nelson a9d1726f99
Update changelog 2020-03-10 12:09:19 -07:00
Harshit Bansal 134af0fe4b
Fix log rotation to use actual file size instead of bytes written (#7133) 2020-03-10 12:07:42 -07:00
Harshit Bansal 1ce56f8b59
Document port specification in postgres input plugins (#7132) 2020-03-10 12:02:50 -07:00
Steven Soroka dfa4d1bf8e
update list of dependencies (#7147) 2020-03-10 10:50:38 -04:00
Steven Soroka 830a922a41 fix deps 2020-03-10 10:21:23 -04:00
Steven Soroka a76d10a44e sort lines 2020-03-10 09:59:37 -04:00
Steven Soroka 595c8b6075 update list of dependencies 2020-03-10 09:47:26 -04:00
Steven Soroka 874804a2ad update changelog 2020-03-09 18:46:55 -04:00
Kevin Lin d35290ac7e
plugins/inputs: New input for Wireguard server (#6367) 2020-03-09 18:34:43 -04:00
Daniel Nelson 318a963a89
Check license of dependencies file for changes (#7108) 2020-03-09 14:47:28 -07:00
Daniel Nelson 1eca315e15
Update changelog 2020-03-09 14:14:00 -07:00
Daniel Nelson ca65d52c9a
Add support for converting tag or field to measurement in converter processor (#7049) 2020-03-09 14:08:38 -07:00
Russ Savage 898487b2da
Fix typo in salesforce readme (#7120) 2020-03-05 18:07:28 -08:00
Daniel Nelson 7b03a6f4ab
Update stackdriver plugins to reflect new product naming (#7098) 2020-03-05 10:36:36 -08:00
Daniel Nelson 561bb3df2e
Fix spelling error in the SNMP field example (#7118) 2020-03-05 10:16:49 -08:00
Daniel Nelson 3817aafdcb
Update clickhouse docs with renamed source tag 2020-03-04 14:46:27 -08:00
Daniel Nelson 6edd57ea87
Rename clickhouse user to username 2020-03-04 14:44:37 -08:00
Daniel Nelson bffd57aa58
Update readme and changelog 2020-03-04 14:42:50 -08:00
Daniel Nelson e4caa347a2
Add ClickHouse input plugin (#6441) 2020-03-04 14:20:46 -08:00
David Reimschussel b6892378a0 Update changelog 2020-03-04 11:30:07 -07:00
reimda a0276385b1
Refactor InfluxDB listener (#6974)
Use streaming parser in InfluxDB listener
2020-03-04 11:13:44 -07:00
josephpeacock ab8438dcc6
Add threaded parsing in statsd input plugin (#6922) 2020-03-03 14:47:33 -08:00
Daniel Nelson f04d84994d
Update changelog 2020-03-02 18:52:22 -08:00
mg03 dd1ace73b0
Add label and field selectors to prometheus input k8s discovery (#6969) 2020-03-02 18:51:31 -08:00
Daniel Nelson 69554cd92e
Update changelog 2020-03-02 12:04:32 -08:00
Felix Edelmann 32d80d2a08
Add non-cumulative histogram (#7071) 2020-03-02 10:59:19 -08:00
Daniel Nelson a6dc099be4
Update changelog 2020-02-28 14:48:27 -08:00
Andre Nathan 88216eb4d2
Allow globs in FPM unix socket paths (#7089) 2020-02-28 14:47:04 -08:00
Steven Soroka a34180459a Close stdin on exit in execd input 2020-02-28 13:58:56 -05:00
Jan Graichen a20e6953d2
Add an exec daemon plugin (#4424) 2020-02-28 13:46:03 -05:00
Rick van de Loo 0103691eb6
Fix typo in exec input readme (#7086) 2020-02-26 09:33:24 -08:00
Daniel Nelson f91261d7fe
Add basic benchmark for influx serializer reader (#7078) 2020-02-25 18:58:23 -08:00
Daniel Nelson 1301cbce0a
Update changelog 2020-02-25 16:37:29 -08:00
Joao Gilberto Magalhães de16279d72
Add RabbitMQ slave_nodes and synchronized_slave_nodes metrics (#7084) 2020-02-25 16:36:06 -08:00
Daniel Nelson 9d601d6d78
Set 1.13.4 release date 2020-02-25 12:51:56 -08:00
Daniel Nelson 608891c405
Update changelog 2020-02-25 12:21:09 -08:00
Anthony Arnaud 8c99dc7b5e
Use the same timestamp per call if no time is provided (#7063) 2020-02-25 12:19:28 -08:00
Daniel Nelson 9f8a73426d
Update changelog 2020-02-25 12:10:49 -08:00
Daniel Nelson 8acf276afe
Use Go 1.13.8 to build official packages (#7079) 2020-02-25 12:05:44 -08:00
Daniel Nelson f263b7ce59
Update changelog 2020-02-25 10:43:02 -08:00
Steven Soroka 2e32f894b6
Fix inconsistency with input error counting (#7077) 2020-02-25 10:40:29 -08:00
Daniel Nelson fc2486f24c
Update changelog 2020-02-24 16:32:58 -08:00
donvipre b127254cca
Add additional tags and fields to apcupsd (#7065)
- new tags:
  - model
- new metrics:
  - battery_date
  - nominal_input_voltage
  - nominal_battery_voltage
  - nominal_power
  - firmware
2020-02-24 16:32:09 -08:00
Daniel Nelson eb29f46721
Update changelog 2020-02-24 16:01:27 -08:00
Daniel Nelson b5e0577d6b
Use add time for prometheus expiration calculation (#7056) 2020-02-24 15:53:16 -08:00
Daniel Nelson e9e4f2c354
Update changelog 2020-02-21 11:13:03 -08:00
Giovanni Luisotto 413ca898be
Fix perf counters collection on named instances in sqlserver input (#7060) 2020-02-21 11:11:50 -08:00
Daniel Nelson 3a9062394a
Update changelog 2020-02-20 14:31:25 -08:00
R.I.Pienaar 79ff743064
Add support for credentials file to nats_consumer and nats output (#7022) 2020-02-20 14:30:04 -08:00
Steven Soroka 82a358b910
testing circle ci for mac (#7054) 2020-02-20 17:23:13 -05:00
Daniel Nelson cf0667264a
Update changelog 2020-02-20 10:47:03 -08:00
Daniel Nelson 2e48a3b45a
Update github.com/safchain/ethtool (#7052) 2020-02-20 10:45:59 -08:00
James Buchan cd2a77a95b
Remove duplicate loop in net_response plugin (#7055) 2020-02-20 13:31:41 -05:00
Steven Soroka 5023df08d8
resolves issues where failed api calls lead to obscure errors (#7051) 2020-02-19 21:46:08 -05:00
Daniel Nelson 3058308d38
Update changelog 2020-02-19 12:37:08 -08:00
prashanthjbabu 59a506ae4a
Add process created_at time to procstat input (#7039) 2020-02-19 11:57:07 -08:00
MikaelUrankar 740e30a96d
Update gopsutil to add support for freebsd/arm64 (#7031) 2020-02-19 11:54:19 -08:00
Daniel Nelson 3f7198fca5
Update changelog 2020-02-18 17:32:18 -08:00
Steven Barth 0a1373765e
Fix dash to underscore replacement when handling embedded tags in Cisco MDT (#7035)
Currently configuring embedded_tags for cisco_telemetry_mdt input
requires an unusual mix of - and _, i.e. one needs to specify e.g.
Cisco-IOS-XR-wdsysmon-fd-oper:system-monitoring/cpu-utilization/process_cpu/process-id
for it to work correctly. Additionally, tags created might still contain
dashes against convention.

This fix creates correctly formatted tags with underscores instead of
dashes and unifies the configuration parameter to expect either dashes
or underscores, so old configurations are still valid.
2020-02-18 17:31:39 -08:00
Steven Soroka 8b3bd2585d
Fix issues with failing tests on darwin (#7042) 2020-02-18 16:13:53 -08:00
Atakan Özceviz 397a04aa32
Fix typo in http_response readme (#7036) 2020-02-18 14:30:56 -08:00
Daniel Nelson 88a89634d8
Update changelog 2020-02-14 15:37:46 -08:00
Daniel Nelson 784266a301
Update jenkins readme 2020-02-14 15:36:58 -08:00
vikkyomkar e056097cb4
Add new fields for Jenkins Total and Busy executors (#6957) 2020-02-14 14:04:54 -08:00
Daniel Nelson 07a7b70f97
Update changelog 2020-02-12 21:17:27 -08:00
Daniel Nelson cb192c85b2
Update pgbouncer readme 2020-02-12 21:15:59 -08:00
Daniel Nelson cb2c26a332
Fix support with pgbouncer <1.9 2020-02-12 21:15:29 -08:00
Mark Fletcher 6c839a33a4
Fix pgbouncer input when used with newer pgbouncer versions (#6820) 2020-02-12 20:53:11 -08:00
Daniel Nelson e3bc546a46
Add release note regarding Windows Vista support 2020-02-12 17:37:35 -08:00
Daniel Nelson 68678755de
Update changelog 2020-02-12 17:37:35 -08:00
Quanah Gibson-Mount e082c8d800
Add support for MDB database information to openldap input (#6993) 2020-02-12 17:33:48 -08:00
Alvaro Olmedo Rodriguez e122bc7503
Fix units in redis documentation (#7016) 2020-02-12 09:43:44 -08:00
Antonio Garcia 9d97ed22e6
Fix float conversion and startup connection issue in modbus input (#7002) 2020-02-10 16:54:33 -08:00
Daniel Nelson c681eb3524
Fix issue number in changelog 2020-02-10 14:24:23 -08:00
Daniel Nelson c1eb0c8501
Update changelog 2020-02-10 14:23:29 -08:00
Daniel Nelson 5b8c71e61a
Search for chronyc only when chrony input plugin is enabled (#7005) 2020-02-10 14:22:07 -08:00
Daniel Nelson d3b89ec51f
Update changelog 2020-02-10 14:20:03 -08:00
Daniel Nelson 0710cc7488
Parse NaN values from summary types in prometheus input (#6997) 2020-02-10 14:18:29 -08:00
Daniel Nelson d46f94112c
Use require in cisco mdt tests to avoid follow on errors (#6984) 2020-02-06 14:18:42 -08:00
Daniel Nelson 5f2f2ff33d
Update readme and changelog for template processor 2020-02-06 13:34:36 -08:00
RobMalvern 15d0166922
Add template processor (#6494) 2020-02-06 12:40:03 -08:00
Daniel Nelson 62ffd7172f
Update changelog 2020-02-04 17:33:57 -08:00
Manthan Sharma ae22db4b81
Add support for titlecase transformation to strings processor (#6982) 2020-02-04 17:32:41 -08:00
Daniel Nelson 0cc71dbd51
Document the behavior of an unset routing key (#6983) 2020-02-04 16:40:00 -08:00
David Reimschussel e51d9a3575 Set 1.13.3 release date 2020-02-04 16:36:17 -07:00
David Reimschussel 4991fcb281 Update changelog 2020-02-04 16:27:44 -07:00
Daniel Nelson e8d9add2d1
Expire metrics on query in addition to on add (#6981)
Ensures that expired metrics are removed even when no new data is sent
to the output.
2020-02-04 16:12:23 -07:00
Daniel Nelson 8792a5fd5e
Exclude processors and aggregators from minimal config example 2020-02-04 13:54:11 -08:00
Antonio Garcia bbb8858c1d
Delete .README.md.swp (#6980) 2020-02-04 10:36:02 -08:00
Daniel Nelson bc09c21f6e
Update changelog 2020-02-03 18:53:59 -08:00
Daniel Nelson c9a3887501
Update to github.com/safchain/ethtool@latest (#6975) 2020-02-03 18:52:08 -08:00
Daniel Nelson 40ef7fe4d1
Update changelog 2020-02-03 18:24:43 -08:00
Daniel Nelson adb156c185
Remove quantile example from aggregators docs
Avoid confusion since we don't yet have an aggregator for quantiles.
2020-02-03 18:13:45 -08:00
Daniel Nelson 38bc81e746
Fix atomic usage in tests (#6964) 2020-01-31 14:14:44 -08:00
SirishaGopigiri 6cac2fb388
Improve monit http client transport mock (#6955) 2020-01-31 15:09:09 -07:00
Asgaut Eng 9823952597
Fix duplicate TrackingIDs returned (#6960)
There is a small chance the newTrackingID() function in tracking.go
will return the same id to multiple simultaneous callers.
The function must return the value returned by atomic.AddUint64()
to be safe.
2020-01-31 12:03:54 -08:00
Daniel Nelson ede9bc520b
Update readme and changelog 2020-01-29 02:50:11 -08:00
Antonio Garcia 9389099820
Add modbus input plugin (#6154) 2020-01-29 02:18:58 -08:00
Daniel Nelson 99da6f4883
Remove dep dependency information (#6937) 2020-01-27 23:18:23 -08:00
David Reimschussel 9d214ae291 Update changelog 2020-01-24 12:01:13 -07:00
victornet c6b8947c15 Add counters for merged reads and writes to diskio input. 2020-01-24 11:57:47 -07:00
Daniel Nelson 4929ad1e6e
Update changelog 2020-01-23 15:47:33 -08:00
AnastasiyaRagozina cb50fadc20 Add replica set tag to mongodb input (#6914) 2020-01-23 15:46:23 -08:00
Daniel Nelson 5d9cecaa02
Update changelog 2020-01-23 15:36:25 -08:00
Daniel Nelson bbe2d12e7e
Update kibana docs 2020-01-23 15:33:13 -08:00
vikkyomkar bc3429ed48 Add compatibility for Kibana 6.4 and later (#6923) 2020-01-23 12:08:16 -08:00
Daniel Nelson fb1b29cc20
Update changelog 2020-01-22 15:29:21 -08:00
Daniel Nelson 9243ae9f51
Add udp internal metrics for the statsd input (#6921) 2020-01-22 15:28:41 -08:00
Daniel Nelson ec35f07770
Update monit docs and update changelog/readme 2020-01-22 15:27:54 -08:00
SirishaGopigiri 9fd400c9ac Add input plugin for monit (#6850) 2020-01-22 14:45:18 -08:00
Daniel Nelson 9747fa7f07
Update changelog 2020-01-21 17:11:50 -08:00
James Beckett 916f39d285 Add server_name override for x509_cert plugin (#6917) 2020-01-21 17:06:58 -08:00
Daniel Nelson 6a982da8b0
Set release date for 1.13.2 2020-01-21 11:00:37 -08:00
Daniel Nelson 4c79a68544
Update changelog 2020-01-21 10:49:51 -08:00
Daniel Nelson c6f8b273c0
Allow a user defined field to be used as the graylog short_message (#6700) 2020-01-21 10:49:01 -08:00
Daniel Nelson ebebfd9573
Update changelog 2020-01-21 10:12:59 -08:00
Daniel Nelson c6519c7793
Hook up json_strict option with default of true (#6909) 2020-01-21 10:10:02 -08:00
Daniel Nelson 5f1f4b9e8d
Use Go modules for dependency management (#6912) 2020-01-16 14:38:06 -08:00
Daniel Nelson 17c165391b
Update documentation for infiniband plugin 2020-01-16 13:56:23 -08:00
Will Furnell 182104f95e Add a new input plugin for InfiniBand card/port statistics (#6631) 2020-01-16 12:51:33 -08:00
Daniel Nelson 93f149f126
Update changelog 2020-01-16 12:17:06 -08:00
Pontus Rydin c7b7336da3 Exclude resources by inventory path in vsphere input (#6859) 2020-01-16 12:14:00 -08:00
Daniel Nelson d7b3f1f4ea
Document workaround for truncated powershell output (#6910) 2020-01-15 19:29:50 -08:00
Daniel Nelson ca47606613
Update changelog 2020-01-15 15:28:10 -08:00
Daniel Nelson f6b302621e
Do not add invalid timestamps to kafka messages (#6908) 2020-01-15 15:26:50 -08:00
like-inspur 68925ed1ef Change description for config dns_lookup (#6902) 2020-01-14 18:35:48 -08:00
Daniel Nelson 6d96f359b4
Update changelog 2020-01-14 17:06:34 -08:00
ryan-peck 1b4aad2ccd Change logic to allow recording of device fields when attributes is false (#6638) 2020-01-14 17:05:28 -08:00
Pontus Rydin fc57012629 Deprecated force_discovery_on_init flag in vsphere input (#6861) 2020-01-14 16:30:43 -08:00
Daniel Nelson fdf871f679
Update changelog 2020-01-14 16:27:57 -08:00
Daniel Nelson 8d647c4ebf
Fix URL agent address form with udp in snmp input (#6899) 2020-01-14 16:26:44 -08:00
Daniel Nelson 0693748c35
Show default port in consul sample config 2020-01-14 16:24:14 -08:00
Daniel Nelson d9113c5fdb
Update changelog 2020-01-14 15:17:11 -08:00
Daniel Nelson e8c4efb572
Add date offset and timezone options to date processor (#6886) 2020-01-14 15:16:27 -08:00
Dennis Hoppe 5f2ed4ce4f Remove tabs to fix indentation (#6896) 2020-01-14 12:30:03 -08:00
Daniel Nelson 8f14187e9a
Update changelog 2020-01-13 15:17:08 -08:00
Pontus Rydin 78a7978ea8 Add custom attributes for all resource types in vsphere input (#6884) 2020-01-13 15:15:55 -08:00
Daniel Nelson b908059326
Update changelog 2020-01-13 10:50:53 -08:00
Benjamin Schweizer 875bd7743b Only parse certificate blocks in x509_cert input (#6893) 2020-01-13 10:49:14 -08:00
Daniel Nelson a93eda95e1
Update changelog 2020-01-10 12:44:44 -08:00
Daniel Nelson 0cee84fa6a
Warn without error when processes input is started on Windows (#6891) 2020-01-10 12:43:28 -08:00
Daniel Nelson 949ac7471f
Update changelog 2020-01-09 17:53:18 -08:00
vikkyomkar 1b1d78b8dd Add source and port tags to jenkins_job metrics (#6844) 2020-01-09 17:52:26 -08:00
Daniel Nelson 7faf05023d
Update Warp10 docs and uint64 and timestamp handling (#6885) 2020-01-09 13:57:14 -08:00
Aurélien HÉBERT ce02bebf30 Add output plugin for Warp10 (#1923) 2020-01-09 11:29:16 -08:00
Daniel Nelson 07b75c57fe
Update changelog 2020-01-08 18:19:16 -08:00
Ross Lodge 6f9f0b7f01 Add latency stats to mongo input (#6733) 2020-01-08 18:18:12 -08:00
Daniel Nelson 695678c4a5
Update changelog 2020-01-08 18:10:44 -08:00
denzilribeiro 1df88dd22b Add RBPEX stats collection, DBName for perfmon, proper type for resource stats (#6869) 2020-01-08 17:55:37 -08:00
Daniel Nelson c1456a718e
Update changelog 2020-01-08 12:58:14 -08:00
Daniel Nelson bc576134bb
Set release date for 1.13.1 2020-01-08 11:06:04 -08:00
Daniel Nelson f571f2392a
Update changelog 2020-01-08 10:58:02 -08:00
Daniel Nelson 1498f8addf
Add cardinality tips to FAQ and sqlserver input (#6852) 2020-01-08 10:52:58 -08:00
Daniel Nelson 73488eb61c
Use last path element as field key if path fully specified (#6848) 2020-01-08 10:52:36 -08:00
Daniel Nelson 69d9c10572
Update example telegraf.conf 2020-01-08 10:50:40 -08:00
Daniel Nelson 5f52b9538d
Fix indention in merge sample config 2020-01-08 10:48:06 -08:00
Samantha Wang d62ff1d25c Update merge aggregator config file in README.md (#6805) 2020-01-08 10:46:01 -08:00
Thomas Mohaupt 5b92477603 Fix error in pivot processor docs (#6856) 2020-01-06 15:54:49 -08:00
Daniel Nelson b0398c9a8f
Update changelog 2020-01-03 11:43:19 -08:00
Daniel Nelson 0cf94cfe54
Report rabbitmq_node measurement and return on gather error (#6819) 2020-01-03 11:38:20 -08:00
Daniel Nelson 7e498ede6d
Update github.com/kardianos/service to 1.0.0 (#6849) 2020-01-03 11:37:30 -08:00
Xiaoyu Lee 8e04221fb7 Fix link to uwsgi input (#6851) 2020-01-03 10:58:15 -08:00
Daniel Nelson eb272f450a
Update changelog 2020-01-02 16:39:45 -08:00
Daniel Nelson 2486006495
Add kafka SASL version control to kafka_consumer (#6350) 2020-01-02 16:27:26 -08:00
Daniel Nelson 1edb73916f
Improve suricata input unit test debugging (#6815) 2020-01-02 16:26:48 -08:00
Daniel Nelson 318d8134cf
Update changelog 2020-01-02 16:17:16 -08:00
Daniel Nelson 8831651799
Show platform not supported warning only on plugin creation (#6801) 2020-01-02 16:15:48 -08:00
Daniel Nelson 25e1636775
Fix race condition in logparser tests (#6825) 2020-01-02 16:14:32 -08:00
Daniel Nelson a5ef34f6e2
Update changelog 2019-12-30 13:54:00 -08:00
Jonathan Hurter 01e31e9d53 Invalidate diskio cache if the metadata mtime has changed (#6835) 2019-12-30 13:52:03 -08:00
Daniel Nelson dd67a1c764
Update changelog 2019-12-30 11:46:39 -08:00
Giovanni Luisotto 3d8940e69b Encode query hash fields as hex strings in sqlserver input (#6818) 2019-12-30 11:45:46 -08:00
Daniel Nelson c325c94a96
Rewrite documentation for snmp input (#6802) 2019-12-30 11:33:32 -08:00
Daniel Nelson f035d44fe1
Update changelog 2019-12-27 15:51:09 -08:00
Daniel Nelson 8b73625492
Fix panic on connection loss with undelivered messages (#6806) 2019-12-27 15:48:45 -08:00
Daniel Nelson ef7fd9d030
Update changelog 2019-12-26 10:17:52 -08:00
Brad Vernon 40311dcd7a Fix missing config fields in prometheus serializer (#6823) 2019-12-26 10:15:25 -08:00
Daniel Nelson 2f943e97b7
Update changelog 2019-12-17 16:58:57 -08:00
Bugagazavr b380c65c15 Add support for new nginx plus api endpoints (#6508) 2019-12-17 16:58:06 -08:00
Daniel Nelson 17a84ab4b4
Update changelog 2019-12-17 16:51:11 -08:00
Enno Lohmeier 697963e8cc Expose unbound-control config file option (#6770) 2019-12-17 16:50:00 -08:00
David Reimschussel 644f2ad847 Update changelog 2019-12-17 15:23:51 -07:00
reimda 99279e6461
Convert snmp_trap_test.go to table test (#6803)
Add a test for v1 generic trap.  Add missing leading period in v1 generic trap oid.
2019-12-17 15:12:42 -07:00
maurorappa 2beb79969a Sort alphabetically the output of the plugin listing commands (#6810) 2019-12-17 12:44:17 -08:00
Daniel Nelson cb915a5c5a
Update changelog 2019-12-12 15:03:08 -08:00
Daniel Nelson e6a87cd52e
Update kubernetes sample config and readme 2019-12-12 15:01:50 -08:00
LinaLinn f79ba10ab3 Add ability to collect pod labels to Kubernetes input (#6764) 2019-12-12 14:14:37 -08:00
Daniel Nelson 4fbba13622
Update changelog 2019-12-12 13:58:44 -08:00
gescheit debb5e4fa6 Add use_sudo option to ipmi_sensor input (#6798) 2019-12-12 13:56:28 -08:00
chuckbarkertech 94fc769e0b Fix ServerProperty query stops working on Azure after failover (#6794) 2019-12-12 13:16:41 -08:00
Ram Gopinathan 1aee98f064 Add missing basic auth credentials to haproxy readme (#6796) 2019-12-12 12:38:00 -08:00
Daniel Nelson dde70118c0
Set 1.13.0 release date 2019-12-12 11:09:40 -08:00
Daniel Nelson d6f2857c2b
Update sample config 2019-12-12 11:05:31 -08:00
reimda a7a639f6a3 Fix off by one bug in snmp trap v1 generic trap field (#6797) 2019-12-12 10:54:44 -08:00
reimda cae701c54b Interpret SNMP v1 traps as described in RFC 2576 3.1 (#6793) 2019-12-11 14:29:18 -08:00
Daniel Nelson 7cc3507f22
Update changelog 2019-12-11 11:44:07 -08:00
Ben Hymans 4def7cc5e1 Add option to control collecting global variables to mysql input (#6790) 2019-12-11 11:42:54 -08:00
Daniel Speichert 98585a1853 Set TrimLeadingSpace when TrimSpace is on in csv parser (#6773) 2019-12-11 11:25:35 -08:00
reimda 61fbc68279 Add documentation about listening on port < 1024 (#6785) 2019-12-11 10:23:51 -08:00
Daniel Nelson 05cefe61bd
Document --service-display-name flag for Windows service 2019-12-10 13:13:03 -08:00
Daniel Nelson 7cfde0cf4d
Update changelog 2019-12-10 13:01:53 -08:00
Daniel Nelson aabc7e7d4f
Replace colon chars in prometheus output labels with metric_version=1 (#6781) 2019-12-10 12:59:16 -08:00
Daniel Nelson eb00f41905
Use actual database name in db creation failed log (#6780) 2019-12-10 12:58:59 -08:00
Daniel Nelson 5034af7af2
Update changelog 2019-12-09 12:24:11 -08:00
Daniel Nelson faca80fd00
Fix unix socket dial arguments in uwsgi input (#6769) 2019-12-09 12:15:27 -08:00
Daniel Nelson f0b0295e3c
Override github.com/satori/go.uuid revision for transitive deps (#6768)
While there has been a workaround in place for some time, this change is
being made to reduce confusion around if Telegraf is affected by
https://github.com/satori/go.uuid/issues/73
2019-12-06 17:22:11 -08:00
Daniel Nelson 613d0dbd16
Build packages with Go 1.13.5 (#6767) 2019-12-06 17:10:59 -08:00
likerj 3e46768578 Update supported environment variables (#6747) 2019-12-06 16:43:39 -08:00
Daniel Nelson b54af02a9a
Update changelog 2019-12-05 17:18:09 -08:00
Ross Lodge e6c57e7df4 Add page_faults for mongodb wired tiger (#6732) 2019-12-05 16:38:51 -08:00
Daniel Nelson 1f5be2bac7
Add minimum system requirements to readme 2019-12-04 17:16:00 -08:00
Daniel Nelson d0db03b8f3
Add troubleshooting command for Windows to temp input 2019-12-04 14:32:54 -08:00
Daniel Nelson eeb4690686
Fix prometheus histogram and summary merging (#6756) 2019-12-04 13:41:33 -08:00
Daniel Nelson 48f9f22f33
Document that json tag_keys are not saved as fields. 2019-12-03 16:43:05 -08:00
Daniel Nelson a58db9e447
Increment package versions 2019-12-03 14:59:50 -08:00
Daniel Nelson cc9a8cd1c6
Remove non-existent field from net_response readme 2019-12-03 14:57:40 -08:00
Daniel Nelson 1f7b68a2b2
Allow colons in the prometheus metric name (#6751) 2019-12-03 13:34:00 -08:00
Daniel Nelson 09f9b70354
Update changelog 2019-12-03 12:52:32 -08:00
Daniel Nelson 5d502bb605
Update sample config 2019-12-03 12:45:53 -08:00
Daniel Nelson 317c823bfc
Set message timestamp to the metric time in kafka output (#6746) 2019-12-03 11:48:53 -08:00
Daniel Nelson cdb00d6fe7
Add base64decode operation to string processor (#6740) 2019-12-03 11:48:02 -08:00
Daniel Nelson add8332990
Accept any media type in the prometheus input (#6745) 2019-12-03 11:47:31 -08:00
Daniel Nelson 9814817f90
Update to gopsutil v2.19.11 (#6741) 2019-12-03 11:47:02 -08:00
Daniel Nelson 03de92b962
Remove trailing underscore trimming from json flattener (#6744) 2019-12-03 11:46:29 -08:00
Daniel Nelson 4feef67c21
Update changelog 2019-12-03 11:44:03 -08:00
Daniel Nelson 63b047c91a
Fix ping skips remaining hosts after dns lookup error (#6743) 2019-12-03 11:27:33 -08:00
Daniel Nelson cf78f4e11e
Log mongodb oplog auth errors at debug level (#6742) 2019-12-03 11:26:51 -08:00
Daniel Nelson 1b25a9c910
Remove debug print statement 2019-12-02 20:03:25 -08:00
Daniel Nelson 88ab29ed63
Update changelog 2019-12-02 16:31:36 -08:00
Benjamin Schweizer 6839e5573c Add new "systemd_units" input plugin (#4532) 2019-12-02 16:05:50 -08:00
Ross Lodge fd2e9889ac Add node type tag to mongodb input (#6731) 2019-12-02 11:19:14 -08:00
pertu 6175d17969 Add uptime_ns field to mongodb input (#6669) 2019-12-02 11:16:00 -08:00
Kevin Lin 906027c39b Support resolution of symlinks in filecount input (#6735) 2019-12-02 11:06:36 -08:00
Chris Goller 03a6910689 perf(inputs/influxdb_listener): benchmark serving writes (#6673)
* perf(inputs/influxdb_listener): benchmark serving writes

* chore(inputs/influxdb_listener): remove stray comment
2019-12-02 11:49:04 -07:00
Samantha Wang 3595cb8b72 Update Telegraf README.md (#6718) 2019-11-27 18:02:40 -08:00
Daniel Nelson 10dd367faa
Update changelog and dependency licences 2019-11-27 11:00:28 -08:00
Enno Lohmeier e04bb1e07f Support partition assignement strategy configuration in kafka_consumer (#6688) 2019-11-27 10:54:29 -08:00
Daniel Nelson c58f0debb1
Update changelog 2019-11-26 17:32:37 -08:00
Daniel Nelson 10db774db3
Add prometheus round trip unit tests (#6720) 2019-11-26 17:31:36 -08:00
Daniel Nelson 80c5edd48e
Add prometheus serializer and use it in prometheus output (#6703) 2019-11-26 15:46:31 -08:00
Eric Kincl 8f71bbaa48 Add link to VMWare vCenter Converter API Reference (#6719) 2019-11-26 15:36:53 -08:00
Daniel Nelson a1424d78ba
Update changelog 2019-11-26 10:06:32 -08:00
Yong Wen Chua 6eb21978e6 Add additional tags for x509 Input Plugin (#6686) 2019-11-26 10:04:55 -08:00
Samantha Wang e061376846
docs(readme): Update to Amazon ECS
Update ECS to amazon ECS
2019-11-26 08:54:39 -08:00
Daniel Nelson b8d3f896ce
Update changelog 2019-11-25 15:39:36 -08:00
Jonathan Negrin c53d53826d Allow multiple certificates per file in x509_cert input (#6695) 2019-11-25 15:38:57 -08:00
Daniel Nelson c16b760a26
Update changelog 2019-11-25 15:36:12 -08:00
Daniel Nelson cbe7d33bd4
Add SReclaimable and SUnreclaim to mem input (#6716) 2019-11-25 15:31:22 -08:00
Daniel Nelson 6d94798fd6
Update changelog and readme 2019-11-25 11:58:19 -08:00
reimda cec1bdce90 Add snmp_trap input plugin (#6629) 2019-11-25 11:56:21 -08:00
Marc Ruiz 4e8aa8ad1b Fix README.md and improve example config description (#6707) 2019-11-22 10:32:39 -08:00
Daniel Nelson c3e3236bab
Update changelog 2019-11-21 18:39:22 -08:00
Marc Ruiz c7af10b159 Add high resolution metrics support to CloudWatch output (#6689) 2019-11-21 18:37:33 -08:00
Daniel Nelson a193f527f0
Update changelog 2019-11-21 18:13:44 -08:00
Nick Neisen 32d1e71a7e Add decoding and tests to socket_listener (#6660) 2019-11-21 18:11:17 -08:00
Daniel Nelson a000ad3553
Update changelog and readme 2019-11-21 11:33:47 -08:00
Remi Frenay 23b6deee22 Add synproxy input plugin (#5683) 2019-11-21 11:26:59 -08:00
Adrián López acfdc5576c Add clone processor to all.go (#6697) 2019-11-21 10:36:48 -08:00
Daniel Nelson f800d91dc8
Update changelog 2019-11-21 00:09:27 -08:00
Vishwanath 12ecdaba5b Add prometheus metric_version = 2 and url tag configurable (#5767) 2019-11-20 20:53:57 -08:00
David Reimschussel c12a403042 Update changelog 2019-11-20 13:33:11 -07:00
Daniel Nelson 8e0eb5a7db Add support for sending HTTP Basic Auth in influxdb input (#6668) 2019-11-20 13:20:48 -07:00
Daniel Nelson 70ff63060a
Set 1.12.6 release date 2019-11-19 12:32:03 -08:00
Daniel Nelson 16decd5f50
Update changelog 2019-11-19 12:28:07 -08:00
alan7yg a66b6729e9 Fix panic in mongodb input if ShardStats is nil (#6680) 2019-11-19 10:52:48 -08:00
Daniel Nelson 7ff6ec1963
Update changelog 2019-11-18 12:39:43 -08:00
Lance O'Connor bc8769ba24 Add Splunk MultiMetric support (#6640) 2019-11-18 12:38:34 -08:00
Daniel Nelson 169ba2ecc4
Update changelog 2019-11-18 10:28:27 -08:00
Daniel Nelson 9f05163c53
Fix interface option with method = native in ping input (#6667) 2019-11-18 10:27:31 -08:00
Daniel Nelson e8d6d445f4
Update changelog 2019-11-18 10:25:15 -08:00
Daniel Nelson 1700cfb1c7
Use nanosecond precision in docker_log input (#6663) 2019-11-18 10:24:22 -08:00
Daniel Nelson a9ec5fc209
Update changelog 2019-11-15 18:55:55 -08:00
Daniel Nelson 7a90ddd1b8
Log no metrics found at debug level in cloudwatch input (#6665) 2019-11-15 18:52:55 -08:00
Daniel Nelson 122ec0fa39
Build the nats input on freebsd when cgo is enabled (#6658) 2019-11-13 14:45:56 -08:00
Nick Neisen 0c918b099b Add source and port tags to jenkins plugin (#6641) 2019-11-13 13:38:33 -08:00
dbaltor 48c271640c Upgrade Azure/go-autorest to 13.0.0 (#6656) 2019-11-13 13:37:05 -08:00
Daniel Nelson 9211ec633e
Update changelog 2019-11-13 13:01:25 -08:00
Nick Neisen 20bb673a0e Add a nameable file tag to file input plugin (#6650) 2019-11-13 13:00:41 -08:00
Daniel Nelson 4f4063ba01
Update changelog 2019-11-13 12:58:51 -08:00
陈方舟 fa2f0fff4e Fix influxdb output serialization on connection closed (#6621) 2019-11-13 12:56:01 -08:00
Daniel Nelson 9a2b3bc917
Update changelog 2019-11-12 16:45:03 -08:00
dbutler-starry 2156a6242e Add support for per output flush jitter (#6603) 2019-11-12 16:43:39 -08:00
Daniel Nelson 2a8735d1c6
Add missing testdata directory 2019-11-12 16:41:46 -08:00
Daniel Nelson a686645bf3
Update changelog 2019-11-12 16:40:39 -08:00
Daniel Nelson b71a387ca2
Add additional nvidia-smi examples as testcases 2019-11-12 16:13:58 -08:00
Greg 2cf5116d14 Update nvidia-smi input to use xml (#6639) 2019-11-12 16:12:15 -08:00
Daniel Nelson 55b78a5f66
Fix spelling mistake in mqtt_consumer docs 2019-11-12 14:11:42 -08:00
Daniel Nelson 898c20c01e
Don't log if no error in mongodb input 2019-11-12 13:44:57 -08:00
Daniel Nelson 7717375bc9
Set 1.12.5 release date in changelog 2019-11-12 12:28:41 -08:00
Daniel Nelson f41fbef182
Update changelog 2019-11-12 12:08:54 -08:00
Daniel Nelson bcf1bcf318
Fix metric creation when node is offline in jenkins input (#6627) 2019-11-12 11:59:11 -08:00
Daniel Nelson ce3ae58ad9
Fix uptime_ns calculation when container has been restarted (#6649) 2019-11-12 11:58:13 -08:00
Daniel Nelson d858d82a85
Fix known mysql type conversion issues (#6647) 2019-11-12 11:55:53 -08:00
Daniel Nelson eb93dab70b
Update changelog 2019-11-12 11:50:36 -08:00
pertu e2fde882c7 Fix mongodb total_created field naming (#6643) 2019-11-12 11:45:09 -08:00
Daniel Nelson 8cba5941be
Skip logging when logfile is unset (#6648) 2019-11-11 17:03:03 -08:00
Daniel Nelson 58df6f6c94
Update changelog 2019-11-08 12:13:34 -08:00
Lyle Hanson 4d08f2f404 Use 1h or 3h rain values as appropriate (#6593) 2019-11-08 12:10:16 -08:00
Daniel Nelson 6fd1453942
Update changelog 2019-11-08 12:02:17 -08:00
Phil Preston d9ddd95b3c Add ethtool input plugin (#5865) 2019-11-08 11:55:37 -08:00
Daniel Nelson 6cbaf890d9
Use github.com/gofrs/uuid 2.1.0 (#6636) 2019-11-07 17:39:19 -08:00
Daniel Nelson 6014a26467
Use latest golang.org/x/crypto (#6635) 2019-11-07 17:23:42 -08:00
Daniel Nelson e33766cc0d
Update changelog 2019-11-07 16:31:17 -08:00
Daniel Nelson 0e6500669a
Add missing ServerProperties query to sqlserver input docs (#6625) 2019-11-07 16:29:45 -08:00
Daniel Nelson 74a8ebda9e
Use github.com/miekg/dns 1.0.10 (#6632) 2019-11-07 15:12:53 -08:00
Daniel Nelson 23c43fc310
Use gopkg.in/ldap.v3 3.1.0 (#6567) 2019-11-07 11:07:45 -08:00
Daniel Nelson 80e93af25b
Add gomock to dependency licenses 2019-11-07 11:00:31 -08:00
Daniel Nelson b98f4dc97b
Update changelog 2019-11-07 10:57:32 -08:00
Felix Maurer 378c570c06 Add support for SNMP over TCP (#5870) 2019-11-07 10:56:51 -08:00
Daniel Nelson b4a712969e
Update changelog 2019-11-06 17:33:53 -08:00
Nick Neisen 8d52f5a4b2 Change no metric error message to debug level (#6630) 2019-11-06 17:32:56 -08:00
Daniel Nelson e4170339b1
Document alias option on output, processor, aggregator plugins 2019-11-06 16:05:11 -08:00
Daniel Nelson 803e1a48aa
Update changelog 2019-11-06 13:39:09 -08:00
David McKay 284c7fc404 Add bearer token defaults for Kubernetes plugins (#6356) 2019-11-06 13:37:48 -08:00
The Dale 6881c64431 Add punctuation to CONFIGURATION.md (#6600) 2019-11-05 15:50:07 -08:00
Daniel Nelson dd258e6782
Update changelog 2019-11-05 11:58:10 -08:00
Giovanni Luisotto ba579819a0 Add missing character replacement to sql_instance tag (#6610) 2019-11-05 11:56:48 -08:00
Daniel Nelson 042fa53db8
Update changelog 2019-11-05 10:37:00 -08:00
Greg f0a578492a Fix incorrect results in ping plugin (#6581) 2019-11-05 10:34:18 -08:00
Scott Anderson 9efc37606f Add descriptions for kapacitor input metrics (#6505) 2019-10-24 16:45:59 -07:00
Daniel Nelson 2754a484f9
Document memory_usage field in procstat input 2019-10-24 11:13:52 -07:00
Daniel Nelson 8461631703
Update changelog 2019-10-23 17:27:28 -07:00
Daniel Nelson 3770923ce3
Update rabbitmq input readme 2019-10-23 17:26:31 -07:00
Jacques Heunis 8b3a8d1113 Add gathering of RabbitMQ federation link metrics (#6283) 2019-10-23 17:08:19 -07:00
Daniel Nelson 1761e25c96
Update changelog 2019-10-23 15:37:29 -07:00
David McKay 47a708ec99 Remove usage of deprecated v1beta API endpoints (#6543) 2019-10-23 15:35:37 -07:00
Daniel Nelson 988e036641
Update changelog 2019-10-23 14:09:28 -07:00
David McKay a9a0d4048a Add strict mode to JSON parser (#6536) 2019-10-23 14:06:39 -07:00
Daniel Nelson 41d6a1a787
Set 1.12.4 release date in changelog 2019-10-23 12:57:11 -07:00
Daniel Nelson e3839697b1
Update changelog 2019-10-23 12:52:23 -07:00
Daniel Nelson 504ccc25a7
Fix powerdns_recursor socket_mode option (#6572) 2019-10-23 12:50:54 -07:00
Daniel Nelson 44ab9b44f8
Update changelog 2019-10-23 12:42:42 -07:00
Daniel Nelson 2397c53d7d
Exclude alias tag if unset from plugin internal stats (#6571) 2019-10-23 12:40:31 -07:00
Daniel Nelson 5a6fe149f6
Update changelog 2019-10-22 16:50:04 -07:00
Greg c1521b5f68 Ensure metrics generated are correct in ping plugin using "native" (#6563) 2019-10-22 16:46:57 -07:00
Daniel Nelson b46bb222c4
Update godirwalk version (#6557)
Version 1.10 and later support Solaris
2019-10-22 13:32:58 -07:00
Daniel Nelson b3f20f69f5
Default logtarget to file for backwards compatibility (#6555) 2019-10-22 13:32:03 -07:00
Daniel Nelson d8c8458e1e
Update changelog 2019-10-22 13:18:27 -07:00
Daniel Nelson d2f3215890
Build with Go 1.13.3 and 1.12.12 (#6565) 2019-10-22 13:18:02 -07:00
Daniel Nelson 82a8057dc1
Update changelog 2019-10-21 21:30:18 -07:00
Daniel Nelson 17c4e0b06f
Improve ipvs input error strings and logging (#6530) 2019-10-21 21:27:05 -07:00
Daniel Nelson 82ba2cd52a
Update changelog 2019-10-21 21:24:52 -07:00
Daniel Nelson acdfa1be07
Show default settings in mysql sample config (#6484) 2019-10-21 21:22:53 -07:00
Daniel Nelson 592ca4ebde
Update GitHub bug issue template (#6554) 2019-10-21 14:46:19 -07:00
Daniel Nelson a5ec0b1d16
Update changelog 2019-10-21 14:24:33 -07:00
Dheeraj Dwivedi a01d273c45 Support custom success codes in http input (#6549) 2019-10-21 14:23:36 -07:00
Daniel Nelson 3802c8b8cb
Update changelog 2019-10-21 14:19:51 -07:00
Greg 8ec79513b6 Add timeout option to cloudwatch input (#6553) 2019-10-21 14:18:55 -07:00
Daniel Nelson e5baf7de89
Update changelog 2019-10-21 12:12:41 -07:00
David McKay a1bcc0f87b Log file not found errors at debug level in tail input (#6540) 2019-10-21 12:10:56 -07:00
Sebastian Thörn f22947ee42 Fix link to zookeeper documentation (#6551) 2019-10-21 12:06:19 -07:00
Daniel Nelson d64f1d2a51
Update changelog 2019-10-21 12:03:30 -07:00
Adrián López 89c4c1d024 Add clone processor (#6529) 2019-10-21 11:59:32 -07:00
Daniel Nelson 59adbe8b39
Update changelog 2019-10-18 12:52:53 -07:00
reimda 00962783f8
Add lang parameter to OpenWeathermap input plugin (#6504) 2019-10-18 13:48:23 -06:00
pierwill c8f4215ac5 Document data types should be specified in column order (#6526) 2019-10-14 15:29:41 -07:00
Daniel Nelson b990901110
Revert "Add CLA check GitHub action (#6479)"
This reverts commit 8eb8643a3a.
2019-10-14 15:08:22 -07:00
Daniel Nelson b5182f4f9a
Update changelog 2019-10-07 22:06:43 -07:00
Daniel Nelson 5bd5cdc6d7
Build official packages with Go 1.13.1 (#6462) 2019-10-07 21:08:28 -07:00
Richard Wise da17d6569d Clarify behaviour of enum processor without default or defined mapping (#6301) 2019-10-07 18:08:35 -07:00
Daniel Nelson c67674eff3
Update changelog 2019-10-07 17:29:55 -07:00
Randy Coburn a5294fde32 Add container id as optional source tag to docker and docker_log input (#6473) 2019-10-07 17:27:32 -07:00
Daniel Nelson e7cf8319b0
Set 1.12.3 release date 2019-10-07 12:31:43 -07:00
Daniel Nelson 6c4cce1705
Update changelog 2019-10-07 12:20:36 -07:00
Daniel Nelson 74c7dd3ce7
Fix logger initialization in exec input (#6492) 2019-10-07 12:18:36 -07:00
Daniel Nelson d7988915e9
Update changelog 2019-10-07 12:17:33 -07:00
Daniel Nelson 47fd285b4a
Fix database routing on retry with exclude_database_tag (#6486) 2019-10-07 12:13:39 -07:00
Daniel Nelson d71c8ed3b9
Update changelog 2019-10-04 17:39:55 -07:00
Rajiv Kushwaha b9a4ef7484 Add millisecond unix time support to grok parser (#6476) 2019-10-04 17:38:48 -07:00
Daniel Nelson ddd79762ac
Update changelog 2019-10-04 17:08:58 -07:00
GeorgeJahad c26aeb871d Remove package level vars from sqlserver and mysql input plugins (#6468) 2019-10-04 12:18:34 -07:00
George 8eb8643a3a Add CLA check GitHub action (#6479) 2019-10-04 11:30:43 -07:00
Daniel Nelson e41d90080a
Update changelog 2019-09-30 16:56:58 -07:00
David McKay 367dee791a Add auth header only when env var is set (#6469) 2019-09-30 16:55:47 -07:00
Daniel Nelson d75b5e5e10
Update changelog 2019-09-30 16:51:31 -07:00
Mark Wilkinson - m82labs 68d11e01ab Add more performance counter metrics to sqlserver input (#6465) 2019-09-30 16:50:33 -07:00
Daniel Nelson 07faceadd5
Update changelog 2019-09-30 10:44:12 -07:00
Daniel Nelson 9867fe3279
Add test case for smart serial number 2019-09-30 10:42:47 -07:00
Gregory Brzeski fc1b1e8d20 Use case insensitive serial numer match in smart input (#6464) 2019-09-30 10:41:25 -07:00
Daniel Nelson 518c09a9f6
Update changelog 2019-09-27 16:47:27 -07:00
Daniel Nelson 01e9484881
Use Go 1.12.10 for builds (#6455) 2019-09-27 16:44:54 -07:00
Daniel Nelson 31d8d2baa7
Update changelog 2019-09-26 17:12:20 -07:00
Daniel Nelson fc6fb33067
Add merge aggregator (#6410) 2019-09-26 17:09:44 -07:00
Daniel Nelson 86539515b8
Update changelog 2019-09-26 16:17:25 -07:00
Randy Coburn 62c6e30a78 Use batch serialization format in exec output (#6446) 2019-09-26 16:14:54 -07:00
Daniel Nelson aef93fd1c6
Set release date for 1.12.2 2019-09-24 13:54:28 -07:00
Daniel Nelson 3cf5b86aee
Use new log style in cisco_telemetry_gnmi 2019-09-24 11:17:43 -07:00
Daniel Nelson 54b83361e8
Update changelog 2019-09-24 11:09:25 -07:00
Steven Barth 00d9b84234 Fix path handling issues in cisco_telemetry_gnmi (#6403)
- Avoid crashing when a field has no value or one of deprecated type
- Emit measurement names correctly for replies with empty origin
- Skip paths with empty names instead of adding a '/'
2019-09-24 11:05:56 -07:00
Greg 817c9a69a9 Document and add support to input plugins for logging alias (#6357) 2019-09-23 15:39:50 -07:00
Daniel Nelson e42d2e39c6
Update changelog 2019-09-23 10:28:21 -07:00
Kai Groner f080b58834 Use prefix base detection for ints in grok parser (#6434) 2019-09-23 10:26:17 -07:00
Daniel Nelson 24d5a93e63
Add example URL for cloud2 to influxdb_v2 output 2019-09-23 10:02:19 -07:00
Daniel Nelson 2de217fb4c
Update changelog 2019-09-20 16:52:00 -07:00
Daniel Nelson 776e92ffab
Require goplugin build flag to enable go plugin support (#6393) 2019-09-20 16:50:19 -07:00
Daniel Nelson 46b89b379a
Update ping input readme (#6412) 2019-09-20 16:49:14 -07:00
Daniel Nelson cd1bb2bc23
Update suricata readme style 2019-09-20 15:44:55 -07:00
Daniel Nelson 84840d848c
Update changelog and link to readme to suricata 2019-09-20 15:38:39 -07:00
Sascha Steinbiss d2d6f1ab21 Add Suricata input plugin (#3145) 2019-09-20 15:35:21 -07:00
Daniel Nelson f669ef4452
Update changelog 2019-09-19 20:11:20 -07:00
Daniel Nelson 51a33acbb6
Update cpu docs to latest style (#6411) 2019-09-19 20:04:24 -07:00
Daniel Nelson 8d96dd71c7
Allow graphite parser to create Inf and NaN values (#6420) 2019-09-19 20:03:10 -07:00
GeorgeJahad e553341879 Update sqlserver docs for TLS connections (#6409) 2019-09-17 15:48:08 -07:00
David McKay a2c28f2762 Recommend installing TICK Stack with Helm Stable Charts (#6404) 2019-09-17 12:52:34 -07:00
Daniel Nelson fe616ed473
Update changelog 2019-09-16 16:58:09 -07:00
Steven Barth ee9d0fc493 Support NX-OS telemetry extensions in cisco_telemetry_mdt (#6177) 2019-09-16 16:57:25 -07:00
Daniel Nelson b5510eb128
Remove transitive dependency azure-pipeline-go from Gopkg.toml 2019-09-16 16:46:34 -07:00
Daniel Nelson 97328cf177
Use gopsutil 2.19.8 2019-09-16 16:45:55 -07:00
Daniel Nelson 8ed633bae5
Update changelog 2019-09-16 16:39:20 -07:00
Daniel Nelson 6dc61be6eb
Fix detection of layout timestamps (#6390) 2019-09-16 16:32:14 -07:00
Greg 7167a23c52 Update apcupsd library (#6401) 2019-09-16 16:31:37 -07:00
Greg df288a0bb4 Keep boolean when listed in json_string_fields (#6400) 2019-09-16 16:30:34 -07:00
Daniel Nelson acb6cd67be
Update changelog 2019-09-12 14:54:17 -07:00
Adam Flott 57f58fdbcc Add replication metrics to the redis input(#5921) 2019-09-12 14:52:03 -07:00
Daniel Nelson a3df39c91e
Update changelog 2019-09-12 13:39:25 -07:00
Boris Popovschi d717e8ea03 Add ability to read query from file to postgresql_extensible input (#6361) 2019-09-12 13:38:35 -07:00
Daniel Nelson bae12dde1e
Set 1.12.1 release date 2019-09-10 12:05:36 -07:00
Daniel Nelson f4cad12dcb
Update changelog 2019-09-10 11:55:42 -07:00
Daniel Nelson 59c43b644f
Fix apcupsd documentation to reflect actual plugin (#6377) 2019-09-10 11:51:34 -07:00
Greg 88b60a2e9b Return error rather than default a retry value (#6376) 2019-09-10 11:46:46 -07:00
Daniel Nelson d7c85768a4
Update changelog 2019-09-10 11:07:13 -07:00
Daniel Nelson 15dd43344d
Fix error reading closed response body on redirect (#6372) 2019-09-10 11:04:24 -07:00
Russ Savage cd99ceea62 Fixing spelling in bug template (#6374) 2019-09-10 10:55:39 -07:00
Daniel Nelson 5dcd0daa42
Document the pros and cons of increasing the metric_buffer_limit 2019-09-09 17:50:46 -07:00
Daniel Nelson f041ace365
Update changelog 2019-09-09 15:58:20 -07:00
Daniel Nelson a4078da648
Skip collection stats when disabled in mongodb input (#6364) 2019-09-09 15:55:46 -07:00
Mitchell Bradd 23cddef30a Fix broken exec output link in README (#6371) 2019-09-09 10:23:44 -07:00
Daniel Nelson 9e5bd8cc15
Update changelog 2019-09-06 12:42:07 -07:00
Daniel Nelson 7ac5dc5416
Fix filecount for paths with trailing slash (#6332) 2019-09-06 12:38:20 -07:00
Daniel Nelson 7d2cffe056
Convert check state to an integer in icinga2 input (#6333) 2019-09-06 12:37:17 -07:00
Daniel Nelson 76e7b57fcd
Fix could not mark message delivered error in kafka_consumer (#6363) 2019-09-06 12:35:33 -07:00
Daniel Nelson be7c71a39b
Update changelog 2019-09-04 19:07:57 -07:00
Daniel Nelson 11d40a9f0a
Switch to fork of sarama without zstd dependency (#6349) 2019-09-04 19:05:39 -07:00
Daniel Nelson c8f8a42035
Set 1.12.0 release date 2019-09-03 11:17:34 -07:00
Daniel Nelson 9463b894f2
Fix links in changelog 2019-09-03 10:58:37 -07:00
Daniel Nelson e8a119b07b
Update changelog 2019-08-29 17:14:21 -07:00
paebersold 32de8bb459 Add per node memory stats to rabbitmq input (#6326) 2019-08-29 17:12:57 -07:00
Daniel Nelson 80f38ae352
Update readme and changelog 2019-08-29 16:32:43 -07:00
Mattias Jiderhamn 4f54b11973 Add azure_storage_queue input plugin (#5323) 2019-08-29 16:29:25 -07:00
Daniel Nelson 558c825478
Link to specific gjson version we are using 2019-08-28 18:11:38 -07:00
Vlasta Hajek 7ec54d4be9 Improve startup error reporting when ran as Windows service (#4291) 2019-08-28 14:34:44 -07:00
Daniel Nelson 8c6ddcd7fa
Add note about unix domain sockets to syslog input documentation 2019-08-28 12:23:49 -07:00
Daniel Nelson 82c729aba5
Set next version for builds 2019-08-27 14:05:48 -07:00
Daniel Nelson cb578e5790
Update changelog 2019-08-27 13:48:49 -07:00
Mattias Jiderhamn 08b903a646 Use environment variables to locate Program Files on Windows (#6317) 2019-08-27 13:47:01 -07:00
Daniel Nelson 9f612fd52d
Update sample configuration 2019-08-27 12:41:16 -07:00
Daniel Nelson ad49e311e4
Set 1.11.5 release date 2019-08-27 11:29:11 -07:00
Daniel Nelson 79c6179f31
Update changelog 2019-08-27 10:35:15 -07:00
Daniel Nelson 2d2e793c90
Query oplog only when connected to a replica set (#6307) 2019-08-27 10:31:42 -07:00
Daniel Nelson 701339b024
Update changelog 2019-08-26 19:04:59 -07:00
Jesse Hanley 17a79e2d6f Allow jobs with dashes in the name in lustre2 input (#6313) 2019-08-26 19:03:35 -07:00
Daniel Nelson acedbe0633
Promote the use of http as the scheme over tcp in health output (#6311) 2019-08-26 16:29:45 -07:00
Daniel Nelson 818d511749
Update changelog 2019-08-26 16:25:35 -07:00
Daniel Nelson e7b783d397
Remove leading slash from rcon commands (#6315)
This is required when using the Spigot Minecraft server and compatible
with the vanilla server.
2019-08-26 16:16:44 -07:00
Daniel Nelson 628edfa9b4
Add support for parked process state on Linux (#6308) 2019-08-26 16:05:56 -07:00
Daniel Nelson 718f60bb4a
Add table name to jenkins example configuration 2019-08-23 21:58:18 -07:00
Pontus Rydin d52c733c3b Add supported versions to vsphere README (#6312) 2019-08-23 21:55:56 -07:00
Daniel Nelson 66d6b1f1d3
Split out -w argument in iptables input (#6304) 2019-08-22 20:00:48 -07:00
Daniel Nelson 1848adaf79
Update to Go 1.12.9 and 1.11.13 (#6303) 2019-08-22 10:51:15 -07:00
Daniel Nelson b578586d4a
Send TERM to exec processes before sending KILL signal (#6302) 2019-08-22 10:50:02 -07:00
Daniel Nelson 0a4d74c827
Update changelog 2019-08-21 18:26:44 -07:00
Craig Hobbs f0c26dbd99 Add Marklogic Input Plugin (#6193) 2019-08-21 18:21:59 -07:00
Daniel Nelson 93b41457df
Update changelog 2019-08-21 18:17:41 -07:00
Daniel Nelson 94f68c06d7
Use alias name in output metric buffer stats 2019-08-21 18:06:04 -07:00
Daniel Nelson 3cdc6c32dd
Fix measurement name for write errors 2019-08-21 18:06:04 -07:00
Daniel Nelson 40bbd805b6
Add TLS support to nginx_plus, nginx_plus_api and nginx_vts (#6300) 2019-08-21 18:04:51 -07:00
Daniel Nelson 8b938f3bd4
Make review changes to logstash input (#6299) 2019-08-21 18:04:30 -07:00
Greg 5c8d0e3ac9 Add ability to label inputs for logging (#6207) 2019-08-21 16:49:07 -07:00
Greg bc52592c87 Document additional collected Kubernetes resources (#6297) 2019-08-21 16:39:57 -07:00
Dmitry Ilyin 02174031c8 Add logstash input plugin (#4910) 2019-08-21 16:34:28 -07:00
Daniel Nelson 8c2b3addd3
Fix parsing multiple metrics on the first line of tailed file (#6289) 2019-08-21 16:30:55 -07:00
Greg 10671d2641 Stop timer when command exits in WaitTimeout (#6296) 2019-08-21 11:13:38 -07:00
Daniel Nelson 139fcc5805
Update changelog and dependency licenses 2019-08-21 10:04:43 -07:00
Daniel Nelson ac66838f9f
Update win_perf_counters sample config (#6286)
Remove extra percent from win_perf_counters sample config and have it
mirror the config provided in the Windows package.
2019-08-20 17:12:21 -07:00
Greg d3cf7d669b Add apcupsd input plugin (#6226) 2019-08-20 17:10:25 -07:00
Greg 819bf8e99d Add exec output plugin (#6267) 2019-08-20 17:07:24 -07:00
Daniel Nelson 1ad10c8a52
Update changelog and tidy openntpd input 2019-08-20 15:29:31 -07:00
aromeyer 153dd585af Add openntpd input plugin (#3627) 2019-08-20 15:14:11 -07:00
Scott Anderson 7bbed9e2a3 Update logparser readme requirement to collect at least one field (#6288) 2019-08-20 14:44:16 -07:00
Daniel Nelson 54180dacb4
Add tag_limit to readme and changelog 2019-08-19 20:58:01 -07:00
memory 46b9000ef6 Add tag_limit processor (#6086) 2019-08-19 20:54:40 -07:00
Daniel Nelson edb05b58a0
Add multiple repository example to github input readme 2019-08-19 19:08:38 -07:00
Daniel Nelson 47a41071df
Update changelog 2019-08-19 19:07:10 -07:00
Daniel Nelson 92385a4630
Add topic_tag option to mqtt_consumer (#6266) 2019-08-19 19:05:22 -07:00
Daniel Nelson f45ba14f73
Update changelog 2019-08-19 18:18:31 -07:00
Pontus Rydin 8b2374143d Fix finder inconsistencies in vsphere input (#6245) 2019-08-19 18:17:27 -07:00
Daniel Nelson ef14131f1c
Alternate markdown list symbol 2019-08-19 18:09:21 -07:00
Russ Savage bdf08d9cf7 Add readme for rethinkdb input (#6211) 2019-08-19 18:08:46 -07:00
Russ Savage 065b92d490 Add readme for mailchimp input (#6210) 2019-08-19 17:55:35 -07:00
Daniel Nelson 3e4a917379
Update changelog 2019-08-19 17:43:41 -07:00
Daniel Nelson 328a2bf16f
Remove advanced TLS conf from prometheus output sample config 2019-08-19 17:42:41 -07:00
Daniel Nelson d5b41cfc9a
Update TLS documentation 2019-08-19 17:42:39 -07:00
Stanislav Putrya 149d221191 Add capability to limit TLS versions and cipher suites (#6246) 2019-08-19 16:01:01 -07:00
Daniel Nelson fbfaf767f1
Update changelog 2019-08-16 15:56:37 -07:00
Adam Flott 96fa7fa6d2 Add cmdstat metrics to redis input (#5926) 2019-08-16 15:46:48 -07:00
Pavel Frolov 50dc8d5659 Add content_length metric to http_response input plugin (#6261) 2019-08-16 15:45:20 -07:00
Randy Coburn beb788bfc6 Add database_tag option to influxdb_listener to add database from query string (#6257) 2019-08-16 15:05:08 -07:00
Daniel Nelson ed23466a53
Update changelog 2019-08-16 14:53:36 -07:00
Frank Riley a079e2d569 Return error status from --test if any of the input plugins produced an error (#6279) 2019-08-16 14:44:38 -07:00
Daniel Nelson 3ed25b1269
Update changelog 2019-08-16 14:41:15 -07:00
timhallinflux 73914ac920 Add security vulnerability reporting into to contributing doc (#6268) 2019-08-16 10:32:29 -07:00
Daniel Nelson 5e06e56785
Fix persistent session in mqtt_consumer (#6236) 2019-08-14 17:05:34 -07:00
Daniel Nelson ffe135c7fe
Update github.com/go-sql-driver/mysql to 1.4.1 (#6250) 2019-08-14 17:04:05 -07:00
Pontus Rydin 2755595019 Add support for custom attributes to vsphere input (#5971) 2019-08-14 17:03:33 -07:00
Daniel Nelson 5e0c63f2e6
Fix and improve error handling in mongodb collection stats (#6230) 2019-08-14 16:59:02 -07:00
Daniel Nelson 4ab29817a4
Add troubleshooting section to nvidia_smi input 2019-08-14 16:56:45 -07:00
Chris Goller 87d0e5c221 Update changelog 2019-08-14 16:20:59 -05:00
Chris Goller 71da67ec54
Add darwin (macOS) builds to the release (#6259)
This will build a darwin tar.gz package for macOS.  This allows people an easy way to download releases from github directly.
2019-08-14 16:04:57 -05:00
Matthew Crenshaw e36639b15d Add memory_usage field to procstat input plugin (#6249) 2019-08-14 10:17:38 -07:00
Marc Venturini 5473872ac1 Add configurable timeout setting to smart input (#6241) 2019-08-13 10:24:44 -07:00
Daniel Nelson 23b86552fd
Update changelog 2019-08-09 18:16:01 -07:00
Branden Rolston f5a4d72382 Collect framework_offers and allocator metrics in mesos input (#5719) 2019-08-09 17:27:59 -07:00
Daniel Nelson 337a579dd0
Move elasticsearch permission setup into new readme section 2019-08-09 17:23:08 -07:00
Théo 6512b7b7fb Document service account setup for the elasticsearch output (#6224) 2019-08-09 17:18:27 -07:00
Daniel Nelson 23cd2f058c
Document permission setup for powerdns_recursor (#6231) 2019-08-09 13:56:14 -07:00
Daniel Nelson 13c0ff0a7c
Limit number of processes in CircleCI
Hopefully this will reduce the amount of memory in use.
2019-08-08 17:38:03 -07:00
Adrián López eb8959272d Add telegraf and go version to the internal input plugin (#6216) 2019-08-08 10:51:03 -07:00
Daniel Nelson 17465b0aaf
Skip mongodb collection on error 2019-08-08 10:43:51 -07:00
Daniel Nelson f88004c62b
Ignore context cancelled error in docker_log (#6221) 2019-08-07 13:50:21 -07:00
Adrián López a3a6752f04 Update the number of logical CPUs dynamically in system plugin (#6214) 2019-08-06 15:55:06 -07:00
Daniel Nelson d7b69af9cd
Add 1.11.4 release date 2019-08-06 11:40:05 -07:00
Daniel Nelson 7a01b45e96
Update changelog 2019-08-06 11:36:46 -07:00
Matthew Crenshaw 60c8f382be Fix reload panic in socket_listener input plugin (#6218) 2019-08-06 11:29:29 -07:00
Daniel Nelson e65324d2c1
Update gopsutil (#6212) 2019-08-05 22:48:01 -07:00
Greg Taylor cd417c0479 Upgrade aws-go-sdk (#5945) 2019-08-05 21:03:03 -07:00
Daniel Nelson 493510a5f7
Update changelog 2019-08-05 17:37:56 -07:00
Marc Venturini 1c1c41c300 Add device tags to smart_attributes (#6201) 2019-08-05 17:36:34 -07:00
Daniel Nelson 61f6794846
Update changelog 2019-08-05 15:04:50 -07:00
Daniel Nelson b5710a6a21
Skip floats that are NaN or Inf in Datadog output. (#6198) 2019-08-05 14:50:29 -07:00
Daniel Nelson de6416ff82
Update changelog 2019-08-05 14:13:34 -07:00
Rob Cowart 6ecfd01f9b Correct typo in kubernetes logsfs_available_bytes field (#6200) 2019-08-05 14:04:41 -07:00
Russ Savage 374aa0b36b Add README for disque input (#6208) 2019-08-05 13:58:35 -07:00
Russ Savage 7e793e87e3 Clean up cassandra input README (#6206) 2019-08-05 13:57:15 -07:00
Daniel Nelson f2503722a0
Fix link in rabbitmq README 2019-08-05 13:56:03 -07:00
Daniel Nelson 8a8125692a
Update Windows changelog 2019-08-05 11:21:26 -07:00
Daniel Nelson 633dfe2a19
Add secure option to NATS output to mirror input 2019-08-02 16:58:04 -07:00
Daniel Nelson ffe9494663
Restore secure option to control tls in nats_consumer 2019-08-02 14:59:28 -07:00
Daniel Nelson be7abd9959
Update changelog 2019-08-02 14:46:20 -07:00
Mike Melnyk 0732b41b4b Add TLS & credentials configuration for nats_consumer input plugin (#6195) 2019-08-02 13:10:14 -07:00
shane 3c811c15b3 Add support for enterprise repos to github plugin (#6194) 2019-08-02 13:05:46 -07:00
dupondje 78d3b86581 Add Indices stats to elasticsearch input (#6060) 2019-08-02 12:42:25 -07:00
Daniel Nelson 364bf38b4a
Update fail2ban readme 2019-08-02 12:35:43 -07:00
Russ Savage 1557e9094d Update smart input docs for attributes clarity (#6192) 2019-08-02 10:48:40 -07:00
Greg 004b2cf578 Add intermediates when verifying cert in x509 input (#6159) 2019-07-31 16:59:54 -07:00
Russ Savage ef4f4eed3a Add left function to string processor (#6189) 2019-07-31 16:55:25 -07:00
Daniel Nelson 28f1bdb696
Add note to configuration about when log rotation occurs 2019-07-31 13:30:30 -07:00
pberlowski dc292b73a9 Add grace period for metrics late for aggregation (#6049) 2019-07-31 12:52:12 -07:00
Moritz Maisel 282c8ce096 Add diff and non_negative_diff to basicstats aggregator (#4435) 2019-07-30 23:50:49 -07:00
Daniel Nelson df90230341
Update changelog 2019-07-30 22:39:07 -07:00
Thierry Sallé ef9a1c0d5b Gather per collections stats in mongodb input plugin (#6137) 2019-07-30 21:36:19 -07:00
Daniel Nelson 9bdb3992d5
Require Kafka 0.10.2.0 or later in kafka_consumer (#6181) 2019-07-30 21:33:29 -07:00
Greg 51c1659de8 Add uWSGI input plugin (#6179) 2019-07-30 16:31:03 -07:00
Greg a1bff8f550 Add ability to exclude db/bucket tag from influxdb outputs (#6184) 2019-07-30 14:16:51 -07:00
Daniel Nelson 3f63c14179
Setup default logging before logging. 2019-07-29 21:47:49 -07:00
Preston Carpenter 5c7c9e40ee Load external go plugins (#6024) 2019-07-29 21:34:03 -07:00
Daniel Nelson aea09b3a20
Use sarama built in support for consumer groups (#6172) 2019-07-29 20:41:12 -07:00
Greg 4d73290e13 Update links in fluentd input readme (#6175) 2019-07-26 15:01:17 -07:00
Daniel Nelson a941779ea8
Call Init before Start in test mode (#6171) 2019-07-25 17:36:46 -07:00
Daniel Nelson 785b76d3d1
Update sample config 2019-07-25 17:15:32 -07:00
Daniel Nelson 7625b6f089
Update changelog 2019-07-24 14:05:04 -07:00
Daniel Nelson 4f115437e6
Use Go style conventions for variable name 2019-07-24 14:04:51 -07:00
Mika Eloranta 417740738d Support percentage value parsing in redis input (#6163) 2019-07-24 13:52:44 -07:00
Daniel Nelson 9fc8976c66
Correct error message when converting to a float 2019-07-23 17:00:08 -07:00
Greg 4e59d51844 Add networks, subscribers, and watchers to github input (#6161) 2019-07-23 16:04:51 -07:00
George eb0f493998 Add Start() function to DockerLogs input plugin (#6157) 2019-07-23 16:00:07 -07:00
Daniel Nelson ac10714332
Add Linux mips build (#6153) 2019-07-23 13:20:39 -07:00
Daniel Nelson aec231fbed
Set 1.11.3 release date 2019-07-23 10:43:39 -07:00
Daniel Nelson b9cb606ca0
Update changelog 2019-07-22 16:34:41 -07:00
Greg afe86c0f46 Avoid panic in github input (#6152) 2019-07-22 16:30:53 -07:00
Greg 3e50db904a Add certificate verification status to x509_cert input (#6143) 2019-07-22 16:10:40 -07:00
Daniel Nelson 92cabcd323
Add fireboard to top level README 2019-07-22 15:37:52 -07:00
Daniel Nelson d364abf870
Update changelog 2019-07-22 15:20:25 -07:00
Lance O'Connor e098758d78 Add Fireboard Input Plugin (#6052) 2019-07-22 15:11:34 -07:00
denzilribeiro 109d1e1e15 Add support for collecting SQL Requests to identify waits and blocking (#6144) 2019-07-22 15:04:15 -07:00
Greg 6f2e57ad64 Update paho.mqtt.golang (#6149) 2019-07-22 14:14:23 -07:00
Greg 877c42362d Collect k8s endpoints, ingress, and services in kube_inventory plugin (#6105) 2019-07-19 13:18:50 -07:00
Greg bdb4598b3f Add support for field/tag keys to strings processor (#6129) 2019-07-19 13:16:54 -07:00
George 77b1a43539 Fix template pattern partial wildcard matching (#6135) 2019-07-19 13:14:15 -07:00
George MacRorie 5c9923a20a Update changelog 2019-07-18 15:42:06 +02:00
George 56c6539a91
Fix lustre2 input plugin config parse regression (#6114) 2019-07-18 15:40:05 +02:00
Daniel Nelson f93441d2a4
Update changelog 2019-07-17 15:23:51 -07:00
Daniel Nelson e576048e02
Treat empty array as successful parse (#6130) 2019-07-17 15:03:09 -07:00
Daniel Nelson a07f29c02f
Add missing rcode and zonestat to bind input (#6123) 2019-07-17 14:31:57 -07:00
Daniel Nelson 35d689401d
Update changelog 2019-07-15 18:28:54 -07:00
Cristofer Gonzales b15fe4a28e Initialize accumulator in statsd during Start (#6121) 2019-07-15 18:23:56 -07:00
kden416 169fd64788 Add list of possible container states to docker docs (#6099) 2019-07-15 17:10:42 -07:00
Daniel Nelson f22f12c99e
Update changelog 2019-07-15 17:08:11 -07:00
Daniel Nelson 41176dd1f1
Support string field glob matching in json parser (#6102) 2019-07-15 16:48:19 -07:00
Daniel Nelson 96530c220f
Compile against gjson 1.3.0 (#6101) 2019-07-15 16:45:25 -07:00
Greg 66beeb6523 Add basic auth support to elasticsearch input (#6122) 2019-07-15 16:41:29 -07:00
denzilribeiro 329179c0ff Fix sql_instance tag with sqlserver managed instance (#6116) 2019-07-15 11:46:52 -07:00
George 3f424b88c9
Add docker_devicemapper measurement to docker input plugin (#6084) 2019-07-15 10:24:47 +01:00
Daniel Nelson 93584f7ce7
Update go-mssqldb version to latest (#6100) 2019-07-12 16:12:30 -07:00
Daniel Nelson ad4edf4a12
Update changelog 2019-07-12 14:28:50 -07:00
George 43c16aa898 Add extra attributes for NVMe devices to smart input (#6079) 2019-07-12 14:25:45 -07:00
Daniel Nelson e5158107c1
Update changelog 2019-07-12 11:41:05 -07:00
denzilribeiro 149be55c64 Add improved support for Azure SQL Database (#6111) 2019-07-12 11:37:00 -07:00
Daniel Nelson 55c9da028c
Update changelog 2019-07-11 17:44:24 -07:00
Matthew Crenshaw 981dd5bfc0 Resume from last known offset when reloading in tail input (#6074) 2019-07-11 17:39:59 -07:00
Daniel Nelson a0fec3cd82
Update changelog 2019-07-11 15:09:31 -07:00
Greg ea6b398fa3 Add native Go ping method to ping input plugin (#6050) 2019-07-11 15:07:58 -07:00
Daniel Nelson c9107015b0
Emit sarama library log messages at debug level (#6091) 2019-07-11 13:50:12 -07:00
Daniel Nelson 1f3951d36f
Update changelog 2019-07-09 16:52:13 -07:00
Pitxyoki 72c2ac9648 Support floats in statsd percentiles (#5572) 2019-07-09 16:50:20 -07:00
Daniel Nelson 70e2ccce75
Update changelog 2019-07-09 15:45:59 -07:00
Aaron Wood aa07b95e00 Handle unknown error in nvidia-smi output (#6073) 2019-07-09 15:45:02 -07:00
Daniel Nelson 1e12006ad6
Update changelog 2019-07-09 15:27:43 -07:00
Pontus Rydin 10c31ca209 Fix reconnection when vCenter is rebooted (#6085) 2019-07-09 15:25:53 -07:00
Daniel Nelson f46a9c02c6
Set 1.11.2 release date 2019-07-09 11:10:02 -07:00
Daniel Nelson adec1eba0c
Update changelog 2019-07-09 10:52:12 -07:00
Daniel Nelson 130c5c5f12
Fix https support in activemq input (#6092) 2019-07-09 10:40:14 -07:00
Daniel Nelson 601f499126
Remove tail cleanup call to avoid double decrement (#6089) 2019-07-08 14:48:47 -07:00
Daniel Nelson c5d8e63a0f
Fix path separator matching in filecount input (#6077) 2019-07-08 14:46:00 -07:00
Daniel Nelson 5dea2175d2
Fix panic with empty datadog tag string (#6088) 2019-07-08 14:44:36 -07:00
Alvaro Olmedo Rodriguez 04937d0498 Apply topic filter to partitions metrics in burrow input (#6070) 2019-07-05 12:03:52 -07:00
Daniel Nelson 370d54b023
Update changelog 2019-07-03 16:37:45 -07:00
Daniel Nelson ad5d5844c7
Use int64 for fields in bind plugin (#6063) 2019-07-03 16:28:11 -07:00
dupondje 9af39bbb7d Add node roles tag to elasticsearch input (#6064) 2019-07-03 13:04:07 -07:00
Greg f7e85ebac2 Add basic auth to prometheus input plugin (#6062) 2019-07-02 11:14:48 -07:00
Leandro Piccilli 5bad2c3a43 Add support for ES 7.x to elasticsearch output (#6053) 2019-07-01 16:22:17 -07:00
David Wahlund 234a946093 Fix source address ping flag on BSD (#6056) 2019-07-01 15:14:03 -07:00
Daniel Nelson fae63ed297
Clarify that cisco mdt telemetry tcp transport does not support TLS 2019-07-01 12:14:30 -07:00
Daniel Nelson 1fe7301b95
Update changelog 2019-06-25 17:30:27 -07:00
Daniel Nelson 123e29c1f4
Update elasticsearch input README 2019-06-25 17:28:47 -07:00
dupondje 83c8d7be2a Fix master check and move cluster health indices to separate measurement (#6004) 2019-06-25 16:16:15 -07:00
Daniel Nelson 26ee42ce8d
Set release date for 1.11.1 2019-06-25 13:01:07 -07:00
Daniel Nelson f557af3077
Update changelog 2019-06-25 12:48:16 -07:00
John Seekins cb261be903 Fix typo in cassandra jolokia example config (#6044) 2019-06-25 12:06:27 -07:00
Daniel Nelson a231b3e79d
Fix parsing of remote tcp address in statsd input (#6031) 2019-06-25 12:04:39 -07:00
Daniel Nelson e8a596858c
Add device, serial_no, and wwn tags to synthetic attributes (#6040) 2019-06-25 11:51:51 -07:00
Daniel Nelson e1cfc9f3a0
Update changelog 2019-06-24 18:55:30 -07:00
Tim Ehlers a5c94db625 Ignore error when utmp is missing (#5742) 2019-06-24 18:48:07 -07:00
Nic Grobler bd9ddd8cb1 Fix filecount plugin size tests (#6038) 2019-06-24 11:03:05 -07:00
Daniel Nelson aa84011dc3
Remove flaky test for udp_listener 2019-06-21 18:39:00 -07:00
Daniel Nelson f405bca034
Fix docker input unit tests 2019-06-21 14:45:56 -07:00
Daniel Nelson 791d154ec1
Update changelog 2019-06-21 12:31:19 -07:00
Daniel Nelson 1dc3028237
Add struct tags for jti_openconfig_telemetry plugin 2019-06-21 12:29:34 -07:00
Mike Moein 131f85db73 Add TLS mutual auth supoort to jti_openconfig_telemetry plugin (#6027) 2019-06-21 12:25:45 -07:00
Daniel Nelson 773ed5e622
Update changelog 2019-06-21 12:21:49 -07:00
masuyama-ascade e6d71bdb65 Add container_id field to docker_container_status metrics (#6019) 2019-06-21 12:20:35 -07:00
Daniel Nelson 587dd149f3
Add troubleshooting section to smart input docs 2019-06-21 12:14:14 -07:00
Daniel Nelson 6738d566dd
Update permission configuration example in postfix input 2019-06-21 11:57:08 -07:00
Daniel Nelson beb6477080
Drop support for Go 1.9 (#6026) 2019-06-20 13:29:51 -07:00
Daniel Nelson 0a40f5d55b
Update changelog 2019-06-20 11:56:30 -07:00
Daniel Nelson a0c739eec7
Follow up work on docker_log input (#6008) 2019-06-20 11:54:12 -07:00
Daniel Nelson 29c3d42e7e
Fix double pct replacement in sysstat input (#6001) 2019-06-20 11:52:41 -07:00
Daniel Nelson 049d364917
Fix panic if pool_mode column does not exist (#6000) 2019-06-20 11:51:41 -07:00
Daniel Nelson 791ea5e38e
Update changelog 2019-06-19 18:04:05 -07:00
Chris Goller 80089c7caf Add better user-facing errors for API timeouts (#6016) 2019-06-19 18:02:51 -07:00
Daniel Nelson ba39d7b6a8
Update changelog 2019-06-19 15:39:11 -07:00
George c52e7d88d7 Add container uptime_ns in docker input plugin (#5996) 2019-06-19 15:37:10 -07:00
Daniel Nelson 2aeaed2f27
Update changelog and readme 2019-06-19 14:34:01 -07:00
Chris Goller 104db7c503 Skip 404 error reporting in nginx_plus_api input (#6015) 2019-06-19 14:28:00 -07:00
George 8d04cb76fd Add support for interface field in http_response input plugin (#6006) 2019-06-19 13:40:53 -07:00
prashanthjbabu f8bef14860 Add docker log plugin (#4773) 2019-06-18 15:56:55 -07:00
Daniel Nelson 9f3c1c6ec7
Fix http_listener_v2 tests 2019-06-17 16:20:09 -07:00
Daniel Nelson 4199114e4c
Update changelog and readme 2019-06-17 14:50:59 -07:00
Daniel Nelson 9b338410cb
Rename formdata parser to form_urlencoded 2019-06-17 14:50:58 -07:00
Boris Yonchev fd9abd2166 Add formdata parser (#5749) 2019-06-17 13:34:54 -07:00
Daniel Nelson 1da81799cb
Update changelog 2019-06-17 13:31:53 -07:00
dupondje 1775e1cdc6 Add cluster name tag to elasticsearch indices (#5998) 2019-06-17 13:31:15 -07:00
Daniel Nelson 22366f2a41
Update changelog 2019-06-17 12:56:58 -07:00
dupondje 31291f5590 Add starttime to php-fpm metrics (#5997) 2019-06-17 12:55:09 -07:00
Daniel Nelson 1dcfcdbad3
Update changelog and readme 2019-06-14 15:27:57 -07:00
Daniel Nelson 1ea7863b9b
Add pivot and unpivot processors (#5991) 2019-06-14 15:26:56 -07:00
Daniel Nelson 7f04511c30
Update changelog 2019-06-14 15:25:56 -07:00
Adrián López d3af8fd873 Allow regexp processor to mix different tags (#5863) 2019-06-14 15:23:54 -07:00
Daniel Nelson 0ff9c8ef88
Add call to optional Init function for all plugins (#5899) 2019-06-14 15:12:27 -07:00
Charlie Vieth b35beb2fba Reduce the cpu/memory used by the graphite parser (#5841) 2019-06-14 12:45:07 -07:00
Daniel Nelson 1f2cb85354
Update changelog and readme 2019-06-14 12:27:57 -07:00
Daniel Nelson a276ddfe97
Tidy date processor 2019-06-14 12:26:47 -07:00
Anaisdg 3e5cfad2b0 Add Date Processor Plugin (#5895) 2019-06-14 12:08:10 -07:00
Daniel Nelson de096428be
Run ServiceInputs during test mode; add --test-wait option (#5911) 2019-06-14 12:06:25 -07:00
Greg fec1b3ec19 Support array of addresses in http_response input (#5975) 2019-06-14 12:03:44 -07:00
Daniel Nelson bf03b43d2a
Update changelog 2019-06-14 12:01:17 -07:00
José Moreno Hanshing cc2f3b29e1 Don't consider pid of 0 when using systemd lookup in procstat (#5972) 2019-06-14 12:00:14 -07:00
Daniel Nelson d38f7600f8
Update changelog 2019-06-14 11:36:18 -07:00
Daniel Nelson 63916ae1cf
Add default url for http output (#5976) 2019-06-14 11:29:58 -07:00
Steven Barth 4cfd70b6c0 Omit keys when creating measurement names for GNMI telemetry (#5986) 2019-06-14 11:29:06 -07:00
Marc Venturini 4b6e791908 Fix sensor read error stops reporting of all sensors in temp input (#5941) 2019-06-14 11:27:24 -07:00
Daniel Nelson d260437318
Add example output from the collectd parser 2019-06-13 13:34:12 -07:00
Daniel Nelson 58e6eb6f07
Clarify replacement string behavior in regex processor 2019-06-13 13:34:12 -07:00
Daniel Nelson ae1aee3207
Update changelog 2019-06-13 13:34:12 -07:00
guitoulefoux 4b5df84b3d Fix subtable name in jolokia java.conf (#5985) 2019-06-13 03:48:06 -07:00
Charlie Vieth 1a647fb6ba Improve performance of wavefront serializer (#5842) 2019-06-12 11:59:51 -07:00
Daniel Nelson 1d682b847c
Update changelog 2019-06-12 11:11:04 -07:00
Daniel Nelson 8a34d2b27d
Fix setting mount_points option in disk input (#5982) 2019-06-12 10:52:04 -07:00
Daniel Nelson 5de7bdf906
Fix race condition in cisco telemetry tests (#5979) 2019-06-12 10:11:23 -07:00
Daniel Nelson 968714054a
Fix title in wavefront serializer readme 2019-06-11 13:06:55 -07:00
Daniel Nelson df8faab68b
Set Telegraf 1.11.0 release date 2019-06-11 11:18:08 -07:00
Daniel Nelson 07d3cd4ad7
Update release notes 2019-06-11 11:14:54 -07:00
Oleg Kovalov eeb036911f Compile regexp once in zookeeper input (#5969) 2019-06-07 12:25:55 -07:00
Oleg Kovalov d31f1735d9 Use fmt.Errorf for creating error with formatting (#5968) 2019-06-07 12:24:26 -07:00
Daniel Nelson f22e7a1465
Update next version for builds 2019-06-05 14:09:59 -07:00
Daniel Nelson 9e3f918db5
Update sample configurations 2019-06-05 14:07:30 -07:00
Daniel Nelson f2b3b35640
Print global_tags first in sample configuration 2019-06-05 14:07:02 -07:00
Daniel Nelson 4e147919d3
Update changelog 2019-06-05 13:59:10 -07:00
Daniel Nelson 0fb9040a64
Fix double close error with log rotation (#5960) 2019-06-05 13:55:21 -07:00
Daniel Nelson 7be74816a2
Add source tag to hddtemp plugin (#5955) 2019-06-05 12:47:17 -07:00
Daniel Nelson 77cac557ba
Log a warning on write if the metric buffer has overflowed (#5959) 2019-06-05 12:34:45 -07:00
Daniel Nelson 8bc768b239
Make case insensitive container status comparison (#5954) 2019-06-05 03:00:59 -07:00
Daniel Nelson ba0b0c02f7
Fix race conditions in gnmi telemetry tests (#5953) 2019-06-04 23:00:24 -07:00
Daniel Nelson 476f7fb9c5
Update changelog 2019-06-04 15:04:14 -07:00
Steven Barth e18393fabf Add Cisco model-driven telemetry & GNMI inputs (#5852) 2019-06-04 14:39:46 -07:00
Daniel Nelson 25471f6722
Update changelog 2019-06-03 17:38:31 -07:00
Daniel Nelson 6c3534a66e
Add support for remaining file rotation options (#5944) 2019-06-03 17:38:21 -07:00
Daniel Nelson 4197426a73
Ignore errors serializing single metrics (#5943) 2019-06-03 17:34:48 -07:00
Greg 3c83a53d51 Remove verbose debug logs from smart input (#5948) 2019-06-03 11:31:20 -07:00
Daniel Nelson 411f67d2b8
Update changelog 2019-06-01 17:57:11 -07:00
Kristoffer Berdal 1c0d3a0eb9 Add file rotation based on file age to file output plugin (#5547) 2019-06-01 17:11:47 -07:00
Daniel Nelson d0beb19204
Update changelog 2019-05-31 17:01:41 -07:00
Daniel Nelson 17d66b864c
Close idle connections in influxdb outputs when reloading (#5912) 2019-05-31 16:55:31 -07:00
Daniel Nelson 9cc3b3d234
Update changelog 2019-05-31 16:54:55 -07:00
Daniel Nelson 3d7a71889d
Ignore context canceled error when reloading/stopping agent 2019-05-31 16:50:44 -07:00
Daniel Nelson 0ca8ea1724
Don't overwrite forecast points (#5930) 2019-05-31 16:22:37 -07:00
Daniel Nelson a0213d9c4f
Update copyright date 2019-05-30 15:21:53 -07:00
Daniel Nelson 4ac2ef1c7f
Fix duplicate makefile target 2019-05-30 15:21:25 -07:00
Sebastien Leger 484122b7d4 Add open_weather_map input plugin (#5125) 2019-05-30 15:17:04 -07:00
Daniel Nelson 59d646a8e8
Test and build official packages with Go 1.12 (#5923) 2019-05-29 18:54:44 -07:00
Daniel Nelson dd6a3dbafc
Update changelog and readme 2019-05-29 18:36:18 -07:00
Daniel Nelson aaaad4d217
Add health output plugin (#5882) 2019-05-29 18:31:06 -07:00
Daniel Nelson dd09f238e1
Update changelog 2019-05-28 18:10:48 -07:00
Pontus Rydin fa492e0840 Fixed datastore name mapping in vsphere input (#5920) 2019-05-28 18:08:44 -07:00
Daniel Nelson ce2d501e91
Update changelog 2019-05-28 16:13:19 -07:00
Dmitry Ilyin eb225b818f Fix toml option name in nginx_upstream_check (#5917) 2019-05-28 12:54:25 -07:00
Daniel Nelson 980b174687
Tidy ECS readme and make review changes 2019-05-26 20:05:16 -07:00
Evan Baker dfb83778ea Add ecs/fargate input plugin (#5121) 2019-05-26 20:01:02 -07:00
Daniel Nelson 91a82b1e73
Update changelog 2019-05-26 19:04:07 -07:00
Aaron Wood 77659f33bc Extend metrics collected from Nvidia GPUs (#5885) 2019-05-26 19:02:09 -07:00
dupondje 43c3ceec96 Fix setfacl command in postfix docs (#5875) 2019-05-25 00:33:22 -07:00
Daniel Nelson fd57bb1775
Update changelog 2019-05-24 11:25:34 -07:00
Javier Kohen adb7a52b93 Set user agent in stackdriver output (#5901) 2019-05-24 11:24:14 -07:00
Daniel Nelson 597814ee83
Update changelog 2019-05-22 13:36:13 -07:00
Arno den Uijl adc32002da Fix sqlserver connection closing on error (#5897) 2019-05-22 13:13:19 -07:00
Daniel Nelson 6ed2b64b6c
Update changelog 2019-05-22 10:35:54 -07:00
Max Renaud 0535dc92ed Omit power_failed and power_restored when the Apex provides invalid timestamps (#5896) 2019-05-22 10:33:08 -07:00
Daniel Nelson 3c451a1f25
Update changelog 2019-05-20 14:40:05 -07:00
Daniel Nelson e141518cf0
Support passive queue declaration in amqp_consumer (#5831) 2019-05-20 14:38:35 -07:00
Daniel Nelson b5cd9a9ff2
Add support for gzip compression to amqp plugins (#5830) 2019-05-20 14:36:23 -07:00
Daniel Nelson 1b2773a762
Update changelog 2019-05-20 14:35:01 -07:00
Daniel Nelson ad877fdd91
Fix scale set resource id with azure_monitor output (#5821) 2019-05-20 14:32:04 -07:00
Daniel Nelson 9cdf1ea56e
Log actual url on wrong status code (#5811) 2019-05-20 14:30:31 -07:00
Daniel Nelson e6dd853691
Update changelog 2019-05-17 13:47:33 -07:00
Daniel Nelson 5bb6e4603d
Fix publishing of direct exchange routing key (#5868) 2019-05-17 13:46:13 -07:00
Daniel Nelson d25fa3ced3
Document that serializers are not thread-safe 2019-05-17 13:44:29 -07:00
urusha dc75f7bd32 Add postgresql dsn connection string example (#5869) 2019-05-17 13:27:11 -07:00
Daniel Nelson 27dec2c2c1
Update changelog 2019-05-17 11:04:22 -07:00
Jon McKenzie 633a468ff9 Improve Docker image identifier parsing (#5838) 2019-05-17 11:02:22 -07:00
Daniel Nelson f76cca3af5
Update changelog 2019-05-16 16:00:31 -07:00
Greg 10fd5b35f0 Support tags in enum processor (#5855) 2019-05-16 15:59:19 -07:00
Charlie Vieth 43c6d13c33 Refactor templateSpec less method (#5840) 2019-05-15 16:35:07 -07:00
Daniel Nelson 1b3ca655c6
Update changelog and readme 2019-05-15 14:50:25 -07:00
Daniel Nelson a724bf487f
Add final aggregator (#5820) 2019-05-15 14:46:28 -07:00
Daniel Nelson d645e0303f
Update changelog 2019-05-15 12:22:33 -07:00
omgold 12831f43d4 Allow devices option to match against devlinks (#5817) 2019-05-15 12:21:55 -07:00
Daniel Nelson 3b91542985
Update changelog 2019-05-14 16:21:30 -07:00
Jorge Landivar 8f3ed45797 Add support for datadog events to statsd input (#5791) 2019-05-14 16:20:35 -07:00
Daniel Nelson 9318d47a38
Set release date for 1.10.4 2019-05-14 12:04:19 -07:00
Daniel Nelson 44de622f9e
Update changelog 2019-05-14 11:57:33 -07:00
Greg 2d44a88b19 Restore field name case in interrupts input (#5850) 2019-05-14 11:56:19 -07:00
Daniel Nelson 74948edf23
Update changelog 2019-05-14 11:30:51 -07:00
Daniel Nelson e52f7056ba
Fix parse of unix timestamp with more than ns precision (#5826) 2019-05-14 11:29:44 -07:00
Daniel Nelson 3e0efdac39
Reword note about merging pull requests 2019-05-13 10:40:48 -07:00
Daniel Nelson ecb56f19bf
Update changelog 2019-05-10 16:22:01 -07:00
frizner 9b3523a91b Add support for HTTP basic auth to solr input (#5832) 2019-05-10 16:20:37 -07:00
Daniel Nelson 495a5e9f99
Update changelog 2019-05-08 11:39:30 -07:00
Daniel Nelson a0a9da371e
Reformat syslog output documentation 2019-05-08 11:39:03 -07:00
javicrespo 761705c299 Add syslog output plugin (#5802) 2019-05-08 11:21:51 -07:00
Daniel Nelson dfb1387771
Update changelog 2019-05-07 15:43:41 -07:00
Alirie Gray b22bf01fdf Add support for hex values to ipmi_sensor input (#5816) 2019-05-07 15:42:44 -07:00
Daniel Nelson a1513e6235
Update changelog 2019-05-07 15:22:10 -07:00
Greg 0d66ed70f8 Update smart input plugin to support more drive types (#5765) 2019-05-07 15:20:03 -07:00
Daniel Nelson 67394709a9
Update changelog 2019-05-07 14:56:25 -07:00
Daniel Nelson 3011a009e5
Skip lines with missing refid in ntpq input (#5782) 2019-05-07 14:54:43 -07:00
Daniel Nelson a0f4c49fb4
Update changelog 2019-05-07 14:16:36 -07:00
Daniel Nelson 61c2cc97a2
Set default timeout of 5s in fibaro input (#5813) 2019-05-07 14:15:30 -07:00
Daniel Nelson 23b9875462
Require github.com/jackc/pgx v3.4.0 (#5814) 2019-05-07 14:15:12 -07:00
Daniel Nelson 7a07b827b5
Update changelog 2019-05-07 11:53:32 -07:00
Pontus Rydin aac4c29dc6 Fix interval estimation in vsphere input (#5726) 2019-05-07 11:52:24 -07:00
Daniel Nelson c2643d5f7e
Add README for lustre2 input plugin 2019-05-06 17:31:08 -07:00
Daniel Nelson a1c4b9fa47
Update changelog 2019-05-06 16:58:55 -07:00
frroberts 8abf8c10a7 Fix only one job per storage target reported in lustre2 input (#5771) 2019-05-06 16:57:01 -07:00
matthewwiesen 1e1fa1a580 Add iso9660 to telegraf disk input ignore_fs (#5800) 2019-05-06 13:06:22 -07:00
Daniel Nelson 901c50b9d4
Update changelog 2019-05-06 12:15:46 -07:00
Greg 93be5759d5 Set host header if configured on http output (#5810) 2019-05-06 12:13:51 -07:00
Daniel Nelson 6b5162d0d2
Update changelog 2019-05-03 10:57:13 -07:00
Daniel Nelson 74c9d7ace2
Update logfile documentation 2019-05-03 10:55:11 -07:00
javicrespo bcf7516a23 Add in process log rotation (#5778) 2019-05-03 10:25:28 -07:00
Alberto del Barrio bae7f59bbf Fix syntax error in cloudwatch sample config (#5797) 2019-05-03 10:05:06 -07:00
Daniel Nelson 6a73ad56ae
Update changelog 2019-05-01 16:49:20 -07:00
Greg 3592433b06 Buffer metrics from failed writes in influxdb2 output if token is invalid (#5792) 2019-05-01 16:46:52 -07:00
Greg 2e6701b44e Update cloudwatch input readme with getMetricData command (#5786) 2019-05-01 13:09:32 -07:00
Daniel Nelson 597f3a679c
Update changelog 2019-04-30 18:35:17 -07:00
Daniel Nelson 7978ebef40
Add --service-display-name option for use with Windows service (#5770) 2019-04-30 18:34:19 -07:00
Daniel Nelson 0aa25e2b6c
Use struct tags in plugin tutorials 2019-04-30 18:14:31 -07:00
Daniel Nelson 801c285958
Update changelog 2019-04-30 16:13:09 -07:00
Daniel Nelson 0db31c9da7
Use non-release revision of pgx for pgbouncer fix (#5772) 2019-04-30 16:11:18 -07:00
Daniel Nelson e8248fccf9
Update changelog 2019-04-30 11:08:54 -07:00
Lorenzo Affetti 2c3c377334 Create telegraf user in pre-install rpm scriptlet (#5783) 2019-04-30 11:04:45 -07:00
Daniel Nelson 76660e22a9
Update changelog 2019-04-29 15:34:12 -07:00
Ferdi cb4387df3f Verify a process passed by pid_file exists (#5768) 2019-04-29 15:32:10 -07:00
marcv81 2fb62d4aec No longer requires dep to be in $GOPATH/bin (#5763) 2019-04-26 10:50:06 -07:00
Daniel Nelson 52a00b4300
Update changelog 2019-04-25 20:40:19 -07:00
Daniel Nelson d2fbf2414a
Add --section-filter to usage 2019-04-25 20:39:41 -07:00
Greg 6436005553 Add cli support for outputting sections of the config (#5585) 2019-04-25 20:34:40 -07:00
Daniel Nelson c11327ee34
Update changelog 2019-04-25 20:28:04 -07:00
Greg 32f0cb16f5 Update naoina/toml library dependency (#5513) 2019-04-25 20:19:58 -07:00
Daniel Nelson af8137eab7
Update changelog 2019-04-25 20:08:17 -07:00
Daniel Nelson 66153625fb
Set socket permissions for unix domain sockets (#5760) 2019-04-25 20:06:39 -07:00
Daniel Nelson 4ad813aecd
Update changelog 2019-04-25 17:21:48 -07:00
Matthew Crenshaw 9c3af1e6ac Add pagefault data to procstat input plugin (#5769) 2019-04-25 17:21:02 -07:00
Daniel Nelson 10b2a3de30
Update changelog 2019-04-25 12:24:34 -07:00
Pontus Rydin f32b064d6a Fix race condition in the Wavefront parser (#5764) 2019-04-25 12:22:48 -07:00
Daniel Nelson f5b44fd0bd
Wait for server socket to close in pdns_recursor test 2019-04-24 13:51:21 -07:00
Daniel Nelson 2c3fa9abdb
Update changelog 2019-04-23 16:36:25 -07:00
dupondje a0202744cf Add PowerDNS Recursor input plugin (#4545) 2019-04-23 16:34:52 -07:00
Daniel Nelson c71827ecfa
Update changelog 2019-04-23 11:16:51 -07:00
Daniel Nelson 3c57dafece
Support Minecraft server 1.13 and newer (#5733) 2019-04-23 11:14:35 -07:00
Łukasz Oleś 01eecee8cf Speed up interface stats in net input (#5757) 2019-04-23 11:13:14 -07:00
Pavel Sviderski 17a772d7ae Add link to Telegraf playground in README (#5745) 2019-04-22 17:40:55 -07:00
Daniel Nelson c7b4f9feaa
Update changelog 2019-04-22 17:39:11 -07:00
Greg e334830458 Collect cloudwatch stats using GetMetricData (#5544) 2019-04-22 17:36:46 -07:00
Daniel Nelson 58a6209a76
Update changelog 2019-04-17 15:49:22 -07:00
Daniel Nelson bc95a2a2b5
Don't start telegraf when stale pidfile found (#5731) 2019-04-17 15:47:03 -07:00
Daniel Nelson 2faf37e5c1
Fix docs for metric buffer limit to reflect current behavior (#5741) 2019-04-17 15:46:20 -07:00
Daniel Nelson 6a7d0c142e
Update changelog 2019-04-16 17:59:13 -07:00
Greg 72695228b3 Enhance HTTP connection options for phpfpm input plugin (#5713) 2019-04-16 17:56:56 -07:00
Daniel Nelson 08080bbc1f
Set release date for 1.10.3 2019-04-16 12:39:02 -07:00
Daniel Nelson 396d44546d
Update changelog 2019-04-15 16:09:37 -07:00
Lorenzo Affetti 37441e9eb1 Set log directory attributes in rpm spec (#5716) 2019-04-15 16:07:47 -07:00
Greg 5bf793bb94 Update issue templates to include code block and comments (#5721) 2019-04-12 12:22:16 -07:00
Daniel Nelson e9fe26f17b
Update changelog 2019-04-11 13:16:19 -07:00
Greg 776e06c769 Support verbose query param in ping endpoint of influxdb_listener (#5704) 2019-04-11 13:15:38 -07:00
Daniel Nelson 24391a8b5e
Remove debug print statements 2019-04-11 11:48:23 -07:00
Daniel Nelson 2e5165d416
Update changelog 2019-04-10 18:44:28 -07:00
scottprichard d2666d0db6 Add cmdline tag to procstat input (#5681) 2019-04-10 18:42:38 -07:00
Daniel Nelson 7f8bf56670
Update changelog 2019-04-10 17:20:48 -07:00
Daniel Nelson 9ea7cdd319
Deprecate uptime_format field in system input (#5708) 2019-04-10 17:19:29 -07:00
Daniel Nelson 4079e4605f
Update changelog 2019-04-10 17:18:48 -07:00
Benjamin Fuller b2baa2fdd5 Add optional namespace restriction to prometheus input plugin (#5697) 2019-04-10 14:52:46 -07:00
Daniel Nelson 90593a07b8
Clarify supported ping utils 2019-04-08 15:42:28 -07:00
Daniel Nelson ca99569e6f
Fix wavefront serializer option names in README 2019-04-05 15:06:46 -07:00
Daniel Nelson 5bc60ca79d
Update changelog 2019-04-05 14:48:24 -07:00
Pierre Tessier 267a9f182b Add wavefront serializer plugin (#5670) 2019-04-05 14:46:12 -07:00
Daniel Nelson 991e83c35f
Update changelog 2019-04-04 16:40:12 -07:00
Robert Sullivan e5215d74db Allow colons in metric names in prometheus_client output (#5680) 2019-04-04 16:38:33 -07:00
Daniel Nelson dc5db8fc38
Update changelog 2019-04-03 16:02:21 -07:00
Daniel Fenert a61cb4dca5 Add bind input plugin (#5653) 2019-04-03 15:59:47 -07:00
Daniel Nelson 1bcbc3eea7
Update docs and changelog for github input 2019-04-02 16:27:45 -07:00
David McKay 0a68c8468b Add github input plugin (#5587) 2019-04-02 16:06:15 -07:00
Daniel Nelson 0e50a3977d
Fix typo 2019-04-02 14:14:37 -07:00
Daniel Nelson 1d965f11d3
Set release date for 1.10.2 2019-04-02 13:10:17 -07:00
Greg 286eeb117e Remove unused config option from logfmt parser docs (#5669) 2019-04-02 13:06:44 -07:00
Daniel Nelson eba13426fc
Update changelog 2019-04-02 12:43:37 -07:00
Greg d738892c0b Remove tags that would create invalid label names in prometheus output (#5663) 2019-04-02 12:42:48 -07:00
David McKay 42cc84c262 Fix command for running integration test containers (#5660) 2019-04-02 11:53:11 -07:00
David McKay 346ac519b6 Fix CrateDB port in docker compose file (#5667) 2019-04-02 11:51:40 -07:00
Daniel Nelson b092aec103
Update changelog 2019-04-02 11:49:00 -07:00
Pierre Tessier ff81811720 Add option to use strict sanitization rules to wavefront output (#5664) 2019-04-02 11:47:25 -07:00
Daniel Nelson fb01b8ba28
Update changelog 2019-04-02 11:17:52 -07:00
Daniel Nelson c283e5992a
Fix tags applied to wrong metric on parse error (#5650) 2019-04-02 11:14:56 -07:00
Daniel Nelson 0d00f0af3c
Update changelog 2019-04-02 11:06:44 -07:00
liispon 3b80d8a7fd Use github.com/ghodss/yaml to parse k8s config (#5643) 2019-04-02 11:04:37 -07:00
Daniel Nelson 782280345d
Update changelog 2019-04-01 11:54:43 -07:00
Olli-Pekka Lehto 13a00eeca5 Add option to reset buckets on flush to histogram aggregator (#5641) 2019-04-01 11:53:50 -07:00
Daniel Nelson db1e902c81
Update changelog 2019-03-29 16:03:34 -07:00
Daniel Nelson 6feb6c1853
Add support for ${} env vars in configuration file (#5648) 2019-03-29 16:02:10 -07:00
Daniel Nelson aac013f8ab
Update changelog 2019-03-29 15:52:36 -07:00
Daniel Nelson 4e3244c575
Fix aggregator window and shutdown of multiple aggregators (#5644) 2019-03-29 15:40:33 -07:00
Daniel Nelson 3045ffbbe3
Add github source for golang/x to Gopkg.toml
Prevents removal of source in lock file.
2019-03-27 12:25:07 -07:00
Daniel Nelson 5109847be1
Update changelog 2019-03-26 18:20:52 -07:00
Daniel Nelson c57ba6110d
Exit after running --test without requiring --console (#5631) 2019-03-26 18:17:27 -07:00
Daniel Nelson be26ef6f9b
Update changelog 2019-03-26 18:14:37 -07:00
Daniel Nelson 5f74c0da0d
Fix basedir check and parent dir extraction in filecount input (#5630) 2019-03-26 18:12:40 -07:00
Daniel Nelson 22ab649261
Listen before leaving start in statsd (#5628) 2019-03-26 18:11:56 -07:00
Daniel Nelson 3bb1548414
Fix plugin name in influxdb_v2 output logging (#5627) 2019-03-26 18:09:35 -07:00
John Hu 5e6374c19b Fix drop tracking of aggregator drop_original metrics (#5632) 2019-03-26 18:01:50 -07:00
Daniel Nelson 0f21373439
Update changelog 2019-03-25 16:26:03 -07:00
scier 60027cf902 Add support for multiple line text and perfdata to nagios parser (#5601) 2019-03-25 16:24:42 -07:00
Daniel Nelson e793a69533
Fix grammar 2019-03-25 12:11:59 -07:00
Daniel Nelson 888d847a05
Add link to vjeantet/grok to grok parser docs 2019-03-25 12:09:04 -07:00
Daniel Nelson 135166323b
Update changelog 2019-03-22 14:14:38 -07:00
Daniel Nelson 9ba023fd67
[inputs/diskio] Fix how major and minor identifiers of block devices are read. (#5566)
* Fix how major and minor identifiers of block devices are read.

The current implementation assure that the major and the minor are
coded on one byte. But they are not:

```
brw-rw----  1 root disk    252, 290 Feb 25 11:36 dm-290
```

290 as minor in this example is over 1 byte.

So after wondering why all my devices iops weren't correctly stored,
I found out that several points were added for some disks. For `dm-290`
it was overriding `252:34`, instead of getting udev stats for `252:290`.

The solution is here:
https://sites.uclouvain.be/SystInfo/usr/include/sys/sysmacros.h.html

The implementation is directly taken from this, fixing my bug.

* Use unix.Major/unix.Minor instead of custom implementation

* [diskio] Force type of stat.Rdev uint64 for mipsle compatibility

For most platforms, stat.Rdev is already a uint64 so this is without any effect
for linux,mipsle, unix.Stat_t.Rdev is a uint32, but the way to compute major and minor doesn't change, casting the uint32 has no impact either
2019-03-22 14:03:48 -07:00
Daniel Nelson 417c5c1de8
Add owned directories to rpm package (#5607) 2019-03-22 14:02:45 -07:00
Daniel Nelson 72d4f00082
Remove string trimming from grok parser (#5608) 2019-03-22 14:02:15 -07:00
Daniel Nelson 68b8db4a64
Update changelog 2019-03-22 14:00:58 -07:00
Daniel Nelson 99a390b8e6
Fix open error handling in file output (#5540) 2019-03-22 13:59:30 -07:00
Soulou 205de66dd6
[diskio] Force type of stat.Rdev uint64 for mipsle compatibility
For most platforms, stat.Rdev is already a uint64 so this is without any effect
for linux,mipsle, unix.Stat_t.Rdev is a uint32, but the way to compute major and minor doesn't change, casting the uint32 has no impact either
2019-03-21 12:00:20 +01:00
Daniel Nelson fa65a82ef3
Update changelog 2019-03-20 12:53:55 -07:00
Daniel Nelson 51409c8768
Update changelog 2019-03-20 11:38:20 -07:00
Adrián López 33ee309fd1 Fix deadlock when Telegraf is aligning aggregators (#5612) 2019-03-20 10:36:51 -07:00
Daniel Nelson 5d9b829776
Set Telegraf 1.10.1 release date 2019-03-19 13:46:26 -07:00
Daniel Nelson b74660163e
Update changelog 2019-03-19 13:45:19 -07:00
Greg 3b1ab6f362 Don't add empty healthcheck tags to consul input (#5575) 2019-03-19 13:39:42 -07:00
Daniel Nelson 5e88824c15
Improve stability of appveyor builds (#5578) 2019-03-18 17:54:12 -07:00
Daniel Nelson eeb0e094c2
Remove test directory with .. prefix 2019-03-18 12:47:47 -07:00
Daniel Nelson 6b2137a4a1
Update changelog 2019-03-18 11:10:02 -07:00
Greg 6a97b259eb Minimize call to collect uptime in system input (#5592) 2019-03-18 11:07:44 -07:00
Soulou 2118fbe78a
Use unix.Major/unix.Minor instead of custom implementation 2019-03-15 14:36:56 +01:00
Daniel Nelson 96ded74098
Update changelog 2019-03-12 19:57:10 -07:00
Greg 45b1247d9b Use valid measurement names in csv parser (#5577)
If an empty column is present in parsed csv data, a `recordFields` is
set to the key of "". If no `MeasurementColumn` is defined, this empty
value was being used as the measurement name. By only setting the
measurementName if the value is not empty, we avoid this error.

Since an empty column is a valid column, skip values must account for
them.
2019-03-12 19:49:19 -07:00
Daniel Nelson 2a0ae10940
Update changelog 2019-03-11 15:37:34 -07:00
Dimitri Saingre 88e0cb16e1 Add hexadecimal string to integer conversion to converter processor (#5569) 2019-03-11 15:36:38 -07:00
Daniel Nelson 2566210df1
Update telegraf.conf 2019-03-11 12:32:45 -07:00
Daniel Nelson c61c48e10b
Remove trailing whitespace and wordwrap readme in vsphere 2019-03-11 12:31:48 -07:00
Daniel Nelson 9db15651ea
Fix ClusterRole aggregation documentation in kube_inventory 2019-03-11 12:00:20 -07:00
Daniel Nelson f298f87f0c
Update changelog; vsphere readme 2019-03-11 11:55:20 -07:00
Pontus Rydin 19988a94de Add use_int_samples option for backwards compatibility (#5563) 2019-03-11 11:16:32 -07:00
Pontus Rydin 1752619e35 Remove calls to destroy on ViewManager (#5557) 2019-03-11 11:08:53 -07:00
Soulou 92b01ab4f9
Fix how major and minor identifiers of block devices are read.
The current implementation assure that the major and the minor are
coded on one byte. But they are not:

```
brw-rw----  1 root disk    252, 290 Feb 25 11:36 dm-290
```

290 as minor in this example is over 1 byte.

So after wondering why all my devices iops weren't correctly stored,
I found out that several points were added for some disks. For `dm-290`
it was overriding `252:34`, instead of getting udev stats for `252:290`.

The solution is here:
https://sites.uclouvain.be/SystInfo/usr/include/sys/sysmacros.h.html

The implementation is directly taken from this, fixing my bug.
2019-03-11 01:31:30 +01:00
Daniel Nelson 91cd17fd40
Use random available port in prometheus output tests (#5555) 2019-03-08 14:54:16 -08:00
Daniel Nelson bdb9d5c842
Update changelog 2019-03-08 14:32:46 -08:00
Dheeraj Dwivedi 80155029c4 Add TTL field to ping input (#5556) 2019-03-08 14:30:38 -08:00
Daniel Nelson 7da57fe5f5
Fix incorrect option in net_response sample config 2019-03-08 14:10:55 -08:00
Greg 03920075e4 Fix links and add config to webhook readme (#5558) 2019-03-08 11:25:20 -08:00
Daniel Nelson 9378de942d
Update gopsutil to v2.19.02 (#5552) 2019-03-07 12:53:25 -08:00
Daniel Nelson d4c2d4548c
Update changelog 2019-03-06 17:40:16 -08:00
Daniel Nelson c3e793bb4e
Return any errors when creating tls config (#5541) 2019-03-06 17:37:44 -08:00
emily dd67144660 Add Base64-encoding/decoding for Google Cloud PubSub plugins (#5543) 2019-03-06 17:34:47 -08:00
Daniel Nelson 51cc0fe6d8
Set 1.10.0 release date 2019-03-05 11:12:27 -08:00
Daniel Nelson f2aa35e258
Update changelog 2019-03-05 11:10:10 -08:00
Daniel Nelson b5adaff07f
Sort metrics by timestamp in prometheus output (#5534) 2019-03-05 11:08:02 -08:00
Daniel Nelson a0527db037
Allow grok to produce metrics with no fields (#5533) 2019-03-05 11:07:39 -08:00
Daniel Nelson 1dcfecdb59
Build with Go 1.11.5 on Windows CI 2019-03-05 10:49:53 -08:00
Daniel Nelson 3d206d2897
Exclude dep check on windows CI 2019-03-05 10:42:25 -08:00
Daniel Nelson 6088c7f969
Add dep check to CI tests 2019-03-04 17:22:24 -08:00
Daniel Nelson 5108e82a5d
Remove unused dependencies 2019-03-04 17:17:35 -08:00
Greg 98e922123a Dereference pointer fields in metrics (#5525) 2019-03-04 13:34:52 -08:00
scier 77a2de2bc1 Add a link to x509_cert plugin in the README (#5515) 2019-03-04 13:00:22 -08:00
Daniel Nelson b21864fc17
Update changelog 2019-03-04 12:55:35 -08:00
Daniel Nelson 0b5811e193
Fix panic when rejecting empty batch (#5524) 2019-03-04 12:36:19 -08:00
Daniel Nelson c0e0da7ef6
Fix conversion from string float to integer (#5518) 2019-03-04 12:35:57 -08:00
Daniel Nelson d09c213562
Fix sample configuration; generated with wrong version 2019-03-02 21:07:05 -08:00
Greg 30fcaf0987 Improve error handling in prometheus output (#5512) 2019-03-01 13:26:11 -08:00
Daniel Nelson 9bd48d4673
Update changelog 2019-03-01 11:27:47 -08:00
Daniel Nelson c57f2d9d48
Ignore tracking for metrics added to aggregator (#5508) 2019-03-01 11:21:31 -08:00
Daniel Nelson 2c09010f72
Listen before returning from Connect in prometheus output (#5509) 2019-03-01 11:19:31 -08:00
Daniel Nelson 41286d10c2
Update changelog 2019-02-27 16:34:49 -08:00
scier 7787ea2dcc Create log file in append mode (#5497) 2019-02-27 16:33:38 -08:00
Daniel Nelson bfc8758db6
Update build.py next_version 2019-02-27 11:32:58 -08:00
Daniel Nelson 2d2abe295b
Update sample telegraf.conf 2019-02-27 11:11:10 -08:00
Daniel Nelson a4b4dd8295
Update changelog 2019-02-27 10:56:16 -08:00
Daniel Nelson 65b76dc746
Add tag based routing in influxdb/influxdb_v2 outputs (#5490) 2019-02-27 10:54:02 -08:00
Matthew Crenshaw 1872356103 Add multicast support to socket_listener input 2019-02-27 10:43:39 -08:00
Daniel Nelson 50c1103657
Update changelog 2019-02-26 18:42:18 -08:00
Daniel Nelson b805e83b71
Add additional metrics to rabbitmq input 2019-02-26 18:41:18 -08:00
Daniel Nelson d84e501ab6
Update changelog 2019-02-26 18:38:24 -08:00
Daniel Nelson 29cbb0ab2d
Add mutual TLS support to prometheus_client output 2019-02-26 18:34:35 -08:00
Daniel Nelson 598a79bf62
Remove 'inputs.' prefix when logging loaded inputs (#5489)
* Remove 'inputs.' prefix when logging loaded inputs

* Remove prefix from aggregators name
2019-02-26 18:31:43 -08:00
Daniel Nelson 3377389017
Add cloud_pubsub_push to readme/changelog 2019-02-26 18:30:54 -08:00
Greg c6612a4e4a Add cloud pubsub push input plugin (#5442) 2019-02-26 18:25:42 -08:00
Daniel Nelson 03f40b3588
Remove prefix from aggregators name 2019-02-26 18:22:12 -08:00
Daniel Nelson c023ffe0a5
Add unique_timestamp option from grok parser to logparser grok 2019-02-26 18:05:04 -08:00
Daniel Nelson 4df0cc006c
Update changelog 2019-02-26 17:41:56 -08:00
Robert Edström a3f83afe4a Move capacity check for stackdriver output plugin (#5479) 2019-02-26 17:40:21 -08:00
Greg 85617887c4 Add option to disable timestamp adjustment in grok parser (#5488) 2019-02-26 17:35:57 -08:00
Greg Linton 8d90609198 Remove 'inputs.' prefix when logging loaded inputs 2019-02-26 17:03:13 -07:00
Daniel Nelson ec746cc32a
Update changelog 2019-02-26 14:04:36 -08:00
Greg 9740e956ca Log permission error and ignore in filecount input (#5483) 2019-02-26 14:03:25 -08:00
Daniel Nelson c9597a2463
Set release date for 1.9.5 2019-02-26 12:45:03 -08:00
Daniel Nelson 931fac9b86
Fix issue link in changelog 2019-02-26 12:45:03 -08:00
Daniel Nelson 04f3c4321c
Fix several influx parser issues (#5484)
- Add line/column position
- Allow handlers to return errors
- Fix tag value escaping
- Allow newline in string fields
2019-02-26 10:48:41 -08:00
Max Eshleman b34ad9efc4 update sample config for prometheus output client
Signed-off-by: Robert Sullivan <rsullivan@pivotal.io>
2019-02-26 11:46:49 -07:00
Max Eshleman a85833ae53 replace gomega with require in prometheus output client tests
Signed-off-by: Robert Sullivan <rsullivan@pivotal.io>
2019-02-26 11:34:50 -07:00
Daniel Nelson 8da6846e53
Update changelog 2019-02-25 16:04:10 -08:00
Greg 5253cbfa01 Add ceph_health metrics to ceph input (#5482) 2019-02-25 16:02:30 -08:00
Daniel Nelson 135b1d1a8e
Update changelog 2019-02-25 15:34:11 -08:00
Greg 7fa8b33066 Add backwards compatibility fields in ceph usage and pool stats (#5466) 2019-02-25 15:32:05 -08:00
Daniel Nelson 62678fae06
Add kinesis_consumer documentation links 2019-02-25 12:06:44 -08:00
Greg 9d8a574ac7 Add kinesis input plugin (#5341) 2019-02-25 12:02:57 -08:00
Daniel Nelson 2506da80c2
Update changelog 2019-02-25 11:31:28 -08:00
Douglas Drinka 1886676e14 Support configuring a default timezone in JSON parser (#5472) 2019-02-25 11:30:33 -08:00
Daniel Nelson eb794ec30f
Log the protocol and address that socket_listener is listening on (#5454) 2019-02-25 11:11:25 -08:00
Daniel Nelson 0882479cbf
Add command logging to snmp input at debug level (#5474) 2019-02-25 11:04:34 -08:00
Daniel Nelson 2abed0e04f
Update changelog 2019-02-25 10:55:14 -08:00
Daniel Nelson 9e0248898f
Disable results by row in azuredb query (#5467) 2019-02-25 10:54:19 -08:00
Robert Sullivan 05af32b191 Clean up TLS configuration in prometheus_client output plugin
Signed-off-by: Jesse Weaver <jeweaver@pivotal.io>
2019-02-22 15:26:32 -07:00
Jesse Weaver c9fb1fcdca Add mutual TLS support to prometheus_client output plugin
Signed-off-by: Robert Sullivan <rsullivan@pivotal.io>
2019-02-22 12:19:29 -07:00
Pierre Tessier cf18c4a2bf Update wavefront-sdk-go version (#5461) 2019-02-22 11:10:59 -08:00
Pierre Tessier 5f1bc9e49f Accept values with a negative exponent in wavefront parser (#5462) 2019-02-21 14:49:52 -08:00
Nicolas Bazire 33dfbfdf5e Fix delete in place of keys in stackdriver output (#5465) 2019-02-21 12:19:50 -08:00
Daniel Nelson 0a2cc3ac3f
Update link to grok built in patterns 2019-02-21 12:11:00 -08:00
Daniel Nelson 3c95b25588
Update link to grok built in patterns 2019-02-21 12:08:59 -08:00
Daniel Nelson f8cc9719a2
Document how to increase the file limit in the ping input 2019-02-20 17:57:39 -08:00
emily 0a01713bcc Retry restarting receiver on PubSub service error (#5458) 2019-02-20 17:33:56 -08:00
Daniel Nelson c234ba291e
Update changelog 2019-02-20 15:17:17 -08:00
Andrew Ernst 6add84eb25 Support Azure Sovereign Environments with endpoint_url option (#5453) 2019-02-20 15:16:23 -08:00
Daniel Nelson 03776088f1
Update changelog 2019-02-20 13:26:21 -08:00
Daniel Nelson 843d842d02
Add stackdriver input plugin (#5406) 2019-02-20 13:23:59 -08:00
Daniel Nelson 463df273ee
Update changelog 2019-02-20 13:18:08 -08:00
Robert Edström 5823fefb7a Group stackdriver requests to send one point per timeseries (#5407) 2019-02-20 13:16:02 -08:00
Daniel Nelson 431c58d84f
Update changelog 2019-02-19 15:10:53 -08:00
Olli-Pekka Lehto 5dfa3fa769 Fix InfluxDB output UDP line splitting (#5439) 2019-02-19 15:08:54 -08:00
Daniel Nelson e4d084fbc3
Update changelog 2019-02-19 15:02:57 -08:00
Daniel Nelson 091dd61548
Update changelog 2019-02-19 11:20:46 -08:00
Greg e586fdb27f Append host if arguments are specified for ping input (#5450) 2019-02-19 11:18:15 -08:00
tgregory86 c18934f065 Fix typo in CONFIGURATION.md example (#5441) 2019-02-15 11:13:43 -08:00
Daniel Nelson ab1a1b075d
Disable export_timestamp by default in prometheus output 2019-02-14 15:09:12 -08:00
Daniel Nelson 7e91336c54
Update changelog 2019-02-12 17:59:03 -08:00
Greg 3e9703a573 Add rcode tag and field to dns_query input (#5417) 2019-02-12 17:57:20 -08:00
Daniel Nelson f001303189
Update changelog 2019-02-12 16:49:40 -08:00
Tomas Barton ee5827ccbd Remove error log when snmp6 directory does not exists with nstat input (#5403) (#5413) 2019-02-12 16:17:09 -08:00
Daniel Nelson ce507e522f
Fix dep check errors 2019-02-12 15:34:57 -08:00
Daniel Nelson b490e7d273
Update changelog 2019-02-12 14:06:01 -08:00
Pontus Rydin c0bb8625dc Add resource path based filtering to vsphere input (#5165) 2019-02-12 14:05:14 -08:00
Greg ddf35ddaf3 Note how to use all namespaces in kube_inventory (#5416) 2019-02-12 11:36:22 -08:00
Daniel Nelson 0df92dff0d
Update changelog 2019-02-11 17:27:05 -08:00
Daniel Nelson c08b454af4
Fix typos in mqtt output documentation 2019-02-11 17:25:25 -08:00
Daniel Nelson 6ac4fc8f06
Update changelog 2019-02-11 17:22:53 -08:00
Paweł Kraszewski 0084138bc6 Add option to set retain flag on messages in mqtt output (#4892) 2019-02-11 17:22:31 -08:00
Phil Schwartz c8832a28c4 Set deadlock priority in sqlserver input (#5301) 2019-02-11 17:10:42 -08:00
Daniel Nelson c612f707f4
Comment out optional parameters to stackdriver output 2019-02-11 14:58:30 -08:00
Daniel Nelson 412a7996e1
Update changelog 2019-02-11 12:50:23 -08:00
Greg 16a7ce39da Add internal metric for line too long in influxdb_listener (#5396) 2019-02-11 12:49:06 -08:00
Daniel Nelson 516a5898fd
Update changelog 2019-02-08 12:16:48 -08:00
Robert Edström 3f9860a685 Add resource type and resource label support to stackdriver output (#5391) 2019-02-08 12:13:33 -08:00
Gunnar 52bd698046 Use Systemd for Amazon Linux 2 packages (#5387) 2019-02-06 16:17:11 -08:00
Daniel Nelson 2acfe16dd3
Update changelog 2019-02-06 14:22:07 -08:00
Daniel Nelson 7f54ae18b5
Send metrics in ascending time order in stackdriver output (#5385) 2019-02-06 14:17:51 -08:00
Daniel Nelson e65ab593b5
Update changelog 2019-02-05 18:24:02 -08:00
Daniel Nelson d4ab5da34f
Skip string fields in stackdriver output (#5384) 2019-02-05 18:22:42 -08:00
Daniel Nelson f54da4d748
Update changelog/csv parser docs 2019-02-05 17:45:44 -08:00
Greg 10ac030502 Unify time parsing in json/csv parsers (#5382) 2019-02-05 17:43:35 -08:00
Daniel Nelson 7887e15446
Update changelog 2019-02-05 17:39:50 -08:00
Greg 1137fa50ad Continue checking cert from other sources if error occurs (#5381) 2019-02-05 17:38:04 -08:00
Daniel Nelson 1a81e49d05
Return error loading config on non-200 response 2019-02-05 15:15:58 -08:00
Daniel Nelson 7dffb1b5f9
Update to gopsutil v2.19.01 (#5380) 2019-02-05 13:09:56 -08:00
Daniel Nelson 2c9fde451b
Set 1.9.4 release date 2019-02-05 11:32:20 -08:00
Ami Blonder cce160322e Replace subscription with topic in the pubsub output plugin (#5378) 2019-02-05 11:04:51 -08:00
Daniel Nelson 2f2ababbdb
Update changelog 2019-02-04 13:52:00 -08:00
Daniel Nelson c579a6bdb9
Add linux mipsle packages (#5234) 2019-02-04 13:50:13 -08:00
Daniel Nelson 96f99a7a79
Update changelog 2019-02-04 12:38:45 -08:00
Greg 94de223916 Add kube_inventory input plugin (#5110) 2019-02-04 12:28:43 -08:00
Daniel Nelson 6be5b55094
Update changelog 2019-02-04 11:24:49 -08:00
Daniel Nelson 00734c56c4
Return new Syslog instance for each plugin (#5372) 2019-02-04 11:21:16 -08:00
Daniel Nelson 6b144db504
Remove unimplemented auth options from azure_monitor documentation (#5348) 2019-02-04 11:19:04 -08:00
Daniel Nelson 4e8aa401e0
Use github.com/go-logfmt/logfmt 0.4.0 2019-02-02 18:19:31 -08:00
Grace Do 15c65b08e5 Check fields in testutil AssertDoesNotContainsTaggedFields (#5365) 2019-02-01 16:20:24 -08:00
Daniel Nelson a98483cc11
Update telegraf.conf 2019-02-01 12:27:31 -08:00
Daniel Nelson 35381707db
Fix grammar in influxdb_v2 README 2019-02-01 12:27:31 -08:00
Daniel Nelson 8e46414da2
Clean pubsub sample config 2019-02-01 12:27:31 -08:00
Daniel Nelson 2857f07af9
Add stats option to basicstats sample config 2019-02-01 12:27:31 -08:00
Pierre Tessier c37811ccd8 Update docs on using filtering to group aggregates (#5349) 2019-01-29 22:01:17 -08:00
Pontus Rydin d207269a30 Added performance section to vsphere README (#5353) 2019-01-29 17:32:48 -08:00
Daniel Nelson 6c6ff372ff
Update changelog 2019-01-25 18:10:25 -08:00
Daniel Nelson d5a03eb690
Use Go 1.10.8 and 1.11.5 (#5346) 2019-01-25 18:08:48 -08:00
Daniel Nelson 36b55c3d76
Update changelog 2019-01-25 18:07:50 -08:00
Frank Reno a15305385f Add carbon2 serializer (#5345) 2019-01-25 18:06:08 -08:00
Daniel Nelson 7d64620440
Update changelog 2019-01-25 12:59:48 -08:00
Jeff Ashton 4ca0a04df1 Removing authentication from the /ping route to match influxdb (#5316) 2019-01-25 12:57:35 -08:00
vignemail1 7a229e25a6 Update sudo config recommendation (#5337) 2019-01-24 10:54:25 -08:00
Daniel Nelson 35d18d3fd7
Update multifile plugin docs 2019-01-23 17:26:50 -08:00
Martin Pittermann 7a031c48cd Add multifile input plugin (#5256) 2019-01-23 16:23:58 -08:00
Daniel Nelson 3de473721d
Update changelog 2019-01-23 14:19:08 -08:00
Daniel Nelson d1610d50e6
Always send basic auth in jenkins input (#5329) 2019-01-23 14:17:57 -08:00
Daniel Nelson aabb60dfec
Update changelog 2019-01-23 14:13:37 -08:00
Daniel Nelson 17460be771
List deprecation version for consul datacentre 2019-01-23 14:12:19 -08:00
Marcelo Almeida f739ce2a35 Use datacenter option spelling in consul input (#5320) 2019-01-23 14:10:38 -08:00
Daniel Nelson 39eff3d62b
Update changelog 2019-01-23 11:40:22 -08:00
Greg 458d3109c0 Set skip rows and columns in csv parser (#5336) 2019-01-23 11:37:24 -08:00
Pierre Tessier 99d36eb453 Clarify change in changelog (#5333) 2019-01-23 09:59:03 -08:00
Daniel Nelson efbc83c8b6
Document that sqlserver input requires SP3 2019-01-22 15:47:57 -08:00
Daniel Nelson b2f6fd685d
Update link to InfluxDB v2.x 2019-01-22 15:29:46 -08:00
Daniel Nelson 5acf2e6ed7
Update filecount docs 2019-01-22 14:13:15 -08:00
Greg 5b85569316 Cleanup logs in kinesis output (#5328) 2019-01-22 14:05:20 -08:00
Daniel Nelson 739aeeb2e0
Note 1.9.3 release date 2019-01-22 13:48:20 -08:00
Daniel Nelson 7284dfc502
Update changelog 2019-01-22 13:45:24 -08:00
Daniel Nelson b34c5e0d04
Update the buffer_size internal metric after writes (#5314) 2019-01-22 13:43:51 -08:00
Daniel Nelson fa9a654f2d
Update changelog 2019-01-18 11:45:10 -08:00
Greg cf10d03bb9 Remove credentials from cluster tag in couchbase (#5313) 2019-01-18 11:43:24 -08:00
Daniel Nelson b6cc324d10
Add note on performance to grok parser documentation (#5291) 2019-01-17 12:00:07 -08:00
Daniel Nelson 8ea181d67c
Update changelog 2019-01-17 10:52:26 -08:00
Artem V. Navrotskiy 3380fdf69d Add option to report input timestamp in prometheus output (#5292) 2019-01-17 10:51:18 -08:00
Daniel Nelson 452b13a4e3
Update changelog 2019-01-16 15:51:22 -08:00
Greg b620a56d21 Collect from newly discovered/launched pods (#5293) 2019-01-16 15:49:24 -08:00
Artem V. Navrotskiy 2b8729e048 Fix typo in mongodb field name (#5299) 2019-01-16 15:39:55 -08:00
Daniel Nelson e95b88e01b
Update changelog 2019-01-15 15:27:56 -08:00
Greg 50ba5c15a4 Support passing bearer token directly in k8s input (#5295) 2019-01-15 15:26:18 -08:00
Greg d759b46345 Support passing bearer token directly in prometheus input (#5294) 2019-01-15 15:25:26 -08:00
Daniel Nelson a7b443c55b
Update changelog 2019-01-15 12:59:14 -08:00
Dmitry Ilyin e404e5145b Add nginx_upstream_check input plugin (#4303) 2019-01-15 12:56:40 -08:00
Daniel Nelson 059ab5d16b
Update changelog 2019-01-15 11:54:04 -08:00
Daniel Nelson da80276802
Use lifo order in metric buffer (#5287) 2019-01-15 11:48:52 -08:00
Daniel Nelson 193aba8673
Ack delivery if it is unparseable in amqp_consumer input (#5286) 2019-01-15 11:48:36 -08:00
Daniel Nelson 42184fd1c8
Use gopsutil 2.18.12 (#5288) 2019-01-15 11:47:06 -08:00
Daniel Nelson dcc4389a2a
Update changelog 2019-01-15 11:36:27 -08:00
Artem V. Navrotskiy df33759711 Add flush_total_time_ns and additional wired tiger fields to mongodb input (#5273) 2019-01-15 11:31:51 -08:00
Daniel Nelson ccfd9ca522
Update mongodb readme 2019-01-10 14:38:13 -08:00
Daniel Nelson e20ba1e2b6
Fix intermittent test cases in cloud_pubsub (#5271) 2019-01-09 15:55:57 -08:00
Artem V. Navrotskiy 4b3580cceb Add raw counters to mongodb input (#5264) 2019-01-09 15:48:45 -08:00
Daniel Nelson 10b3e45775
Sort fields in nowmetric test 2019-01-08 17:57:38 -08:00
Daniel Nelson bed90f1942
Update changelog 2019-01-08 15:56:10 -08:00
emily f5f85aa74f Add GCP Cloud Pubsub output plugin (#5202) 2019-01-08 15:53:02 -08:00
Daniel Nelson 2474a3a54b
Remove unsupported parallel testing 2019-01-08 15:43:50 -08:00
Daniel Nelson c9d8be9ab5
Update changelog and docs for nowmetric serializer 2019-01-08 15:32:49 -08:00
JefMuller e6724bfb7c Add ServiceNow serializer (#4809) 2019-01-08 15:28:00 -08:00
Daniel Nelson dd20b1cd10
Update changelog and docs for neptune_apex plugin 2019-01-08 15:09:36 -08:00
Max Renaud 4125e4161c Add input plugin for Neptune Apex aquarium controller (#5191) 2019-01-08 15:02:32 -08:00
Daniel Nelson 8538894690
Update changelog 2019-01-08 14:16:14 -08:00
Phil Schwartz 1c3acafc8f Fix arithmetic overflow in sqlserver input (#5261) 2019-01-08 14:13:14 -08:00
Daniel Nelson 741a4d9c97
Set release date for 1.9.2 2019-01-08 11:59:30 -08:00
Daniel Nelson 5d0b7011d2
Update changelog 2019-01-08 11:58:00 -08:00
Daniel Nelson 0fd08dd65a
Add a copy of the input metric when adding to aggregator (#5266) 2019-01-08 11:56:44 -08:00
Daniel Nelson 361baaa4bb
Remove empty file 2019-01-08 11:11:02 -08:00
Daniel Nelson 84139cf890
Use gofmt from Go 1.11 (#5259) 2019-01-07 17:14:07 -08:00
Daniel Nelson 0f75f3b304
Link intervals to interval section in configuation docs 2019-01-07 14:36:41 -08:00
Daniel Nelson 0ceb10e017
Rewrite configuration documentation (#5227) 2019-01-07 14:31:10 -08:00
Daniel Nelson 3621bcf5a6
Add basic unittest for templating engine 2019-01-07 14:14:00 -08:00
j2gg0s 9800779e64 Fix err in graphite parser_test (#5257) 2019-01-07 11:30:48 -08:00
hydrandt 9dc9bd653a Document response_string_match field in http_response (#5251) 2019-01-07 11:25:08 -08:00
Mark Amery 39022cd2f4 Fix typo in graylog documentation (#5253) 2019-01-07 11:05:22 -08:00
Daniel Nelson 4fd5fa006b
Allow non-tls config downloading 2019-01-04 10:40:44 -08:00
Daniel Nelson 0afa99c17b
Update changelog and supporting files for cloud_pubsub 2019-01-03 16:28:15 -08:00
emily f42d9378ba Add cloud_pubsub input plugin (#5136) 2019-01-03 16:20:07 -08:00
Daniel Nelson 3a7a40a0a4
Update Gopkg.lock 2019-01-03 16:09:07 -08:00
Daniel Nelson 206b8c9bc5
Update changelog 2019-01-03 15:58:35 -08:00
Greg 723d8f0104 Fix panic in docker input with bad endpoint (#5226) 2019-01-03 15:57:39 -08:00
Daniel Nelson 334f9267b6
Use Go 1.11.4 and 1.10.7 (#5221) 2019-01-03 12:41:16 -08:00
Greg 3c4e737f6b Add example to topk readme. Fix defaults to skip loop (#5220) 2019-01-03 12:06:56 -08:00
Daniel Nelson 10b2260daf
Update changelog 2019-01-03 11:36:45 -08:00
Daniel Nelson bd54e4a002
Update readme for varnish input 2019-01-03 11:35:13 -08:00
Kamil Szczygieł 3f158429bc Add configurable timeout to varnish input (#5214) 2019-01-03 11:33:04 -08:00
Pontus Rydin bae742ecb0 Update wavefront-sdk-go to 0.9.1 (#5223) 2019-01-03 11:30:55 -08:00
Pontus Rydin 3356f1dc82 Fix discovery race condition in vsphere input (#5217) 2019-01-03 11:30:05 -08:00
Daniel Nelson 184f7b6a8b
Update changelog 2019-01-02 13:56:56 -08:00
Daniel Nelson 4e35732279
Fix toml option names in parser processor (#5218) 2019-01-02 13:55:59 -08:00
Daniel Nelson a932cc2419
Update changelog 2019-01-02 13:55:00 -08:00
Greg bc45629b70 Allow non local udp connections in net_response (#5219) 2019-01-02 13:53:58 -08:00
Daniel Nelson d28e6aebfa
Update changelog 2019-01-02 13:13:34 -08:00
Daniel Nelson 79860be795
Update changelog 2019-01-02 13:12:29 -08:00
svenwiltink bf7a42643e Add read and write op per second fields (#5210) 2019-01-02 13:06:54 -08:00
svenwiltink df6fbdb1e8 Fix unittests for new year (#5213) 2019-01-02 11:12:04 -08:00
Daniel Nelson bf4175b9cd
Update changelog 2018-12-28 13:25:35 -08:00
Pontus Rydin 78c1ffbf27 Improve scalability of vsphere input (#5113) 2018-12-28 13:24:43 -08:00
Daniel Nelson 1d6ff4fe4c
Add link to CodeStyle wiki page in plugin guides 2018-12-28 13:02:16 -08:00
Daniel Nelson 60cbdcb416
Update changelog 2018-12-27 13:20:10 -08:00
BoheeChoi1 cb9bacfede Add forwarded records to sqlserver input (#5177) 2018-12-27 13:18:29 -08:00
Daniel Nelson 2ff3683b50
Improve config file environment variable documentation (#5200) 2018-12-27 13:12:00 -08:00
Daniel Nelson 219fad60a6
Update changelog 2018-12-27 13:10:17 -08:00
Daniel Nelson 3fbfe3acd2
Fix usage of loop variable in function closure (#5195) 2018-12-27 13:08:19 -08:00
Daniel Nelson 9a0861f7e2
Update changelog 2018-12-26 19:40:39 -08:00
Daniel Nelson dbe6f594a9
Allow floats in valuecounter aggregator (#5168) 2018-12-26 19:39:34 -08:00
Daniel Nelson c72d8a1663
Update changelog 2018-12-26 19:38:04 -08:00
Daniel Nelson 7497a2027b
Deliver empty metric tracking group immediately (#5176) 2018-12-26 19:36:10 -08:00
Daniel Nelson 72089042be
Update changelog 2018-12-26 19:10:18 -08:00
Daniel Nelson c12eecc90e
Signal telegraf process until it exits (#5169) 2018-12-26 18:54:50 -08:00
Daniel Nelson b1baa54cc4
Update changelog 2018-12-26 14:58:19 -08:00
Nic Grobler 10a067a699 Add PDH_NO_DATA to known counter error codes in win_perf_counters (#5182) 2018-12-26 14:51:31 -08:00
Greg 757132baf4 Add test for include/exclude filter (#5193) 2018-12-26 13:15:13 -08:00
Daniel Nelson acd176cf42
Update changelog 2018-12-21 11:31:44 -08:00
Pierre Tessier 9cc06702da Use wavefront sdk in wavefront output (#5161) 2018-12-21 11:26:07 -08:00
Daniel Nelson 675178f915
Update golang.org/x/sys to latest revision (#5174) 2018-12-20 12:15:40 -08:00
Daniel Nelson ce8ec24100
Document using posix acl in disk input 2018-12-20 12:12:25 -08:00
Daniel Nelson 5027a516c7
Even more fix link in grok documentation 2018-12-19 16:25:06 -08:00
Daniel Nelson 76f8d294e4
Even more fix link in grok documentation 2018-12-19 16:24:00 -08:00
Daniel Nelson 2c3fa0907e
Even more fix link in grok documentation 2018-12-19 16:22:43 -08:00
Daniel Nelson d043da1976
Fix link in grok documentation 2018-12-19 16:17:17 -08:00
Daniel Nelson 30d4088b4e
Update changelog 2018-12-19 15:53:33 -08:00
Maciej Mencner e85e6bd3e7 Fix num_remapped_pgs field in ceph plugin (#5167) 2018-12-19 15:51:24 -08:00
Daniel Nelson 9bf2ef28f5
Update changelog 2018-12-19 13:00:19 -08:00
Daniel Nelson 841860890f
Add support for basic auth to couchdb input (#5160) 2018-12-19 12:59:27 -08:00
Samuel-BF f530ca6e7c Use godirwalk in globpath (#5145) 2018-12-18 14:23:25 -08:00
Daniel Nelson 234975bcac
Update changelog 2018-12-18 14:21:50 -08:00
Daniel Nelson 544262a23a
Apply global and plugin level metric modifications before filtering (#5152) 2018-12-18 14:20:43 -08:00
Adrián López 7caa5d20af Fix invalid JSON in readme (#5158) 2018-12-18 12:21:36 -08:00
Daniel Nelson 700e6b5ed3
Update changelog 2018-12-18 11:04:02 -08:00
Leonardo Di Donato 697381d4b5 Add support for non-transparent framing of syslog messages (#5148) 2018-12-18 10:54:38 -08:00
Daniel Nelson 1334919224
Update changelog 2018-12-14 14:38:41 -08:00
Greg 6ef331efeb Add micro and nanosecond unix timestamp support to JSON parser (#5149) 2018-12-14 14:38:01 -08:00
Daniel Nelson 99b6982cde
Update changelog 2018-12-14 14:36:19 -08:00
Greg 891eff0930 Run stop logic only if required in prometheus input (#5144) 2018-12-14 14:34:05 -08:00
Ruud Bijnen 98231f8b6b Fix converter processor example (#5146) 2018-12-14 10:56:21 -08:00
Samuel-BF 8906e2796b Add size to filecount input (#4778) 2018-12-13 12:25:49 -08:00
Daniel Nelson 0485119716
Update changelog 2018-12-13 11:58:44 -08:00
Raphael Couto f794d5b08a Fix error sending empty tag value in azure monitor output (#5083) 2018-12-13 11:57:03 -08:00
Daniel Nelson 8526aa5c87
Update changelog 2018-12-13 11:51:53 -08:00
dbergmanskytap 6b5ddbbf66 Include DEVLINKS in available diskio udev properties (#5116) 2018-12-13 11:49:19 -08:00
Daniel Nelson dbea6dca30
Update changelog 2018-12-13 11:43:51 -08:00
Mark Wilkinson - m82labs 503f3ce0a6 Remove storage calculation for non Azure managed instances and add server version (#5135)
- Removed the storage calculation for SQL Server instances that are NOT Azure
  Managed Instances, this reduces the time it takes to get this data on an
  instance with a lot of databases and/or database files.
- Added the SQL Server version back to the server properties query.
2018-12-13 11:42:35 -08:00
Daniel Nelson e2ccce9e44
Update changelog 2018-12-11 19:16:08 -08:00
Daniel Nelson 4d3519756c
Add support for sending a request body to http input (#5074) 2018-12-11 19:12:00 -08:00
Daniel Nelson cf2b85f383
Add running field to procstat_lookup (#5069) 2018-12-11 19:11:33 -08:00
Lasse Karstensen d954218f75 Increase varnishstat timeout (#5130) 2018-12-11 16:57:08 -08:00
Greg Linton 4d026fce97 Set 1.9.1 release date 2018-12-11 15:59:32 -07:00
Daniel Nelson 385be709a1
Update changelog 2018-12-10 16:46:20 -08:00
Robert Fisher 04dfa430ef Allow delta metrics in wavefront parser (#5115) 2018-12-10 16:42:25 -08:00
Daniel Nelson 03a5fc9b88
Update changelog 2018-12-10 16:21:21 -08:00
Alexander Thaller 1170367dd7 Use -W flag on bsd variants in ping input (#5112) 2018-12-10 16:20:04 -08:00
Daniel Nelson 403a28d078
Update changelog 2018-12-10 16:14:59 -08:00
Greg 83bc3d1277 Improve docs to clarify common issues (#5054) 2018-12-10 16:14:20 -08:00
Greg 74d8523db6 Aggregate early metrics, rather than ignore (#5085) 2018-12-10 16:07:08 -08:00
Greg d0a6051fd7 Prevent panic when marking the offset in kafka_consumer (#5118) 2018-12-10 15:55:58 -08:00
Emmanuel Nosa Evbuomwan adce43f546 Fix grammar and typos in fluentd README.md (#5127) 2018-12-10 15:24:11 -08:00
Russ Savage d108925d81 Update license information (#5075) 2018-12-10 15:21:13 -08:00
Daniel Nelson 97d833d440
Update changelog 2018-11-30 15:01:57 -08:00
Daniel Nelson 7479352e4a
Rename interrupts cpu_as_tags to cpu_as_tag; update readme 2018-11-30 15:00:38 -08:00
Wojciech Kudla 9a637eda05 Switch CPU from field to tag in interrupts input plugin (#4999) (#5024) 2018-11-30 14:42:55 -08:00
Daniel Nelson 1d6db08dc8
Update changelog 2018-11-29 16:07:56 -08:00
Daniel Nelson 34231f6141
Update to pgx 3.2.0 (#5068) 2018-11-29 15:56:11 -08:00
Greg Volk cd9a79f5e6 Add tagdrop example for win_perf_counters (#5061) 2018-11-29 13:04:31 -08:00
Daniel Nelson d69f81ae5e
Update changelog 2018-11-29 13:00:58 -08:00
Daniel Nelson 0a506a93fe
Remove metrics from the buffer on write (#5052) 2018-11-29 12:58:48 -08:00
Daniel Nelson 9b3452a65d
Update changelog 2018-11-28 16:54:07 -08:00
Daniel Nelson fc7fba9020
Use Telegraf as value for graylog x-requested-by header 2018-11-28 16:52:40 -08:00
gurayyildirim ba612b670b Add X-Requested-By header to graylog input (#5011) 2018-11-28 16:52:03 -08:00
Daniel Nelson 2d1f97c217
Update changelog 2018-11-28 16:46:02 -08:00
Daniel Nelson 55b798bd20
Fix mongodb document stats (#5049) 2018-11-28 16:43:13 -08:00
Daniel Nelson db497a04ea
Update changelog 2018-11-28 16:30:08 -08:00
Sebastien Le Digabel 448c98d82e Add ability to tag metrics with topic in kafka_consumer (#5038) 2018-11-28 16:29:26 -08:00
Daniel Nelson 35d08b2df7
Update changelog 2018-11-28 16:21:49 -08:00
Daniel Nelson a26aaa5e03
Add support for unix_ms timestamps in csv parser. 2018-11-28 16:19:53 -08:00
Felipe Dutra Tine e Silva f9113b63b7 Add csv parser unix timestamp support (#5047) 2018-11-28 16:07:25 -08:00
Daniel Nelson 168c2b0ed1
Fix influxdb_v2 link in readme 2018-11-28 12:10:51 -08:00
Mauro Murari 9bc92c5c75 Fix server connection info in mongodb input (#5048) 2018-11-27 17:45:23 -08:00
Daniel Nelson 1279db1a8f
Update changelog 2018-11-27 17:27:28 -08:00
Jeppe Fihl-Pearson 6d2fb0027c Set default config values in jenkins input (#5046) 2018-11-27 17:26:22 -08:00
Daniel Nelson 581772a6a5
Update changelog 2018-11-21 17:45:14 -08:00
Lance O'Connor 85ee354255 Fix boolean handling in splunkmetric serializer (#5008) 2018-11-21 17:43:42 -08:00
Daniel Nelson f57b019e22
Fix link to http_listener_v2 2018-11-20 15:23:14 -08:00
Daniel Nelson c35d124f78
Set 1.9 release date 2018-11-20 11:14:09 -08:00
Daniel Nelson 65ce9d6d86
Update changelog 2018-11-19 13:23:22 -08:00
Pierre Fersing 0772076378 Allow for force gathering ES cluster stats (#4345) 2018-11-19 11:53:09 -08:00
Greg 9c9511bde9 Be specific about required csv header definition (#5007) 2018-11-19 11:27:21 -08:00
Daniel Nelson 7a779a7550
Update changelog 2018-11-16 10:53:09 -08:00
Greg d8e3c1d434 Prevent panic in influxdb_listener (#4997) 2018-11-16 10:51:06 -08:00
Daniel Nelson 17079288af
Update changelog 2018-11-15 15:50:00 -08:00
Daniel Nelson 140387d2c3
Log warning when wireless plugin is used on unsupported platform (#4986) 2018-11-15 15:45:56 -08:00
Greg 46b340c899 Handle non-tls columns for mysql input (#4973) 2018-11-15 15:45:18 -08:00
Greg 91ecec71ea Only print final collection when runing --test (#4991) 2018-11-15 15:44:36 -08:00
Daniel Nelson 274af39a5e
Update kubernetes input docs (#4990) 2018-11-15 15:43:47 -08:00
Daniel Nelson d886055f67
Update telegraf_windows.conf 2018-11-14 12:06:23 -08:00
Daniel Nelson b6fd7c5aab
Add troubleshooting section to disk input README 2018-11-14 11:40:11 -08:00
Daniel Nelson edeb21c3cc
Update Gopkg.lock with current revisions 2018-11-13 13:53:57 -08:00
Daniel Nelson 56f2c435e7
Add udp url note to influxdb output sample config 2018-11-12 16:06:23 -08:00
Ivan Vandot 41c8fd7e93 Clarify UDP influxdb endpoint (#4974) 2018-11-12 16:05:28 -08:00
Daniel Nelson fbd3e7887a
Update dovecot readme 2018-11-09 16:43:15 -08:00
Grace Do 625a1ca8fa Use fieldsCopy in testutil.Accumulator AddFields (#4970) 2018-11-09 10:59:33 -08:00
Mark Rushakoff d67eb46c3d Remove mistakenly committed file (#4969) 2018-11-09 10:23:53 -08:00
Daniel Nelson f1758489bb
Update changelog 2018-11-06 14:27:41 -08:00
Pontus Rydin 2d782fbaac Fix potential missing datastore metrics in vSphere plugin (#4968) 2018-11-06 14:22:43 -08:00
Daniel Nelson 0e07bbb877
Fix option names in json parser docs 2018-11-05 17:15:07 -08:00
Daniel Nelson 7693c173fc
Update changelog and readme 2018-11-05 14:58:23 -08:00
Daniel Nelson f533d3b370
Bump version in build.py 2018-11-05 14:55:10 -08:00
Daniel Nelson cb84993b7e
Update telegraf.conf 2018-11-05 14:55:10 -08:00
Daniel Nelson 574fa5a6be
Add support for fetching config over https (#4637) 2018-11-05 14:19:46 -08:00
kelwang 3b0cee346c Add jenkins input plugin (#4289) 2018-11-05 14:19:08 -08:00
Daniel Nelson 7166833364
Update changelog 2018-11-05 13:52:14 -08:00
Daniel Nelson 6e5c2f8bb6
Remove outputs blocking inputs when output is slow (#4938) 2018-11-05 13:34:28 -08:00
Greg 74667cd681 Fix toml struct tag in win_service #4811 (#4936) 2018-11-05 13:33:02 -08:00
Daniel Nelson 6120c65a5a
Update changelog 2018-11-05 13:31:39 -08:00
Greg 9c866553e8 Add scraping for Prometheus endpoint in Kubernetes (#4920) 2018-11-05 13:30:16 -08:00
Daniel Nelson 19a338b922
Update to source tag in nginx_vts readme 2018-11-02 18:23:41 -07:00
Daniel Nelson 715a7cc670
Add nginx_vts plugin to changelog and readme 2018-11-02 18:20:37 -07:00
Aleksejs Sinicins 9a864d11d2 Add nginx-module-vts input plugin. (#3782) 2018-11-02 18:18:40 -07:00
Daniel Nelson 2ff2d03389
Update changelog 2018-11-02 17:58:33 -07:00
Daniel Nelson ad320ac1e0
Remove the time_key from the field values in JSON parser (#4951) 2018-11-02 17:53:45 -07:00
Daniel Nelson 02ad1f46be
Update changelog 2018-11-02 17:53:10 -07:00
Greg ddcbfe79bb Allow connecting to prometheus via unix socket (#4798) 2018-11-02 17:51:40 -07:00
Greg ad5fcf8efb Improve error description in influxdb_v2 output (#4952) 2018-11-02 17:50:55 -07:00
Daniel Nelson 9035505e08
Update changelog 2018-11-02 12:08:05 -07:00
Pontus Rydin 69170d24bc Add LUN to datasource translation in vsphere input (#4934) 2018-11-02 12:05:28 -07:00
Daniel Nelson 2a9bef64ae
Update opensmtpd readme 2018-11-02 11:00:47 -07:00
Daniel Nelson f0f99d18e0
Update ipvs readme 2018-11-02 10:59:14 -07:00
Akshay Moghe 1ec6c8e333 Add metrics for real servers to ipvs (#4929) 2018-11-02 10:48:43 -07:00
Dylan Khor 7fa4db0795 Fix broken link to vSphere METRICS.md (#4945) 2018-11-01 12:25:27 -07:00
Greg Linton d2717f78f2 Set 1.8.3 release date 2018-10-30 15:10:48 -06:00
Beaujolais ! 69d21a5876 Fix version check in postgresql_extensible (#4866) 2018-10-30 15:06:47 -06:00
Greg 0003c8fba7
Don't add unserializable fields to jolokia2 input (#4930) 2018-10-30 15:06:05 -06:00
Greg d0e6da5eba
Handle panic when ipmi_sensor input gets bad input (#4937) 2018-10-30 15:05:41 -06:00
Greg 563b6766ce
Log the correct error in jti_openconfig (#4901) 2018-10-30 15:05:18 -06:00
Daniel Nelson 9fcd279b7e
Run gofmt with Go 1.10 2018-10-29 16:12:37 -07:00
Daniel Nelson f38da90329
Run `make fmt` with Go 1.11 2018-10-29 16:00:54 -07:00
Daniel Nelson 454c3be2d2
Update changelog and readme 2018-10-29 15:59:37 -07:00
James Maidment b24e03b597 Add wireless input plugin (#3847) 2018-10-29 15:57:39 -07:00
Daniel Nelson c304dd98bf
Update changelog 2018-10-25 23:52:15 -07:00
Marcos Nils 742a74dcf0 Use default partition key when tag does not exist in kinesis output (#4904) 2018-10-25 23:51:14 -07:00
Daniel Nelson 170cddc956
Update changelog 2018-10-25 23:39:13 -07:00
Greg 21208d2686 Prevent connection leak by closing unused connections in amqp output (#4924) 2018-10-25 23:37:18 -07:00
Daniel Nelson 133fabc672
Update ipvs readme for style 2018-10-25 12:44:43 -07:00
Daniel Nelson 3821d67083
Update changelog and readme 2018-10-25 12:42:19 -07:00
Daniel Nelson 3374c7583d
Update license of dependencies list 2018-10-25 12:38:27 -07:00
Daniel Nelson ed417882f3
Update Gopkg.lock by running `dep ensure` 2018-10-25 12:26:35 -07:00
Akshay Moghe b88436c9d7 Add IPVS input plugin (#4890) 2018-10-25 12:14:19 -07:00
Daniel Nelson 600b468db2
Update changelog 2018-10-24 15:04:18 -07:00
Mikhail Leonov 67cd2888db Collect additional stats in memcached input (#4914) 2018-10-24 15:02:44 -07:00
Daniel Nelson 8d0ec993c7
Update changelog and add basic nsq input readme 2018-10-22 17:55:40 -07:00
Soulou 12279042d3 Add support for TLS configuration in NSQ input (#3903) 2018-10-22 17:50:32 -07:00
Daniel Nelson 2e59e4dd6c
Add deprecation version for MetricBuffer 2018-10-22 17:16:24 -07:00
Daniel Nelson 100d11f24e
Remove unused cruft 2018-10-22 17:15:57 -07:00
Daniel Nelson 55f3645e8c
Update changelog 2018-10-22 12:57:24 -07:00
Bugagazavr ff98ad710b Add Nginx Plus API input (#4837) 2018-10-22 12:54:50 -07:00
Daniel Nelson 2f7450ec04
Document units of filestat modification time 2018-10-22 12:41:37 -07:00
Trevor Pounds ee056278f5 Enable gofmt code simplification (#4887) 2018-10-19 13:32:54 -07:00
Daniel Nelson 4a311830c6
Update changelog 2018-10-19 11:18:30 -07:00
Samuel-BF 589d0587f6 Add ability to specify bytes options as strings with units (KB, MiB, ...) (#4852) 2018-10-19 11:17:18 -07:00
Trevor Pounds 17360f079c Fix spelling mistakes (#4888) 2018-10-19 11:12:01 -07:00
Trevor Pounds 1ec12ba6ad Add Go 1.11 CI support (#4859) 2018-10-19 11:01:31 -07:00
Daniel Nelson 42483b39ec
Update changelog 2018-10-18 23:39:18 -07:00
Daniel Nelson 1af2cf902c
Add new DN tags to x509_cert readme 2018-10-18 23:34:59 -07:00
Onur Güzel d33116381b Add certificate distinguished name as a tags in x509_cert input (#4873) 2018-10-18 23:32:43 -07:00
Daniel Nelson b9107641ec
Regenerate telegraf.conf 2018-10-18 23:27:27 -07:00
Daniel Nelson f5af2ab799
Remove dead link from logparser sampleconfig and fix syntax (#4883) 2018-10-18 23:26:42 -07:00
Trevor Pounds ecaaa20ed0 Update CI to Go 1.10.4 (#4860) 2018-10-18 15:45:18 -07:00
Daniel Nelson fb435b2fa5
Update changelog 2018-10-18 13:07:33 -07:00
Trevor Pounds 136a5724bd Use DescribeStreamSummary in place of ListStreams in kinesis output (#4864) 2018-10-18 13:05:43 -07:00
Dirk Pahl 7cb75ca979 Add more detailed descriptions for fields in swap input (#4763) 2018-10-18 12:59:03 -07:00
Greg Linton 3202bcdf19 Set 1.8.2 release date 2018-10-17 13:30:11 -06:00
Greg Linton 42fa8f437b Update changelog 2018-10-17 13:02:46 -06:00
Greg 6e8b7e3cc6 Fix panic in logparser input (#4849) 2018-10-17 13:02:03 -06:00
Fred Cox 48745c3171 Fix segfault in x509_cert (#4874) 2018-10-17 12:46:44 -06:00
Greg f10de93da4
Return correct response code on ping input (#4875) 2018-10-17 12:46:00 -06:00
Daniel Nelson cd865cfd22 Lower authorization errors to debug level in mongodb input (#4869) 2018-10-17 12:44:48 -06:00
Daniel Nelson 106f5b5ca8
Update changelog 2018-10-16 12:23:05 -07:00
James Maidment 0b601513a2 Add stackdriver output plugin (#3876) 2018-10-16 11:47:10 -07:00
timhallinflux ef848b4924 Update License (#4865) 2018-10-16 11:05:58 -07:00
Daniel Nelson 36193aea1b
Update changelog 2018-10-15 13:05:46 -07:00
Daniel Nelson 152365ae06
Rework mqtt_consumer connect/reconnect (#4846) 2018-10-15 13:03:52 -07:00
Samuel-BF f259229a35 Improve performance of globpath with some patterns (#4836) 2018-10-12 14:48:11 -07:00
Daniel Nelson a2ac9115b3
Update changelog 2018-10-12 14:45:04 -07:00
Greg 9cc534c624 Prevent panic if fileinfo is nil (#4850) 2018-10-12 14:43:06 -07:00
Daniel Nelson d3078ec9d8
Update changelog 2018-10-12 14:40:51 -07:00
Daniel Nelson 38e644ff12
Support uint fields in aerospike input (#4851) 2018-10-12 14:37:30 -07:00
Daniel Nelson 27bd51b9ac
Use container name from list if no name in container stats (#4854) 2018-10-12 14:36:55 -07:00
Daniel Nelson 37fd99abb9
Comment optional fields in http_listener sample config 2018-10-12 14:31:08 -07:00
Daniel Nelson 2d8cda02df
Rename http_listener to influxdb_listener 2018-10-12 14:31:08 -07:00
Julius Marozas 0bb264536f Add http_listener_v2 input input plugin (#4755) 2018-10-12 13:40:17 -07:00
Erwan Quélin 65f7e988bb Enhancement of README.md for the vSphere input plugin. (#4788) 2018-10-11 15:42:43 -07:00
Daniel Nelson 0049e01d69
Update changelog 2018-10-11 13:08:57 -07:00
Pontus Rydin c117ed624d Fix missing timeouts in vsphere input (#4840) 2018-10-11 13:08:09 -07:00
Daniel Nelson bde73d8328
Update changelog 2018-10-11 12:26:13 -07:00
Kevin Conaway 44fd74d688 Add telegraf version to User-Agent header (#4838)
Header is added in influxdb, influxdb_v2, and http outputs.
2018-10-11 12:25:21 -07:00
kostya-sh 502d9ab499 Fix TestGatheringTimeout test for dns_query plugin (#4842) 2018-10-11 12:15:17 -07:00
Daniel Nelson 8a03a21de2
Place docker files in scripts and update makefile 2018-10-11 00:57:00 -07:00
Jonathan A. Sternberg eece559fe7 Add a Dockerfile that matches influxdata-docker to build images from source (#4793)
The images in influxdata-docker are meant to be built by downloading
official releases. Sometimes, it is useful to build directly from source
when you need an unofficial release. These images are meant to be used
then using multi-stage builds so that it can build from source and then
copy the results to images that match the official counterpart.
2018-10-10 18:38:43 -07:00
kelwang a0eee37ed2 Fix grammar in influxdb_v2 sample config (#4815) 2018-10-10 18:34:32 -07:00
kostya-sh 7344693ca8 Fix hang in dns_query plugin (#4841) 2018-10-10 18:29:33 -07:00
Daniel Nelson a6b5f2c093
Document that taginclude/tagexclude can remove ANY tag (#4847) 2018-10-10 18:06:24 -07:00
Daniel Nelson a777fdda1e
Update changelog 2018-10-10 15:54:37 -07:00
Greg b075686400 Update write path to match updated InfluxDB v2 API (#4844) 2018-10-10 15:53:01 -07:00
Kevin Conaway 7bb219222a Add internal function for telegraf version (#4828) 2018-10-09 13:45:07 -07:00
Daniel Nelson 709eadffc4
Move nvidia-smi Windows docs into config section 2018-10-08 12:57:47 -07:00
Alex 0d2dcc2dc3 Add Windows nvidia-smi bin_path to readme (#4819) 2018-10-08 12:55:33 -07:00
Nicolás Alvarez 3579d1d1d4 Fix formatting in net plugin docs (#4818) 2018-10-05 19:03:15 -07:00
Daniel Nelson 25d40c2849
Update changelog 2018-10-05 15:08:01 -07:00
Mihai Todor f3da717a88 Add entity-body compression to http output (#4807) 2018-10-05 15:06:41 -07:00
Daniel Nelson fafe9d30bf
Update changelog 2018-10-05 14:44:20 -07:00
Kevin Conaway 34caf12db5 Add an option to specify a custom datadog URL (#4800) 2018-10-05 13:51:16 -07:00
Kevin Conaway 422c142463 Use non-allocating field and tag accessors in datadog output (#4803) 2018-10-05 13:48:18 -07:00
Lee Jaeyong 030f944505 Add per-directory file counts in the filecount input (#4752) 2018-10-05 12:55:23 -07:00
pytimer f81696b6b5 Add windows service name lookup to procstat input (#4811) 2018-10-05 11:14:44 -07:00
Daniel Nelson db3967eb97
Add missing processors to readme 2018-10-04 13:24:41 -07:00
Mihai Todor 5d31c04e94 Fix linter contributing guidelines (#4806) 2018-10-04 11:47:49 -07:00
Daniel Nelson 6bf5643351
Update changelog 2018-10-03 18:20:37 -07:00
Rudy a1f9f63463 Add new config for csv column explicit type conversion (#4781) 2018-10-03 18:19:44 -07:00
Rodney Gitzel 9efe7c12f0 Expand documentation of 'qos' configuration in mqtt_consumer input (#4784) 2018-10-03 17:21:30 -07:00
Greg Linton 927cac0074 Update changelog 2018-10-03 17:35:48 -06:00
Daniel Nelson 4898edbb2d
Increment timestamp by one second in multi metric tests
This avoids accidentally triggering tsMod time adjustments in certain
timezones.
2018-10-03 15:11:59 -07:00
Greg Linton e6c98e5ce0 Set 1.8.1 release date 2018-10-03 14:06:04 -06:00
Daniel Nelson c3bab78ea8 Fix case of timezone/grok_timezone options. (#4799) 2018-10-03 13:58:21 -06:00
Daniel Nelson 8500d9345f
Update changelog 2018-10-03 12:04:06 -07:00
Pontus Rydin 21b488a3d3 Use server time to fix missing non-realtime samples in vsphere (#4791) 2018-10-03 12:02:06 -07:00
Daniel Nelson b9c64df5fc
Update changelog 2018-10-01 18:29:00 -07:00
Daniel Nelson 5101f075e1
Skip tags with empty values in cloudwatch output (#4785) 2018-10-01 18:27:44 -07:00
Daniel Nelson 798ce7e88f
Update changelog 2018-10-01 17:40:28 -07:00
Lee Jaeyong 86b2145272 Add support for IPv6 in the ping plugin (#4703) 2018-10-01 17:38:13 -07:00
Daniel Nelson 2bb7ddd0b6
Update changelog 2018-10-01 16:16:19 -07:00
Greg 11baebd6c9 Unify http_listener error response with influxdb (#4766) 2018-10-01 16:14:54 -07:00
Pontus Rydin 797fbf7215 Add UUID to VMs in vSphere input (#4769) 2018-10-01 16:13:32 -07:00
Daniel Nelson 5ec50b28ed
Update syslog documentation 2018-10-01 16:01:18 -07:00
Daniel Nelson a63c0dda94
Add not about RFC3164 to syslog input readme 2018-10-01 12:02:28 -07:00
Daniel Nelson f712e63a89
Add full list of parsers and serializers to README 2018-10-01 11:01:29 -07:00
Daniel Nelson 07c5f39c5b
Add wavefront parser to 1.8 changelog 2018-10-01 10:55:50 -07:00
Daniel Nelson 7553c8fd13
Remove metric recreation when filtering (#4767) 2018-09-28 14:48:20 -07:00
Daniel Nelson cc64b14ab4
Update changelog 2018-09-27 18:42:13 -07:00
Lee Jaeyong 6b7d64f1d6 Add ability to define a custom service name when installing as a Windows service (#4753) 2018-09-27 18:41:24 -07:00
Daniel Nelson 008ee617cb
Update changelog. 2018-09-27 17:55:31 -07:00
Pontus Rydin c369c1989f Fix panic during network error in vsphere input (#4765) 2018-09-27 17:29:17 -07:00
Lee Jaeyong 7d97ae6421 Query servers in parallel in dns_query input (#4754) 2018-09-27 17:26:36 -07:00
Daniel Nelson af0ef55c02
Fix license type for go-ole 2018-09-27 10:10:27 -07:00
Daniel Nelson c47a75ae53
Update changelog 2018-09-26 19:31:43 -07:00
Bo Zhao 8cbd39501b Add replace function to strings processor (#4686) 2018-09-26 19:30:02 -07:00
Daniel Nelson 0a8301ec3c
Update changelog 2018-09-26 19:27:31 -07:00
Greg 2e2e998ebd Don't add tags with empty values to opentsdb output (#4751) 2018-09-26 19:26:23 -07:00
Daniel Nelson d70c80722d
Update changelog 2018-09-26 19:17:55 -07:00
Onur Güzel a21524c6b3 Add hostname to TLS config for SNI support (#4747) 2018-09-26 19:16:39 -07:00
Lee Jaeyong a086ea6989 Use time.AfterFunc to avoid need for goroutine in WaitTimeout (#4702) 2018-09-26 19:15:38 -07:00
Daniel Nelson 358920e6ba
Update changelog 2018-09-26 19:09:53 -07:00
Daniel Nelson 54e61aa78a
Use FieldList in basicstats to improve performance (#4741) 2018-09-26 19:08:46 -07:00
Daniel Nelson 38e5e103ce
Clarify platform support for temp input (#4756) 2018-09-26 19:05:55 -07:00
Daniel Nelson 74e9d1f078
Update changelog 2018-09-26 19:04:21 -07:00
Tracy Boggiano 69f6612c2a Fix hardware_type may be truncated in sqlserver input (#4750) 2018-09-26 19:02:29 -07:00
Daniel Nelson f72e52528d
Fix dep check errors in Gopkg.lock 2018-09-24 15:35:33 -07:00
JP Mens 05c9197aaf Fix grammar in exec input readme (#4740) 2018-09-24 13:41:12 -07:00
JP Mens 1a437e5690 Clarify monitoring backend provenance (#4739) 2018-09-24 12:13:36 -07:00
Daniel Nelson 54b7262228
Update changelog 2018-09-21 16:11:36 -07:00
Greg 4c9c31c34f Fix panic if JSONNameKey is not found (#4735) 2018-09-21 15:47:41 -07:00
Daniel Nelson 146a30e065
Clarify output format for splunkmetric 2018-09-21 15:12:49 -07:00
Greg Linton d07bbe24e3 Update link in graphite serializer README 2018-09-21 15:05:36 -07:00
Daniel Nelson 403ed001bf
Add version to the influxdb output plugins readme 2018-09-21 13:07:12 -07:00
Gunnar 85db54c2f2 Add note about docker socket permissions (#4724) 2018-09-21 12:39:37 -07:00
Greg e08c975fbd Fix rune conversion in csv parser (#4728) 2018-09-21 12:39:05 -07:00
Tracy Boggiano adf2668c1d Fix forwarded records and offline state in sqlserver input (#4730) 2018-09-21 12:18:27 -07:00
Greg 3349b53905 Rename vsphere markdown files (#4733) 2018-09-21 11:17:09 -07:00
Simon Murray a55e141264 Use typed struct instead of type assertions in Ceph Input Plugin (#4721) 2018-09-20 15:05:47 -07:00
Daniel Nelson fe0b964d3e
Document that proc/agg/outputs are not run as part of --test 2018-09-20 15:00:05 -07:00
Daniel Nelson 1e3e28428d
Clean up csv_trim_space after building parser config 2018-09-20 12:55:58 -07:00
Lee Jaeyong dfe8e3b473 Fix config file types of csv_skip_rows and csv_skip_columns (#4726) 2018-09-20 12:43:39 -07:00
Leandro Piccilli 820d1afa2e Fix changelog and add Kibana input plugin to README (#4718) 2018-09-19 18:23:58 -07:00
Daniel Nelson dab6ed7d8f
Update sample telegraf.conf 2018-09-18 18:15:10 -07:00
Daniel Nelson a75c789e3e
Remove warning not to set flush_interval below interval 2018-09-18 18:13:20 -07:00
Daniel Nelson 448f92be1d
Update changelog 2018-09-18 09:25:38 -07:00
Daniel Nelson b5299f4cc4
Fix cleanup of csv parser options, use per file parser (#4712) 2018-09-18 09:23:45 -07:00
Greg 1d76343422 Enhance performance data for nagios parser (#4691) 2018-09-18 09:08:46 -07:00
Greg d3ad591481 Fix null value crash in postgresql_extensible input (#4689) 2018-09-18 09:08:13 -07:00
Daniel Nelson f05fdde48b
Remove the startup authentication check from the cloudwatch output (#4695) 2018-09-18 09:07:28 -07:00
Daniel Nelson 77f669344b
Exclude Windows WMI tests from -short tests 2018-09-17 18:00:12 -07:00
Lee Jaeyong 44c2435f64 Support tailing files created after startup in tail input (#4704) 2018-09-17 16:20:50 -07:00
Daniel Nelson 41d528c8ce
Split parser/serializer docs (#4690) 2018-09-17 11:45:08 -07:00
Greg Linton 96f3d7def4 Update telegraf.conf 2018-09-12 16:08:19 -06:00
Daniel Nelson 634762b739
Update changelog 2018-09-12 14:50:53 -07:00
Greg 1fdf032db0 Add influx v2 output plugin (#4645) 2018-09-12 14:48:59 -07:00
Gunnar Aasen 71aaa844f5 Update Azure Monitor README 2018-09-12 12:05:20 -07:00
Daniel Nelson 37fefa300b
Remove non-existant option from sample config 2018-09-12 11:53:25 -07:00
Daniel Nelson 436dfdb44a
Update changelog 2018-09-12 11:48:54 -07:00
dangeist 6361fd3774 Allow alternate binaries for iptables input plugin. (#4682) 2018-09-12 11:47:45 -07:00
Daniel Nelson bcb65a5ee8
Update changelog 2018-09-12 11:40:43 -07:00
Thanabodee Charoenpiriyakij 9c9a5f8438 Use sarama version 1.18.0 to support Kafka 2.0 (#4676) 2018-09-12 11:39:21 -07:00
Pontus Rydin a84ca7bcdb Remove call to View.Destroy() that causes errors to be logged by vCenter (#4684) 2018-09-12 11:06:38 -07:00
Greg 9bd14b283f Add support for couchdb 2.0+ API (#4654) 2018-09-12 01:03:59 -07:00
Daniel Nelson 1aa969aabc
Use separate mutexes for write and aggregation in running_output 2018-09-12 00:23:50 -07:00
Daniel Nelson 94566098cc
Update changelog 2018-09-11 18:51:58 -07:00
Mark Wilkinson - m82labs b43165f2d8 Improve Azure Managed Instance support + more in sqlserver input (#4642) 2018-09-11 18:47:30 -07:00
Daniel Nelson 6a60e3f9ff
Update changelog 2018-09-11 16:08:22 -07:00
Daniel Nelson 4c571d2cfa
Log access denied opening a service at debug level (#4674) 2018-09-11 16:04:16 -07:00
Daniel Nelson eff7f0f083
Use operation subtables in enum and rename processors (#4672) 2018-09-11 16:03:47 -07:00
Daniel Nelson 9d72d078a3
Add new fields to mem input readme 2018-09-11 15:15:45 -07:00
Daniel Nelson d4a74337fa
Update changelog 2018-09-11 15:00:21 -07:00
Jon McKenzie 03a119e322 Align metrics window to interval in cloudwatch input (#4667) 2018-09-11 14:59:39 -07:00
Daniel Nelson 51bb937fdd
Update changelog and readme 2018-09-11 14:57:07 -07:00
Pontus Rydin 5f3c331f79 Add input plugin for VMware vSphere (#4141) 2018-09-11 14:53:46 -07:00
Daniel Nelson fa1c572096
Add link to line protocol in data fromat docs 2018-09-11 13:52:13 -07:00
Daniel Nelson 85c004bb05
Fix documentation link 2018-09-11 13:38:57 -07:00
Daniel Nelson 5444613228
Update changelog 2018-09-11 13:22:07 -07:00
Lance O'Connor c80aab0445 Add Splunk Metrics serializer (#4339) 2018-09-11 13:01:08 -07:00
Jesse e85a9e0956 Add Zookeeper Jolokia2 example config (#4659) 2018-09-10 19:32:12 -07:00
Daniel Nelson c0485a50ee
Update changelog 2018-09-10 16:46:39 -07:00
Greg ed28cfb9f6 Add means to specify server password for redis input (#4669) 2018-09-10 16:45:36 -07:00
Daniel Nelson 23a8498963
Fix locking if output is an AggregatingOutput 2018-09-10 15:14:14 -07:00
Daniel Nelson 3618f5dc98
Update changelog 2018-09-10 12:34:05 -07:00
Greg eb36e8f496 Add options for basic auth to haproxy input (#4657) 2018-09-10 11:56:42 -07:00
Daniel Nelson 1ca17652cd
Fix parsing and documentation for json_string_fields (#4656) 2018-09-10 11:55:08 -07:00
Greg 4ef058c120 Document all supported cli arguments (#4655) 2018-09-10 11:53:04 -07:00
pytimer 25f9cc0b8d Add temp input plugin (#4411) 2018-09-10 11:52:15 -07:00
Alexander Shepelin 69100f60b8 Add Beanstalkd input plugin (#4272) 2018-09-10 11:51:03 -07:00
Daniel Nelson 710c101fe0
Undeprecate logparser
Until dynamic file tailing can be added to the tail plugin.
2018-09-07 16:13:46 -07:00
Greg Linton 5b5b2e3b39 Update changelog 2018-09-06 18:47:07 -06:00
Greg e9eeda555e
Reset/flush saved contents from bad metric (#4646) 2018-09-06 18:45:40 -06:00
David Reniz cd4c4e7fbd Added Unix epoch timestamp support for JSON parser (#4633) 2018-09-06 18:44:33 -06:00
Daniel Nelson 50a82c6957
Update changelog 2018-09-06 10:55:05 -07:00
Vikrant 091af7e645 Add OAuth2 support to HTTP output plugin (#4536) 2018-09-06 10:54:05 -07:00
Daniel Nelson 54f28eefa9
Make dep check happy 2018-09-05 18:47:13 -07:00
Daniel Nelson d73fe7bced
Update changelog 2018-09-05 15:17:50 -07:00
Daniel Nelson 433454aa3c
Fix go fmt issue 2018-09-05 15:15:54 -07:00
bsmaldon d6467e966f Add strings processor (#4476) 2018-09-05 15:13:29 -07:00
Daniel Nelson 12ff8bb5e0
Fix link in readme 2018-09-05 14:58:13 -07:00
Daniel Nelson 9ec7f749aa
Update changelog and readme 2018-09-05 14:57:20 -07:00
Gunnar f70d6519e7 Add Azure Monitor output plugin (#4089) 2018-09-05 14:50:32 -07:00
Andrew a47149765e Add queue_durability parameter to amqp_consumer input (#4628) 2018-09-05 14:27:52 -07:00
Olli Janatuinen 13029a1fa4 Corrected application insights example config (#4635) 2018-09-05 14:19:56 -07:00
Daniel Nelson c7e2945a46
Fix exchange_durability sample config in amqp output 2018-09-04 13:21:58 -07:00
Daniel Nelson 87b8141d13
Make influxdb output log message style more consistent 2018-09-04 13:19:54 -07:00
Daniel Nelson ab058b396f
Update changelog 2018-09-01 19:01:02 -07:00
Vlasta Hajek 90b4a1e435 Fix instance and object name in performance counters with backslashes (#4572) 2018-09-01 18:59:03 -07:00
Daniel Nelson ca9505a3b1
Update ping input readme 2018-08-31 13:59:30 -07:00
Daniel Nelson e7b50384cf
Update changelog 2018-08-29 19:12:38 -07:00
Ayrdrie 5420e13f14 Fix divide by zero in logparser input (#4338) 2018-08-29 19:11:13 -07:00
Daniel Nelson f6b08df163
Set 1.7.4 release date 2018-08-29 13:20:49 -07:00
Daniel Nelson 687ef23596
Update changelog 2018-08-29 12:31:43 -07:00
Daniel Nelson 7b05993a6e
Fix sending of basic auth credentials in http output (#4609) 2018-08-29 12:28:29 -07:00
Daniel Nelson 8b2d64585d
Use the correct GOARM value in the armel package (#4608) 2018-08-29 12:28:00 -07:00
Daniel Nelson 59a64651f1
Update changelog 2018-08-29 11:43:14 -07:00
Daniel Nelson fed959531c
Remove timeout deadline for udp syslog input. (#4605) 2018-08-29 11:39:10 -07:00
Daniel Nelson 1e3edbc55d
Ensure channel closed if an error occurs in cgroup input (#4606) 2018-08-29 11:38:40 -07:00
Daniel Nelson 3adcc3a93d
Update changelog 2018-08-27 14:48:09 -07:00
Daniel Nelson e2b1a6bc89
Add read_buffer_size option to statsd input (#4598) 2018-08-27 14:47:04 -07:00
Daniel Nelson 61e5d500ba
Add metric requirements to docker README 2018-08-27 13:06:27 -07:00
Daniel Nelson d3061520f4
Update changelog 2018-08-24 16:41:51 -07:00
maxunt 889745a112 Add csv parser (#4439) 2018-08-24 16:40:41 -07:00
Daniel Nelson 80346b2e93
Update prometheus output sample config and README 2018-08-24 16:37:11 -07:00
Daniel Nelson ff66a9de69
Update changelog 2018-08-24 14:59:51 -07:00
Leandro Piccilli 3d84cee872 Add Kibana input plugin (#4585) 2018-08-24 14:58:41 -07:00
Daniel Nelson 1beb3e73e6
Update changelog 2018-08-24 10:23:15 -07:00
Tracy Boggiano 0785821a80 Add forwarded records to sqlserver input (#4571) 2018-08-23 16:59:21 -07:00
Daniel Nelson c827017711
Update changelog 2018-08-23 13:52:55 -07:00
prashanthjbabu 14d9ef4f0c Add result_code value for errors running ping command (#4550) 2018-08-23 13:50:19 -07:00
Daniel Nelson d676381a04
Update changelog 2018-08-23 13:32:18 -07:00
rbrendler 16a6feda4a Fix burrow_group.offset calculation for Burrow plugin (#4584) 2018-08-23 13:30:59 -07:00
Daniel Nelson 36959abce9
Fix toml error in converter processor README 2018-08-23 13:11:39 -07:00
Daniel Nelson 2b026374ec
Update kafka_consumer sample config in README 2018-08-23 11:46:41 -07:00
Daniel Nelson 545b59f12e
Update changelog 2018-08-22 19:28:47 -07:00
maxunt 2729378b7f Add name, time, path and string field options to JSON parser (#4351) 2018-08-22 19:26:48 -07:00
Daniel Nelson d6d6539e26
Update changelog 2018-08-22 19:13:46 -07:00
LABOUARDY Mohamed e72fab7cbe Add Icinga2 input plugin (#4559) 2018-08-22 19:10:40 -07:00
Daniel Nelson a8496f87b2
Fix example input and output in parser processor docs 2018-08-22 18:38:07 -07:00
Daniel Nelson 2ac06f5df0
Update changelog 2018-08-22 16:31:23 -07:00
Ayrdrie 9f8de25e0e Add parser processor (#4551) 2018-08-22 16:28:50 -07:00
Ayrdrie e893dc38a2 Add logfmt parser (#4539) 2018-08-22 13:55:41 -07:00
Daniel Nelson 430d7103da
Update changelog 2018-08-21 12:45:13 -07:00
Daniel Nelson d2cf9a7157
Add support for static and random routing keys in kafka output (#4579) 2018-08-21 12:44:10 -07:00
estk edb6e1f655 Implement a lock based ring buffer for internal/buffer. (#3377) 2018-08-20 13:47:48 -07:00
Daniel Nelson 036981c3b5
Update changelog 2018-08-17 13:52:10 -07:00
Daniel Nelson 886d8cc840
Drop message batches in kafka output if too large (#4565) 2018-08-17 13:51:21 -07:00
Daniel Nelson 1fafa616d7
Update changelog 2018-08-17 13:46:35 -07:00
maxunt 9e0eb0c0e0 Add ability to set measurement from matched text in grok parser (#4433) 2018-08-17 13:45:22 -07:00
Daniel Nelson 34614582a7
Use snake case in kafka output config 2018-08-15 14:12:22 -07:00
Mauro Murari 61513c64b8
Add message 'max_bytes' configuration (#4537) 2018-08-15 14:05:26 -07:00
Greg Linton 2395413cc8 Update changelog 2018-08-14 15:56:48 -06:00
Daniel Nelson 6e92df45e7 Use dep v0.5.0 (#4542) 2018-08-14 15:55:38 -06:00
Greg Linton b29dd260b2 Update changelog 2018-08-14 14:54:19 -06:00
Adrián López e50b0c17ad Document how to parse telegraf logs (#4285) 2018-08-14 14:53:25 -06:00
Greg Linton 027016aea2 Update changelog 2018-08-14 14:41:24 -06:00
Daniel Nelson fa30f568ec Skip unserializable metric in influxDB UDP output (#4534) 2018-08-14 14:36:29 -06:00
dupondje 763dc6990c Fix powerdns input test (#4554) 2018-08-14 14:35:39 -06:00
Greg Linton 3268937c47 Update changelog 2018-08-13 17:47:09 -06:00
shrug42 6ad5089361 Add gopsutil meminfo fields to mem plugin (#4546) 2018-08-13 17:41:23 -06:00
Harry Schmidt 7ca7f22e50 Add rename processor (#4528) 2018-08-13 17:38:46 -06:00
Pierre Tessier 6454319062 Add Wavefront parser (#4402) 2018-08-13 17:37:06 -06:00
LABOUARDY Mohamed b9ff1d042b Add ActiveMQ input plugin (#2689) 2018-08-13 17:34:59 -06:00
Daniel Nelson 31e1c04ed0
Set version to unknown if not set (#4521) 2018-08-12 16:52:35 -07:00
Lee Jaeyong 98a785b077 Remove duplicate "Network Interface" section from win_perf_counters config (#4547) 2018-08-12 16:32:07 -07:00
Daniel Nelson 035e6a6f78
Skip lines that do not match in grok parser 2018-08-10 18:11:32 -07:00
Daniel Nelson 22b3bc4f8e
Remove references to logparser from the grok documentation 2018-08-10 18:11:12 -07:00
Daniel Nelson 2a4267ed72
Set 1.7.3 release date 2018-08-07 17:17:09 -07:00
Daniel Nelson b0b52692e9
Update changelog 2018-08-07 11:30:55 -07:00
Daniel Nelson feb75d493a
Lock buffer when adding metrics (#4514)
This function is not thread-safe but is currently used by multiple
goroutines in RunningOutput
2018-08-07 11:22:10 -07:00
Daniel Nelson 4dfb80d0fc
Fix error message if URL is unparseable in influxdb output (#4511) 2018-08-07 11:07:46 -07:00
Daniel Nelson a5409d7cf2
Use explicit zpool properties to fix parse error on FreeBSD 11.2 (#4510) 2018-08-07 11:07:07 -07:00
Greg Linton 0759c8b22b Update changelog 2018-08-01 16:45:52 -06:00
Loïc Blot 429d14101a Add pgbouncer input plugin (#3918) 2018-08-01 16:44:10 -06:00
dupondje e1160c26bc Add ip restriction for the prometheus_client output (#4431) 2018-08-01 16:43:34 -06:00
david7482 199841a820 Support StatisticValues in cloudwatch output plugin (#4364) 2018-08-01 16:43:17 -06:00
Greg Linton 66528354a5 Update changelog 2018-08-01 16:40:55 -06:00
Shanshi Shi e538433959 Preserve metric type when using filters in output plugins (#4481) 2018-08-01 16:39:54 -06:00
Greg 4fff507ad6
Skip bad entries on interrupt input (#4497) 2018-08-01 16:39:19 -06:00
EthanHur 2adfccc975 Update netstat link in README.md (#4494) 2018-08-01 16:37:52 -06:00
Greg Linton d7db4be5ef Update changelog 2018-07-31 18:16:51 -06:00
Daniel Nelson 6a32a7d85b Keep leading whitespace for messages in syslog input (#4498) 2018-07-31 18:15:42 -06:00
Greg Linton ddf2d691e9 Update changelog 2018-07-31 17:57:54 -06:00
Jonathan G b93460dd06 Split multiple sensor keys in ipmi input (#4450) 2018-07-31 17:56:03 -06:00
Greg Linton efe61eeb73 Update changelog 2018-07-31 16:10:01 -06:00
Daniel Nelson f4032fc78d Add support for lz4 compression to kafka output (#4492) 2018-07-31 16:09:30 -06:00
Daniel Nelson 943dcc0c49 Send all messages before waiting for results in kafka output (#4491) 2018-07-31 16:08:04 -06:00
Daniel Nelson 93ed28e745 Add support for configuring an AWS endpoint_url (#4485) 2018-07-31 16:07:21 -06:00
Sebastian Boehm 228efe9a1d Add filecount input plugin (#4363) 2018-07-31 16:05:55 -06:00
Greg Linton 5c1ba5e377 Update changelog 2018-07-30 13:32:16 -06:00
wegel 06d5501d92 Add IPSIpAddress syntax to ipaddr conversion in snmp plugin (#4471) 2018-07-30 13:31:23 -06:00
Greg Linton 3d1c650c54 Update changelog 2018-07-30 13:14:55 -06:00
Jiri Tyr a897b84049 Adding x509_cert input plugin (#3768) 2018-07-30 13:12:45 -06:00
Greg 019d265167 Add dev/telegraf.conf for docker, exec, and procstat input (#4460) 2018-07-27 18:39:37 -07:00
maxunt 96cb0aaea0 Fix unit tests on Darwin (#4458) 2018-07-27 18:29:54 -07:00
Daniel Nelson 83c4b81abe
Copy grok documentation from logparser to data format doc (#4475) 2018-07-27 18:28:33 -07:00
Daniel Nelson 4e1a253633
Link to SampleConfig documentation in contributing guide. 2018-07-26 15:52:17 -07:00
Greg 6e245b5483
Update docker input plugin to use new library (#4440) 2018-07-25 17:10:28 -06:00
Chris Goller 0a4f827f9b Provide function to test metric equality (#4464) 2018-07-24 19:29:00 -07:00
Daniel Nelson 9051ea9dc0 Require dep to be installed before building (#4461) 2018-07-24 15:57:24 -06:00
Daniel Nelson d95824a9c1
Downgrade max aerospike client version to 1.27.0 (#4462)
This is currently the most recent version without the memory leak issue.
2018-07-24 10:43:18 -07:00
Greg Linton be2ea90503 Update changelog 2018-07-23 12:03:21 -06:00
david7482 9657870258 Improve cloudwatch output performance (#4320) 2018-07-23 12:00:35 -06:00
Daniel Nelson f37b503f68
Set 1.7.2 release date 2018-07-18 13:58:38 -07:00
Greg Linton eb64617e37 Update changelog 2018-07-17 17:03:15 -06:00
Mathevet julien 4c2786298d Exclude cached memory on docker input plugin (#4383) 2018-07-17 17:02:03 -06:00
Greg Linton f363e70f33 Update changelog 2018-07-17 16:48:41 -06:00
Greg 69d22afcc2
Reset read deadline for syslog input (#4369) 2018-07-17 16:47:09 -06:00
Greg Linton 1cc300710c Update changelog 2018-07-17 16:00:47 -06:00
Greg b75d66ff41
Return error if NewRequest fails in http output (#4429) 2018-07-17 15:54:10 -06:00
dom 79e2754c89 fix url 2018-07-17 00:40:45 +02:00
dom 9aa6cb2013 import rss and twitter plugin 2018-07-17 00:29:37 +02:00
Daniel Nelson 3218ed7e0d
Add logparser deprecation notice to release notes 2018-07-16 15:10:11 -07:00
Daniel Nelson 5f8c9838ac
Update changelog 2018-07-13 23:25:35 -07:00
Daniel Nelson 14d25af4d4
Remove DS_Store files 2018-07-13 23:23:47 -07:00
maxunt 774a9f0492 Add file input plugin and grok parser (#4332) 2018-07-13 23:22:59 -07:00
Daniel Nelson 3f87e5bf57
Update changelog 2018-07-13 22:56:14 -07:00
Daniel Nelson 6d876c18e0
Fix metric can have duplicate field (#4422) 2018-07-13 22:54:34 -07:00
Daniel Nelson af98d070f5
Update changelog 2018-07-13 14:15:21 -07:00
Daniel Nelson 411b26bb1f
Fix output format of printer processor (#4417) 2018-07-13 14:14:18 -07:00
Daniel Nelson 49a5dea536
Update client_id in kafka input and output readme 2018-07-13 14:00:25 -07:00
Daniel Nelson 257e715b42
Update changelog 2018-07-13 13:58:39 -07:00
Rion c8f00030dd Add support for setting kafka client id (#4418) 2018-07-13 13:53:56 -07:00
Greg 0da94a1b3c Fix incorrect container name gathered in docker input (#4391) 2018-07-12 18:41:49 -07:00
Daniel Nelson 8ff63a4b79
Merge service inputs with main input listing 2018-07-12 12:26:46 -07:00
Daniel Nelson a5c4cac8f3
Fix typesetting issue in README 2018-07-12 12:25:43 -07:00
Daniel Nelson 0812ffdace
Update links to system plugins 2018-07-12 12:25:04 -07:00
Daniel Nelson 5150d565d7
Fix several build issues (#4412) 2018-07-11 22:57:46 -07:00
Daniel Nelson 9e77bfc3ed
Fix potential deadlock by not calling AddMetric concurrently (#4404) 2018-07-11 17:33:27 -07:00
Daniel Nelson fb7c1d775b
Update changelog 2018-07-11 17:31:11 -07:00
maxunt 9ebf16636d Add parse_multivalue to collectd parser (#4403) 2018-07-11 17:29:23 -07:00
Steve Domino 7b73b0db3a Moved system package inputs out to top level (#4406) 2018-07-11 16:43:49 -07:00
dom 507fc8acf1 optimize timestamps 2018-07-11 11:31:20 +02:00
dom b67ac078b8 fix race condition with timestamp 2018-07-11 11:29:53 +02:00
Daniel Nelson 9a14d1f074
Fix quoting in nvidia_smi input 2018-07-10 20:20:44 -07:00
dom bcaf0e910c add initial version of rss plugin 2018-07-10 11:01:26 +02:00
Daniel Nelson 7591a50d52
Add path tag to tail tests 2018-07-09 17:39:51 -07:00
dom ca10d4205b add initial version of twitter plugin 2018-07-08 20:21:31 +02:00
Daniel Nelson 9491cd91cd
Fix data race with default tags (#4395) 2018-07-07 00:54:21 -07:00
Daniel Nelson 6a2e2bfd7c
Add troubleshooting docs to cloudwatch input 2018-07-07 00:21:21 -07:00
Daniel Nelson 25ceb7f5a7
Update changelog 2018-07-06 16:16:07 -07:00
Alexander Shepelin 35d2f90d6c Don't set values when pattern doesn't match in regex processor (#4396) 2018-07-06 16:13:46 -07:00
Daniel Nelson a0ece79191
Update changelog 2018-07-05 14:40:22 -07:00
Greg a82b4fbd96 Use 'localhost' as default 'server' tag in zookeeper input (#4387) 2018-07-05 14:37:13 -07:00
Daniel Nelson f5f9fa2095
Update changelog 2018-07-05 13:57:24 -07:00
Greg b5cdeeb300 Add user tag to procstat input (#4386) 2018-07-05 13:56:41 -07:00
Daniel Nelson bf076dab73
Adjust enum readme and sample config style 2018-07-03 16:10:55 -07:00
Daniel Nelson 500e136844
Update changelog 2018-07-03 15:34:29 -07:00
Karsten Schnitter 515ff03364 Add Enum Processor (#3772) 2018-07-03 15:32:52 -07:00
Daniel Nelson c389a68f19
Fix grammar in swap readme 2018-07-03 15:13:17 -07:00
Daniel Nelson d69f833917
Update changelog 2018-07-03 14:12:20 -07:00
Ayrdrie 9106011f58 Add mongo document and connection metrics (#4362) 2018-07-03 14:09:20 -07:00
Daniel Nelson b5abf2c577
Set 1.7.1 release date 2018-07-03 13:47:53 -07:00
Daniel Nelson 38c0628190
Update changelog 2018-07-03 11:37:32 -07:00
Daniel Nelson 0ef12f87af
Add mutex to prevent handler precision from changing during parse (#4373) 2018-07-03 11:35:39 -07:00
Canux cba87212d3 Use non_negative_derivative in diskio example queries (#4370) 2018-07-03 11:03:16 -07:00
Daniel Nelson c5fa6729d3
Update changelog 2018-07-02 19:08:14 -07:00
Greg 4e440b36fd Gather IPMI metrics concurrently from list of servers (#4352) 2018-07-02 19:06:57 -07:00
maxunt 2da223390a Add procstat_lookup metric to readme (#4337) 2018-07-02 19:05:17 -07:00
Ayrdrie 9fe90d71f4 Add plugin development framework (#4324) 2018-07-02 16:34:40 -07:00
Daniel Nelson 2ee374cf50
Deprecate camelCase config options in opentsdb output 2018-07-02 15:10:10 -07:00
Daniel Nelson 220e6c5361
Update changelog 2018-07-02 15:06:35 -07:00
Jacob Lisi c7cfc2ec39 Add http path configuration for OpenTSDB output (#4347) 2018-07-02 15:04:01 -07:00
Greg Linton 9bc63c2f7a Improve CircleCI dependency caching 2018-07-02 14:23:29 -06:00
Daniel Nelson 56ea2eb57b
Update changelog 2018-07-02 13:10:39 -07:00
Daniel Nelson 210dfcee83
Fix field name typo in swap documentation 2018-07-02 13:08:43 -07:00
Steve Domino b7a02c73b3 Document swap input plugin and move to separate file (#4342) 2018-07-02 13:07:57 -07:00
Daniel Nelson 73e2e6afc5
Update changelog 2018-07-02 11:58:14 -07:00
Pierrick Brossin b2586a7eaf Add energy and power field and device id tag to fibaro input (#4343) 2018-07-02 11:57:05 -07:00
Daniel Nelson abfbf4f4f2
Update changelog 2018-06-29 19:08:09 -07:00
Adrián López 85eacf268b Fix minmax and basicstats aggregators to use uint64 (#4294) 2018-06-29 19:07:08 -07:00
Daniel Nelson 1a781a5851
Update changelog 2018-06-29 19:02:53 -07:00
Vlasta Hajek ed2bc1151b Allow use of counter time in win perf counters (#4267) 2018-06-29 19:01:28 -07:00
Daniel Nelson b2e972cd81
Update changelog 2018-06-29 18:18:58 -07:00
Greg 54056f3808 Handle mysql input variations in the user_statistics collecting (#4306) 2018-06-29 18:16:52 -07:00
Daniel Nelson 5aa199e2b3
Update changelog 2018-06-29 18:06:45 -07:00
Daniel Nelson 9bd5e10133
Fix syslog timestamp parsing with single digit day of month (#4334) 2018-06-29 18:05:46 -07:00
Daniel Nelson beaef8e3da
Update changelog 2018-06-29 16:20:03 -07:00
maxunt a10262c5d6 Add log message when tail is added or removed from a file (#4322) 2018-06-29 16:15:33 -07:00
Daniel Nelson 8bf18d6ac7
Fix name of hadoop example config 2018-06-29 16:07:30 -07:00
Daniel Nelson 23523ffd10
Document path tag in tail input 2018-06-21 18:02:34 -07:00
Daniel Nelson 523d761f34
Update changelog 2018-06-21 17:59:31 -07:00
JongHyok Lee 3f28add025 Added path tag to tail input plugin (#4292) 2018-06-21 17:55:54 -07:00
Daniel Nelson ee6e4b0afd
Run windows tests with -short 2018-06-21 17:46:58 -07:00
Patrick Hemmer 16454e25ba Fix postfix input handling of multi-level queues (#4333) 2018-06-21 16:01:38 -07:00
Daniel Nelson 2a1feb6db9
Update changelog 2018-06-21 14:20:35 -07:00
Ayrdrie 61e197d254 Add support for comma in logparser timestamp format (#4311) 2018-06-21 14:19:15 -07:00
Greg 1bd41ef3ce Update vendoring to dep from gdm (#4314) 2018-06-19 11:55:38 -07:00
Daniel Nelson d7c756e9ff
Update changelog 2018-06-19 11:48:08 -07:00
maxunt 39206677f8 Add new measurement with results of pgrep lookup to procstat input (#4307) 2018-06-19 11:47:13 -07:00
Vitalii Solodilov 6c4032071f Improvement of RabbitMQ plugin #3025 #3252
* new metrics:
  * unroutable messages
  * node uptime
  * gc metrics
  * mnesia metrics
  * node healthcheck
  * IO metrics
* refactoring tests:
  * moved the json examples to a separate files
  * check metric values

Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
2018-06-19 13:12:23 +04:00
Daniel Nelson b66eb2fec7
Update changelog 2018-06-18 18:09:31 -07:00
Piotr Popieluch 3ad10283ef Add valuecounter aggregator plugin (#3523) 2018-06-18 18:06:11 -07:00
Daniel Nelson 84e9a5c97e
Update changelog 2018-06-18 15:40:00 -07:00
Daniel Nelson c98b58dacc
Update docker input documentation for container status 2018-06-18 15:38:21 -07:00
prashanthjbabu 98d86df797 Add container status tag to docker input (#4259) 2018-06-18 15:33:14 -07:00
Daniel Nelson 4e9e57e210
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 7781507c01
Update changelog 2018-06-14 13:18:31 -07:00
maxunt 8482c40a91 Fix selection of tags under nested objects in the JSON parser (#4284) 2018-06-14 13:17:32 -07:00
Daniel Nelson 0dda9b8319
Update changelog 2018-06-13 13:50:43 -07:00
Arkady Emelyanov 4e69d10ff7 Add owner tag on partitions in burrow input (#4281) 2018-06-13 13:05:27 -07:00
Daniel Nelson f689463e8e
Use linux/unix name only in `make install`
closes: #4278
2018-06-12 18:37:50 -07:00
Vlasta Hajek f217d12de5
Fix grammar issues in win_perf_counters readme 2018-06-12 16:54:48 -07:00
Daniel Nelson 886795063e
Fix typo 2018-06-12 16:50:14 -07:00
Daniel Nelson 30dc95fa78
Update changelog 2018-06-12 16:46:27 -07:00
Daniel Nelson 40fac0a9b4
Treat sigterm as a clean shutdown signal (#4277) 2018-06-12 16:44:04 -07:00
Daniel Nelson 36df4c5ae5
Fix grammar in converter processor documentation 2018-06-12 16:12:08 -07:00
marcv81 70ffed3a4d Fixed typos in nvidia_smi plugin doc (#4261) 2018-06-12 14:28:56 -07:00
Daniel Nelson bf59bcf721
Update changelog 2018-06-12 13:57:00 -07:00
Sambhav Kothari a789f97feb Add support for solr 7 to the solr input (#4271) 2018-06-12 13:56:13 -07:00
Daniel Nelson d2e00a3205
Set 1.7.0 release date 2018-06-12 11:41:58 -07:00
Daniel Nelson daddd8bbac
Use nats-io/go-nats instead of nats-io/nats in tests 2018-06-11 16:13:59 -07:00
Daniel Nelson d16530677d
Update changelog 2018-06-11 16:07:23 -07:00
marcv81 1ea18ffd0a Add power draw field to nvidia_smi plugin (#4262) 2018-06-11 16:06:26 -07:00
Daniel Nelson dd2223ae1c
Use nats-io/go-nats instead of nats-io/nats 2018-06-11 15:24:45 -07:00
Daniel Nelson 90eebd88af
Update changelog 2018-06-11 14:55:12 -07:00
Pierre Tessier d2e729dfaf Remove tags with empty values from Wavefront output (#4266) 2018-06-11 14:54:08 -07:00
Daniel Nelson f64d612294
Reword converter description 2018-06-11 14:43:28 -07:00
Daniel Nelson 76ec90e66d
Update win_perf_counters README 2018-06-11 11:41:46 -07:00
Vlasta Hajek 1690f36b09 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 87f711a19a Fix panic with unicode counter names in win_perf_counters (#4255) 2018-06-08 12:41:21 -07:00
Daniel Nelson 58895d6b03
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 cd9ad77038
Update changelog 2018-06-07 12:38:17 -07:00
Daniel Nelson 8563238059
Update tengine docs 2018-06-07 12:35:46 -07:00
Daniel Nelson 11335f5fee
Restore tengine input plugin (#4160)
This reverts commit 8826cdc423.
2018-06-07 12:35:02 -07:00
Daniel Nelson acba20af1a
Fix TLS and SSL config option parsing (#4247) 2018-06-06 18:29:59 -07:00
Daniel Nelson 229b6bd944
Update changelog 2018-06-06 14:30:37 -07:00
Daniel Nelson 7fe6e2f5ae
Use same flags for all bsd family ping varients (#4241) 2018-06-06 14:28:12 -07:00
Pierre Fersing a4214abfc4 Ignore more boring filesystems from disk plugin (#4244) 2018-06-06 13:44:26 -07:00
Daniel Nelson 5f0cbd1255
Update changelog 2018-06-05 17:14:29 -07:00
Leszek Charkiewicz 3ef4dff4ec Add SSL/TLS support to Redis input (#4236) 2018-06-05 17:12:30 -07:00
Piotr Popieluch dfe7b5eec2 Don't skip metrics during startup in aggregate phase (#4230) 2018-06-05 16:30:53 -07:00
Daniel Nelson 92a8f795f5
Set 1.6.4 release date 2018-06-05 12:11:15 -07:00
Daniel Nelson b1d77ade55
Update master version to 1.8 2018-06-05 11:46:55 -07:00
Daniel Nelson 7103077b3f
Update sample config 2018-06-05 11:45:07 -07:00
Daniel Nelson 7332ce0e95
Add go-syslog to dependencies licenses list 2018-06-05 11:40:03 -07:00
Daniel Nelson 2be32f0a80
Update changelog 2018-06-04 18:35:47 -07:00
Daniel Nelson 701e157ef0
Revert "Update aerospike-client-go version to latest release (#4128)"
This reverts commit 1f29612918.
2018-06-04 18:23:51 -07:00
Daniel Nelson eb94bb29fd
Update changelog 2018-06-04 18:13:53 -07:00
Daniel Nelson 449bd5c3b9
Fix misnamed option in varnish sample config 2018-06-04 18:06:59 -07:00
Daniel Nelson 96abff0660
Update changelog 2018-06-04 18:02:00 -07:00
Phil Preston 9eab3572ff
Add counter fields to pf input (#4216) 2018-06-04 18:01:14 -07:00
Daniel Nelson be8b87000c
Remove test for empty metrics list from file output 2018-06-04 17:58:55 -07:00
Mathur ff93c3c326 Update burrow README.md (#4231) 2018-06-04 10:51:57 -07:00
Daniel Nelson df1fe7a2b4
Use random name for test sockets to avoid intermittent failure 2018-06-03 20:19:39 -07:00
Daniel Nelson a04cfee349
Fix incorrect option name in amqp sample configuration 2018-06-03 18:42:08 -07:00
Daniel Nelson da6ad34fc8 Add option to disconnect after a message limit is reached in amqp output 2018-06-03 18:35:59 -07:00
Daniel Nelson 179bcfdcbb Use list of brokers in amqp output and amqp_consumer 2018-06-03 18:35:59 -07:00
Daniel Nelson e3f1d28908 Allow configuration of amqp exchange type, durability, and arguments 2018-06-03 18:35:59 -07:00
Dark fcea745e99 Change config to match toml parsing rule. (#4225) 2018-06-03 18:31:47 -07:00
Daniel Nelson 90bcb5bc3c
Update changelog 2018-06-03 15:59:00 -07:00
Mike Gent 312116c101 Add passive mode exchange declaration option to amqp consumer input (#3995) 2018-06-03 15:52:59 -07:00
Mike Gent 2cc2913d81 Add static routing_key option to amqp output (#3994) 2018-06-03 15:52:00 -07:00
Daniel Nelson b556eb8b2f
Update changelog 2018-06-01 10:51:23 -07:00
Thanabodee Charoenpiriyakij 8b28f40cc0 Handle uint64 on cloudwatch output (#4219) 2018-06-01 10:47:40 -07:00
Daniel Nelson cabee8f8e0
Update changelog 2018-05-31 11:58:16 -07:00
Piotr Popieluch e0071f365a Print the enabled aggregator and processor plugins on startup (#4212) 2018-05-31 11:56:49 -07:00
Patrick Hemmer 5ae2b02f5d 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 59f0a5354f
Log if connection is closed on write error 2018-05-29 16:10:27 -07:00
Vlasta Hajek c8b68430f0 Fix struct alignment in win_perf_counters for 32-bit 386 arch (#4206) 2018-05-29 11:34:00 -07:00
Daniel Nelson 1ac64596bf
Update syslog docs and add to changelog and readme 2018-05-25 14:33:57 -07:00
Leonardo Di Donato b78984554c Add syslog input plugin (#4181) 2018-05-25 11:40:12 -07:00
Daniel Nelson 2def31bc3d
Update changelog 2018-05-24 18:34:08 -07:00
Vlasta Hajek 010e4f5b0b Fix wildcard and other issues with win_perf_counters (#4189) 2018-05-24 18:25:06 -07:00
Daniel Nelson ce3b367dac
Add jolokia2 example configs to list in readme 2018-05-24 12:02:20 -07:00
Daniel Nelson f3f753310f
Update changelog 2018-05-24 11:59:15 -07:00
Pierre Tessier 50d721ae05 Add additional examples for jolokia2 (#4191) 2018-05-24 11:58:43 -07:00
Daniel Nelson 14d97e5416
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 44e3b9bee3
Update changelog 2018-05-23 14:30:55 -07:00
Daniel Nelson 7f93911f43
Add converter processor (#4178) 2018-05-23 14:29:57 -07:00
Daniel Nelson f417cec036
Update changelog 2018-05-23 14:28:59 -07:00
Daniel Nelson dbd02ebb74
Add support for TLS and username/password auth to aerospike input (#4183) 2018-05-23 14:28:17 -07:00
Daniel Nelson fbf09409e9
Update changelog 2018-05-23 12:26:17 -07:00
Daniel Nelson 54728f54c6
Update unbound README 2018-05-23 12:22:25 -07:00
Rodrigo Pereira 83b03ecb18 Add option to unbound module to use threads as tags (#3969) 2018-05-23 12:03:49 -07:00
Daniel Nelson 8826cdc423
Revert "Add tengine input plugin (#4160)"
This reverts commit 697d8ceae5.
2018-05-23 11:58:22 -07:00
arterforyou 697d8ceae5 Add tengine input plugin (#4160) 2018-05-23 11:19:50 -07:00
Daniel Nelson 089eb2c8d6
Update changelog 2018-05-22 14:53:21 -07:00
Arkady Emelyanov fd22b1ef1f Add burrow input plugin (#3489) 2018-05-22 14:10:41 -07:00
Daniel Nelson a86c2d54ad
Update changelog 2018-05-22 14:00:52 -07:00
Daniel Nelson daacfc6368
Add timeout option to sensors input (#4162) 2018-05-22 13:59:59 -07:00
Daniel Nelson 795c8057ad
Update changelog 2018-05-21 16:40:30 -07:00
Daniel Nelson 6a21e23bcc
Update graphite output dataf format docs 2018-05-21 16:39:33 -07:00
Daniel Nelson 0d21296aed
Expose graphite_tag_support option in graphite output data format 2018-05-21 16:39:15 -07:00
Pavel Boev 7660315e45 Add support for Graphite 1.1.x tags (#4165) 2018-05-21 15:59:56 -07:00
Daniel Nelson 703be4f124
Add regex processor to readme and changelog 2018-05-21 15:48:22 -07:00
Alexander Shepelin ccc4a85fd6 Add regex processor plugin (#3839) 2018-05-21 15:46:10 -07:00
Daniel Nelson 3be9cad309
Set release date for 1.6.3 2018-05-21 12:43:52 -07:00
Daniel Nelson 45c1a45f4a
Add aurora input to changelog and readme 2018-05-21 12:01:58 -07:00
Daniel Nelson 1a407ceaf9
Add aurora input plugin (#4158) 2018-05-21 11:59:39 -07:00
Daniel Nelson 61a0e500a8
Update changelog 2018-05-21 10:43:57 -07:00
Arkady Emelyanov 7f46aafcd6 Fix waitgroup deadlock if url is incorrect in apache input (#4176) 2018-05-21 10:43:02 -07:00
Daniel Nelson 3072b5a493
Update mqtt output docs and changelog 2018-05-18 19:03:00 -07:00
jvrahav 81f5a41bc9 Add batch mode to mqtt output (#4094) 2018-05-18 18:55:02 -07:00
Daniel Nelson a688eefd1c
Update changelog 2018-05-18 18:52:32 -07:00
Feliksas The Lion 1a8786712c Added 3 important elasticsearch cluster health metrics (#4167) 2018-05-18 18:49:23 -07:00
Daniel Nelson 339cebbc21
Use -parallel=false in gdm to avoid issues on appveyor 2018-05-17 15:19:17 -07:00
Daniel Nelson b62f7a3c68
Return to using latest image file on appveyor 2018-05-17 14:38:21 -07:00
Daniel Nelson cce4f520bd
Update changelog 2018-05-17 14:25:35 -07:00
Leszek Charkiewicz 6d73cb85cc Add consul service tags to metric (#4155) 2018-05-17 14:24:51 -07:00
Daniel Nelson 2948dec6f5
Update changelog and docs for application_insights plugin 2018-05-15 16:42:56 -07:00
Karol Zadora-Przylecki 863af9d1d4 Add Microsoft Application Insights output plugin (#4010) 2018-05-15 16:05:59 -07:00
Daniel Nelson 99033241c4
Update changelog 2018-05-15 15:55:38 -07:00
Daniel Nelson e45822e2e2
Fix librato output support for uint and bool (#4151) 2018-05-15 15:54:20 -07:00
Daniel Nelson 0eba72d2c0
Add http output to changelog/readme 2018-05-14 17:19:49 -07:00
Daniel Nelson d5f57715dc
Add method, basic auth, and tls support to http output 2018-05-14 17:18:07 -07:00
Dark 190a4128c5 Add HTTP output plugin (#2491) 2018-05-14 17:15:40 -07:00
Daniel Nelson d19a33dd6f
Update changelog 2018-05-14 11:01:24 -07:00
Daniel Nelson 0af40a8a5d
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 558caf57de
Update sample config 2018-05-11 18:18:53 -07:00
Daniel Nelson 18db718d7f
Add jti_openconfig_telemetry to docs 2018-05-11 18:16:52 -07:00
Ajay Kumar Chintala fdd899e9d4 Add service input plugin for OpenConfig streaming telemetry (#2292) 2018-05-11 17:58:19 -07:00
Daniel Nelson 7e0e664860
Update changelog 2018-05-11 17:50:46 -07:00
Daniel Nelson 5030373a4c
Reuse transport on next interval in jolokia agent (#4137) 2018-05-11 17:48:27 -07:00
Daniel Nelson 5b599337a3
Use internal.Duration for jolokia timeouts (#4136) 2018-05-11 17:47:38 -07:00
Daniel Nelson 2add516eee
Update changelog 2018-05-09 11:56:59 -07:00
Oleksandr Vilchynskyy 1f29612918 Update aerospike-client-go version to latest release (#4128) 2018-05-09 11:54:00 -07:00
Daniel Nelson 851efc9ca0
Update changelog 2018-05-08 16:40:42 -07:00
Daniel Nelson fa04e539ff
Merge branch 'update_net_response' 2018-05-08 16:17:56 -07:00
Daniel Nelson 3ef28e332f
Use result and result_code in net_response 2018-05-08 16:17:22 -07:00
Randy Coburn 5953db88df Add tag/integer pair for result to net_response (#3455) 2018-05-08 16:07:15 -07:00
Daniel Nelson 2bf2b51039
Skip fields that report "not supported" in nvidia-smi (#4123) 2018-05-08 13:11:12 -07:00
Daniel Nelson 2a2cc3212f
Update changelog 2018-05-08 12:12:03 -07:00
Daniel Nelson b11468757c
Add uint/bool support to cratedb output (#4117) 2018-05-08 12:10:25 -07:00
Daniel Nelson 339c5d0312
Add instructions on how to repair windows performance counters 2018-05-07 18:41:05 -07:00
Daniel Nelson 1c6cfcfbab
Update changelog 2018-05-07 18:19:55 -07:00
Daniel Nelson c16ecaa124
Don't report 0ms on timeout in dns_query (#4118) 2018-05-07 18:18:01 -07:00
Daniel Nelson ce58926feb
Run apt-get update in release.sh 2018-05-07 15:12:01 -07:00
Daniel Nelson cff2aa1863
Update changelog 2018-05-07 15:01:40 -07:00
Jake Champlin 4790a21c04 Add cursor metrics to mongodb input (#4114) 2018-05-07 15:00:24 -07:00
Daniel Nelson 21167a6232
Remove combined issue template 2018-05-07 11:43:23 -07:00
Daniel Nelson 2fe167b8a7
Update issue templates (#4116) 2018-05-07 11:38:09 -07:00
Daniel Nelson d96bcac3ec
Update changelog 2018-05-04 18:42:36 -07:00
Germán Jaber ac9b308cee Add topk processor plugin (#4096) 2018-05-04 18:40:05 -07:00
Daniel Nelson 4c35a56edd
Update changelog 2018-05-04 18:31:45 -07:00
Daniel Nelson 73c22a8189
Add SerializeBatch method to the Serializer interface (#4107) 2018-05-04 18:27:31 -07:00
Daniel Nelson de355b76d6
Simplify testing with TLS (#4095) 2018-05-04 16:33:23 -07:00
Daniel Nelson b2bb44363a
Update kafka readme 2018-05-04 14:39:31 -07:00
Daniel Nelson 8b687a8e21
Only lowercase mysql slave metrics with metric_version = 2 2018-05-04 14:31:16 -07:00
Nicolas Steinmetz 81620c69c5 Fix name_override example in mysql rreadme (#4100) 2018-05-04 14:20:34 -07:00
Mauro Murari 3ae0c20200 Fix platform not supported error in build.py (#4102) 2018-05-04 14:18:59 -07:00
Daniel Nelson 7c0754ebe5
Move usage string to internal to fix `go run` 2018-05-04 14:16:21 -07:00
Daniel Nelson 757e23a5f2
Remove -i flag from `make telegraf` 2018-05-04 14:08:23 -07:00
Daniel Nelson fd63591b15
Fix grammar 2018-05-03 17:26:01 -07:00
Daniel Nelson 2108582b43
Clarify max_retry option in kafka output 2018-05-03 17:22:49 -07:00
Daniel Nelson c125cb1d27
Update gopsutil version 2018-05-03 12:32:53 -07:00
Daniel Nelson 2fb3f7a585
Update changelog 2018-05-03 11:41:18 -07:00
Daniel Meiners 9647ea88ea Ignore UTF8 BOM in JSON parser (#4099) 2018-05-03 11:40:28 -07:00
Daniel Nelson c1d4b0b154
Update telegraf.conf 2018-05-02 11:50:11 -07:00
Daniel Nelson 239333ad90
Remove dead link from logparser sample config 2018-05-02 11:49:51 -07:00
Daniel Nelson fd64487be5
Update changelog 2018-05-01 18:57:26 -07:00
Daniel Nelson cff7ee8edf
Fix handling of uint64 in datadog output (#4091) 2018-05-01 18:56:39 -07:00
Daniel Nelson c03e8918a2
Update changelog, add mcrouter to README 2018-05-01 12:01:08 -07:00
Craig Thayer 83345ec2b3 Add input plugin for McRouter (#4077) 2018-05-01 11:58:15 -07:00
Daniel Nelson f094f83da5
Update changelog 2018-04-30 19:21:12 -07:00
Mariusz Brzeski 0768022240 Support busybox ping in the ping input (#3877) 2018-04-30 19:20:13 -07:00
Daniel Nelson 92956104d6
Update changelog 2018-04-30 17:51:04 -07:00
Daniel Nelson 964856eb5f
Fix win_perf_counters to collect counters per instance (#4036) 2018-04-30 17:48:45 -07:00
Daniel Nelson 377547aa4c
Document one field per line requirement in logparser 2018-04-30 16:15:51 -07:00
Grégoire Bellon-Gervais 1662b6feb9 Metrics values have same names as old cassandra plugin (#4080) 2018-04-27 15:12:59 -07:00
Daniel Nelson 908170b207
Update changelog 2018-04-27 14:56:31 -07:00
Vincent Caron ec47cab950 Use same timestamp for fields in system input (#4078) 2018-04-27 14:55:10 -07:00
Daniel Nelson 06671777e9
Update changelog 2018-04-25 19:02:00 -07:00
Adrián López 46a8bdbfe5 Add parameter to force the interval of gather for sysstat (#4068) 2018-04-25 18:59:42 -07:00
Daniel Nelson abdff033cc
Note options that only work with influxdb HTTP 2018-04-25 13:47:16 -07:00
Daniel Nelson 535e9e9a68
Update changelog 2018-04-25 13:47:16 -07:00
Jack Zampolin c256f17870 Fix timeout parsing error in nvidia_smi (#4070) 2018-04-24 14:40:19 -07:00
Yosuke Hara b8d5df2076 Add support for LeoFS v1.4 to leofs input (#4044) 2018-04-24 14:14:31 -07:00
Daniel Nelson 538baee8a4
Fix nightly build 2018-04-24 13:42:42 -07:00
Daniel Nelson d3d8d52e2f
Fix links to jolokia example configs 2018-04-24 12:46:40 -07:00
Daniel Nelson 286f14f730
Update changelog 2018-04-23 15:15:08 -07:00
Daniel Nelson 9f4752ba12
Add docker input server version (#4035) 2018-04-23 15:09:04 -07:00
Daniel Nelson f639f994b5
Ignore writer error in file output (#4055) 2018-04-23 15:08:04 -07:00
Daniel Nelson 911f0e4b57
Deprecate the cassandra input plugin (#4050) 2018-04-23 15:06:26 -07:00
Daniel Nelson 86a3b8cad4
Update changelog 2018-04-23 14:01:38 -07:00
Daniel Nelson a3500cc33a
Fix handling of floats with multiple leading zeroes (#4065) 2018-04-23 13:29:49 -07:00
Daniel Nelson bf0c59f56c
Return errors in mongodb SSL/TLS configuration (#4066) 2018-04-23 13:29:12 -07:00
Fred Cox c7b3667ac4 Add server argument as first argument in unbound input (#4062) 2018-04-23 13:27:29 -07:00
Daniel Nelson 638853be05
Update changelog 2018-04-20 18:49:55 -07:00
Daniel Nelson ee9a2f73a1
Fix duplicate tags when overriding tag (#4056) 2018-04-20 18:39:31 -07:00
Daniel Nelson 648d7ae922
Run 32-bit tests in CircleCI 2018-04-20 15:10:22 -07:00
Daniel Nelson 13937d511d
Update changelog 2018-04-20 15:05:39 -07:00
Daniel Nelson fe4d3cd117
Fix ints being capped at 32-bits on 32-bit archs (#4054) 2018-04-20 14:56:28 -07:00
Leandro Piccilli eacf11fcd8 Update gopsutils to include fixes for #4037 and #3750 (#4045) 2018-04-20 14:32:19 -07:00
Daniel Nelson 3a8ca4d08d
Update changelog 2018-04-19 16:58:59 -07:00
Daniel Nelson 00e3363d45
Add only valid field types in cassandra input (#4048) 2018-04-19 16:56:46 -07:00
Daniel Nelson 29b37e67c2
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 42fee824f8
Update changelog 2018-04-18 16:57:15 -07:00
Daniel Nelson 120be7e87b
Report available fields if utmp is unreadable (#4043) 2018-04-18 16:55:18 -07:00
Daniel Nelson 9e4a330ee5
Update github.com/gorilla/mux version (#4042) 2018-04-18 16:55:02 -07:00
Daniel Nelson 78d4a95ce6
Test using Go 1.8-1.10; official builds with 1.10 (#4041) 2018-04-18 16:14:06 -07:00
Daniel Nelson 571ce86d10
Update changelog 2018-04-18 12:14:58 -07:00
Daniel Nelson dd2c60e620
Fix graphite serialization of unsigned ints (#4033) 2018-04-18 12:13:25 -07:00
Daniel Nelson 1486ae25c0
Tidy up last change to socket listener/writer 2018-04-17 17:48:30 -07:00
Daniel Nelson da5b46e770
Update changelog 2018-04-17 17:36:35 -07:00
Matt 9ef902f4a1 Add snmp input option to strip non fixed length index suffixes (#4025) 2018-04-17 17:34:39 -07:00
Daniel Nelson 058510464c
Update changelog 2018-04-17 17:03:18 -07:00
Bob Shannon 0b4f4b089f Add TLS support to socket_writer and socket_listener plugins (#4021) 2018-04-17 17:02:04 -07:00
Daniel Nelson 7c592558d8
Update changelog 2018-04-17 15:45:49 -07:00
James Maidment 1e1d9e8acb Update mem values to gauge (#4034) 2018-04-17 15:43:10 -07:00
Daniel Nelson 3b3d16273d
Update changelog adding nvidia_smi 2018-04-17 13:43:36 -07:00
Jack Zampolin 3046f957d5 Add nvidia_smi input to monitor nvidia GPUs (#4026) 2018-04-17 13:40:55 -07:00
Daniel Nelson bcf1cf59c1
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 c8d2ba2bc8
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 04ab9a4fe4
Set 1.6 release date in changelog 2018-04-16 12:04:31 -07:00
Daniel Nelson e4009234e9
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 8d516d26e9
Fix MQTT sample config 2018-04-12 14:34:55 -07:00
Daniel Nelson 0a02363c03
Update changelog 2018-04-11 16:52:40 -07:00
jvassev 2c19d74829 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 3f4e1af222
Add --console and --service to usage message in Windows (#3993) 2018-04-11 16:44:55 -07:00
Daniel Nelson 10c7324d74
Update changelog 2018-04-10 18:18:27 -07:00
Daniel Nelson 55cfc383f3
Allow grok pattern to contain newlines (#4005) 2018-04-10 18:16:21 -07:00
Daniel Nelson 7b8f12b377
Update changelog 2018-04-10 18:15:02 -07:00
Daniel Nelson 15f19375e7
Typesetting changes to fibaro README 2018-04-10 18:14:27 -07:00
Pierrick Brossin 93e2381f42 Add Fibaro input plugin (#2741) 2018-04-10 18:04:58 -07:00
Daniel Nelson 387bae9b9f
Fix host ordering in mongodb unit tests 2018-04-10 17:24:40 -07:00
Daniel Nelson 34416e0da8
Updated changelog 2018-04-10 17:11:25 -07:00
Jake Champlin 32f56140a3 Add per-host shard metrics in mongodb input (#3819) 2018-04-10 17:10:29 -07:00
Boris Schrijver 64a23c0b18 Fix make test-ci run (#4002) 2018-04-10 15:35:58 -07:00
Daniel Nelson af68975e2f
Document that InfluxDB input metrics vary with version 2018-04-09 19:30:18 -07:00
Daniel Nelson 0223b22b3e
Update changelog 2018-04-09 17:06:34 -07:00
Daniel Nelson 1890efbb70
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 e4f8a82ee6
Fix newline escaping in line protocol (#3992) 2018-04-09 15:29:52 -07:00
Daniel Nelson a28de4b5cd
Update changelog 2018-04-06 16:45:07 -07:00
Daniel Nelson caac224276
Add details about MongoDB permissions 2018-04-06 16:43:03 -07:00
Daniel Nelson fe31ce9d7d
Modernize mongodb docs 2018-04-06 16:36:03 -07:00
Matvey Kruglov 01ede2ea0b Add repl_oplog_window_s metric to mongodb input (#3964) 2018-04-06 16:34:47 -07:00
alekseyp fb6390e7ab Fix typo in phpfpm README (#3985) 2018-04-06 16:20:36 -07:00
Mark Wilkinson - m82labs ff40da6019 Use explicit casts to avoid datatype issues (#3980) 2018-04-06 14:58:33 -07:00
Daniel Nelson 43a044542e
Update changelog 2018-04-06 13:19:02 -07:00
Daniel Nelson 00203fa889
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 7177e0473f
Fix conversion of unsigned ints in prometheus output (#3978) 2018-04-05 16:38:41 -07:00
Daniel Nelson 252101b7c6
Update changelog 2018-04-05 11:19:01 -07:00
Daniel Nelson efdf36746c
Update gosnmp revision (#3973) 2018-04-05 11:15:20 -07:00
Daniel Nelson df78133bf3
Log error if scheme is unsupported 2018-04-05 11:08:31 -07:00
Jeff Ashton bf915fa79c Fix https in InfluxDB output (#3976) 2018-04-05 10:50:32 -07:00
Daniel Nelson c160b56229
Fix build.py next_version 2018-04-04 21:53:20 -07:00
Daniel Nelson 627f0e5d9d
Use automatic extension naming when running go build 2018-04-04 19:00:28 -07:00
Daniel Nelson 4551b4c5d2
Enable ntpq tests on Windows (#3972) 2018-04-04 18:35:05 -07:00
Daniel Nelson a9afd2f030
Add config-directory documentation for Windows service 2018-04-04 16:30:22 -07:00
Daniel Nelson caf860bc88
Don't print name of plugin or interval size during --test 2018-04-04 16:30:22 -07:00
Daniel Nelson beeab2c509
Sort field names when running --test 2018-04-04 16:30:22 -07:00
Scott Anderson a50acadc44 Add details about why not all logstash patterns are supported (#3971) 2018-04-04 14:42:58 -07:00
Daniel Nelson 265d0e6d84
Fix bug preventing database from being recreated (#3962) 2018-04-02 16:18:33 -07:00
Daniel Nelson 413cf6dd23
Set next version to 1.7 on master 2018-04-02 14:44:09 -07:00
Daniel Nelson 7b23287e20
Update sample telegraf.conf 2018-04-02 14:40:51 -07:00
Daniel Nelson f4c0aac898
Update changelog 2018-04-02 14:34:25 -07:00
Daniel Nelson bcaaeda49c
Fix precision truncation when no timestamp included (#3961) 2018-04-02 14:32:33 -07:00
Daniel Nelson 9d2f3fcbb9
Update changelog 2018-04-02 14:31:36 -07:00
Daniel Nelson 0aad487cab
Fix go vet and use go test -race 2018-04-02 14:30:46 -07:00
Daniel Nelson 19c102cf4b
Fix parsing of dos line endings in smart input (#3960) 2018-04-02 13:55:10 -07:00
Daniel Nelson 109c1a4344
Update gopsutil version to v2.18.03 2018-04-02 13:54:16 -07:00
Daniel Nelson 82448a9dd1
Add metric_version option to mysql input (#3954) 2018-04-02 13:10:43 -07:00
Daniel Nelson 64b239663c
Add mutex to influx parser 2018-04-02 12:52:23 -07:00
Daniel Nelson 7e3ec16e15
Allow empty string field values 2018-03-30 16:57:35 -07:00
Mark Wilkinson - m82labs a971ffb880 Remove host tag from Database IO v2 Query (#3953) 2018-03-30 13:22:24 -07:00
Daniel Nelson 461c0dccd8
Update changelog 2018-03-30 13:20:07 -07:00
Daniel Nelson 971debb582
Add filters for container state to docker input (#3950) 2018-03-30 13:17:48 -07:00
Daniel Nelson 6d585beedf
Fix http_proxy variable name in http_response plugin 2018-03-30 11:11:12 -07:00
Daniel Nelson 38ec968b0b
Move Handler interface into machine where it is used 2018-03-30 11:11:12 -07:00
Daniel Nelson 0c1293ad5e
Add MmapStats when using rocksdb storage engine (#3930) 2018-03-29 13:32:05 -07:00
Daniel Nelson b99cd14129
Add influx uint support as a runtime option (#3948) 2018-03-29 13:31:43 -07:00
Daniel Nelson c2108fcf09
Update changelog 2018-03-29 12:44:33 -07:00
Daniel Nelson 04b9afff68
Add TLS support to zookeeper input (#3949) 2018-03-29 12:42:25 -07:00
Matt a320f91516 Add line protocol uint64 support (#3946) 2018-03-28 16:43:25 -07:00
Daniel Nelson ef112e6ee7
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 5be1198274 Reconnect AMQP consumer to broker (#3947) 2018-03-28 14:00:56 -07:00
Daniel Nelson 8a73dc05c0
Update changelog 2018-03-27 18:38:39 -07:00
Daniel Nelson 43bd23e555
Add support for connecting to InfluxDB over a unix domain socket (#3942) 2018-03-27 18:36:08 -07:00
Daniel Nelson b0b18df0bf
Update changelog 2018-03-27 18:07:37 -07:00
Daniel Nelson cc97b48ca8
Add support for skipping database creation (#3941) 2018-03-27 17:59:57 -07:00
Daniel Nelson 36b8220181
Update changelog 2018-03-27 17:44:13 -07:00
Daniel Nelson 1c0f63a90d
Add new line protocol parser and serializer, influxdb output (#3924) 2018-03-27 17:30:51 -07:00
Daniel Nelson 503881d4d7
Update to latest fsnotify release 2018-03-27 17:21:00 -07:00
Daniel Nelson 63de4ffc51
Update to latest gopsutil release 2018-03-27 15:12:57 -07:00
Daniel Nelson 4cefe3eadd
Add documentation for existing TLS settings in consul input (#3931) 2018-03-26 19:22:17 -07:00
Daniel Nelson b63073deb2
Update DC/OS guidance for cardinality 2018-03-26 19:20:27 -07:00
Daniel Nelson e60abdf8ea
Update passenger input documentation (#3938) 2018-03-26 19:11:08 -07:00
Daniel Nelson e5e75a62cc
Update changelog 2018-03-23 19:17:03 -07:00
Daniel Nelson a4870e6a6d
Fix DC/OS URL creation race (#3932) 2018-03-23 19:14:07 -07:00
Daniel Nelson 3469e74dd9
Update changelog 2018-03-23 11:57:42 -07:00
Evan Kinney def76ace3b Add HTTP basic auth support to the http_listener input (#3496) 2018-03-23 11:56:49 -07:00
Daniel Nelson 05393da939
Update changelog 2018-03-23 11:54:06 -07:00
Daniel Nelson e8fc3ca70c
Add TLS support to kapacitor input (#3927) 2018-03-23 11:53:18 -07:00
Daniel Nelson 729388f4dd
Update changelog 2018-03-23 11:52:00 -07:00
Daniel Nelson be9d4f4be0
Add tag for target url to phpfpm input (#3928) 2018-03-23 11:50:52 -07:00
Daniel Nelson 3658ac8f53
Skip hanging test on darwin 2018-03-22 14:41:37 -07:00
Mark Wilkinson - m82labs d7f279e3d3 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 e28f422d21
Update fsnotify path in license of dependencies 2018-03-21 23:06:14 -07:00
Daniel Nelson cd919066d5
Use copy of fsnotify from tail vendor 2018-03-21 10:23:28 -07:00
Pierre Tessier 6200683c29 Remove noisy debug message from Wavefront output (#3899) 2018-03-19 11:04:35 -07:00
Daniel Nelson 76ce71f7fa
Fix breaker stat name in elasticsearch comment 2018-03-16 12:58:39 -07:00
Daniel Nelson 2160779126
Set 1.5.3 release date 2018-03-14 16:32:18 -07:00
Daniel Nelson 6e5e2f713d
Update changelog 2018-03-14 12:10:16 -07:00
Jonas Hahnfeld 8e515688eb 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 6d6631382c
Remove gdm -parallel false 2018-03-14 11:36:03 -07:00
Daniel Nelson f1b681cbdc
Use previous image on appveyor 2018-03-14 11:02:33 -07:00
Daniel Nelson 4118ec7629
Update changelog 2018-03-13 21:09:54 -07:00
Chris Ottinger f114f6a124 Added config flag to skip collection of network protocol metrics (#3880) 2018-03-13 21:08:21 -07:00
Daniel Nelson 8cfd001441
Disable parallel restore in gdm
May be aggrevating timeout issue on appveyor builds.
2018-03-13 20:44:51 -07:00
Daniel Nelson 9ce70aad77
Use Go 1.9.4 for builds 2018-03-09 14:37:26 -08:00
Patrick Hemmer 07dbbb27dc Fix socket_listener setting ReadBufferSize on TCP sockets (#3874) 2018-03-09 09:44:35 -08:00
Daniel Nelson 0e14e31b0a
Update changelog 2018-03-08 15:16:46 -08:00
Daniel Nelson 8b3767fd6e
Update http_response documentation 2018-03-08 15:13:26 -08:00
Germán Jaber 81a93fcddf Add result related tags and fields to http_response (#3814) 2018-03-08 14:55:59 -08:00
Margarita Bliznikova 8005883de8 Fix intermittent TestTailBadLine failures (#3869) 2018-03-08 13:03:48 -08:00
Daniel Nelson f7207f514e
Update changelog 2018-03-08 10:54:03 -08:00
Dennis Schön f1c8abd68c Fix uptime metric in passenger input plugin (#3871) 2018-03-08 10:52:58 -08:00
Daniel Nelson e4ce057885
Update changelog 2018-03-07 14:17:11 -08:00
dilshatm a6d366fb84 Fix collation difference in sqlserver input (#3786) 2018-03-07 14:16:17 -08:00
Daniel Nelson de22480e7d
Update example config 2018-03-07 13:49:04 -08:00
Daniel Nelson 2b65915b96
Update docs for addition of override processor 2018-03-07 13:47:54 -08:00
Karsten Schnitter 9d8b1b1e87 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 b9ddbbd5ed
Update changelog 2018-03-06 13:12:16 -08:00
Margarita Bliznikova c377c8fb7c Add host to ping timeout log message (#3853) 2018-03-06 13:10:44 -08:00
Daniel Nelson 45c22e42da
Update changelog 2018-03-06 12:12:26 -08:00
Marcel ad5e954047 Add ability to override proxy from environment in http response (#3626) 2018-03-06 12:11:38 -08:00
Demian Dekoninck 93b2870b28 Add link to ServiceInput interface in contributing guide (#3828) 2018-03-06 10:14:14 -08:00
Patrick O'Keeffe 3501b65f7c Improve fail2ban use_sudo docs (#3852) 2018-03-05 16:32:45 -08:00
Jiri Tyr 35378ae9cc Fixing error in snmp example config (#3855) 2018-03-05 15:29:26 -08:00
Daniel Nelson 1212b2ddc5
Update changelog 2018-03-05 15:28:09 -08:00
Carl Pacey 0a37386c5e Add sum stat to basicstats aggregator (#3797) 2018-03-05 15:26:31 -08:00
Daniel Nelson 00a52a67b9
Update changelog 2018-03-05 11:42:01 -08:00
Michael Boudreau dc96c34e2c Add Solr 3 compatibility (#3799) 2018-03-05 11:41:10 -08:00
Daniel Nelson 5928219454
Update changelog 2018-02-25 01:06:44 -08:00
Daniel Nelson 8c932abff6
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 fcd6d4eb09
Update changelog 2018-02-20 17:33:25 -08:00
Pranay Kanwar b355536b20 Convert boolean metric values to float in datadog output (#3804) 2018-02-20 17:32:18 -08:00
Daniel Nelson e988c83068
Update changelog 2018-02-20 16:07:10 -08:00
Fred Cox 80d9417315 Add server option to unbound plugin (#3713) 2018-02-20 16:06:13 -08:00
Daniel Nelson f4fa05530a
Update changelog 2018-02-20 13:56:44 -08:00
Jake Champlin 18aef35c58 Add shard server stats to the mongodb input plugin (#3808) 2018-02-20 13:55:56 -08:00
Daniel Nelson 8147d60973
Fix metric buffer limit in internal plugin after reload 2018-02-19 20:55:28 -08:00
Daniel Nelson df80fa6099
Update changelog 2018-02-16 14:08:11 -08:00
S 53221d87eb Add option to disable labels in prometheus output for string fields (#3765) 2018-02-16 14:07:26 -08:00
Dwight Spencer ddde8809f4 Add README.md for mqtt output (#3764) 2018-02-16 13:51:20 -08:00
Daniel Nelson 0ca3900abe
Method new dropwizard parser more prominently. 2018-02-15 20:33:57 -08:00
Daniel Nelson a777ce9293
Update changelog 2018-02-15 20:11:52 -08:00
everpcpc 3242f97deb Support deadline in ping plugin (#3783) 2018-02-15 20:11:07 -08:00
Daniel Nelson 6e35071c89
Update changelog 2018-02-15 20:06:01 -08:00
Jorge Canha cd620ac144 Add keep alive support to the TCP mode of statsd (#3781) 2018-02-15 20:04:49 -08:00
Daniel Nelson 6406abbc89
Update changelog 2018-02-15 19:09:50 -08:00
Daniel Nelson 9aabf56795
Use proxy from environment in http input 2018-02-15 19:06:22 -08:00
Daniel Nelson 4ac78d5c6d
Deprecate httpjson input 2018-02-15 19:06:22 -08:00
Daniel Nelson 3fe3d75bb3
Add configurable method to http input 2018-02-15 19:06:22 -08:00
Daniel Nelson a55456b56c
Check parser initialization earlier 2018-02-15 19:06:22 -08:00
Daniel Nelson 6c656d92a0
Add url tag only if not already set 2018-02-15 19:06:20 -08:00
Daniel Nelson 2ee270f274
Allow setting basic auth with empty username 2018-02-15 19:05:36 -08:00
Daniel Nelson 5b37fd3ae9
Update http input documentation 2018-02-15 19:05:36 -08:00
Nicolas Grange f82f03b92c Add http input plugin which supports any input data format (#3546) 2018-02-15 16:00:10 -08:00
Mark Wilkinson - m82labs 42ccc9f324 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 a00d5b48f8
Update changelog 2018-02-09 12:13:07 -08:00
efficks f5ea13a9ab Fix ping plugin not reporting zero durations (#3778) 2018-02-09 12:11:19 -08:00
Daniel Nelson 32dd1b3725
Adjust time of nightly build 2018-02-07 18:37:33 -08:00
Daniel Nelson 1b0e87a8b0
Update changelog 2018-02-07 18:37:32 -08:00
Daniel Nelson efa9095829
Add TLS support to the mesos input plugin (#3769) 2018-02-07 18:36:38 -08:00
Daniel Nelson 89974d96d7
Install new requirements for fpm gem install 2018-02-06 11:33:18 -08:00
Daniel Nelson 8c51d629eb
Update changelog 2018-02-05 12:55:22 -08:00
Andy Cobaugh ea0be51985 Add additional metrics and reverse metric names option to openldap (#3722) 2018-02-05 12:48:41 -08:00
Daniel Nelson 5639d5608d
Update paho mqtt to latest release 2018-02-05 12:20:14 -08:00
Daniel Nelson 9a1d69a2ae
Update changelog 2018-02-05 11:17:36 -08:00
Philipp Weber b7a68eef56 Remove userinfo from url tag in prometheus input (#3743) 2018-02-05 11:16:00 -08:00
Daniel Nelson be688ec761
Update sample config in contributing docs 2018-02-02 12:31:31 -08:00
Daniel Nelson 3208fc32ee
Run nightly build sequentially 2018-02-02 12:31:31 -08:00
Daniel Nelson 1f87c10dd4
Fix Makefile on Windows and use in AppVeyor build (#3748) 2018-02-02 12:25:59 -08:00
Pierre Tessier 281f4d3688 Fix example source_override values in wavefront output (#3744) 2018-02-02 10:51:00 -08:00
Daniel Nelson 3dcf66aed6
Update gitignore 2018-02-01 16:18:01 -08:00
Daniel Nelson 01479af096
Update changelog 2018-02-01 16:12:57 -08:00
Daniel Nelson 23933e1139
Improve procstat readme 2018-02-01 16:12:08 -08:00
Ben Aldrich a7571d5730 Add native Go method for finding pids to procstat (#3559) 2018-02-01 15:14:27 -08:00
Paul Myjavec 12d62e60b3 Use CircleCI 2.0 for builds (#3731) 2018-02-01 15:05:39 -08:00
Daniel Nelson 4153d2ca42
Update changelog 2018-02-01 12:15:24 -08:00
Daniel Nelson 8c8c9200e7
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 426360d61f Add new sql server output data model (#3618) 2018-02-01 11:50:26 -08:00
John Eismeier 86e08e6ce7 Fix spelling mistakes in zipkin and apache inputs (#3741) 2018-02-01 11:15:12 -08:00
Daniel Nelson a462b555a7
Update changelog 2018-02-01 11:13:14 -08:00
Philipp Weber a2635573a8 Add TLS and http basic_auth to prometheus_client output (#3719) 2018-02-01 11:12:16 -08:00
Daniel Nelson ec8e923fda
Update documetation style for smart input 2018-02-01 10:51:03 -08:00
Daniel Nelson d43e8262b7
Update changelog 2018-01-31 12:30:03 -08:00
Laurent Sesquès 7b365180d0 Add Ipset input plugin (#3346) 2018-01-31 12:25:27 -08:00
Daniel Nelson 32732d42f8
Update changelog 2018-01-30 18:08:31 -08:00
Daniel Nelson 10e51e4b49
Set path to / if HOST_MOUNT_PREFIX matches full path (#3736) 2018-01-30 18:06:53 -08:00
Daniel Nelson 3a85e7b1f0
Set release date for 1.5.2 2018-01-30 14:00:34 -08:00
Daniel Nelson 5d87ad85a1
Update changelog 2018-01-30 14:00:33 -08:00
Daniel Nelson c28d0e1b16
Exclude master_replid fields from redis input (#3725) 2018-01-30 13:58:44 -08:00
Daniel Nelson 1b0a4e49cd
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 f9c48ee2f0
Update changelog 2018-01-29 14:02:44 -08:00
Philipp Weber 1b84ac08ab Add support for setting bsd source address to the ping input (#3726) 2018-01-29 14:01:00 -08:00
Daniel Nelson bcefe90846
Update changelog 2018-01-29 12:16:15 -08:00
Ildar Svetlov da12c64791 Add ability to select which queues will be gathered to rabbitmq input (#3702) 2018-01-29 12:14:49 -08:00
Daniel Nelson de03ee3caa
Update nats readme 2018-01-26 17:15:02 -08:00
Daniel Nelson fbd3544a9d
Add nats input to readme and changelog 2018-01-26 15:18:15 -08:00
Menno Finlay-Smits fb947e8fe7 Add NATS Monitoring Input Plugin (#3674) 2018-01-26 15:14:54 -08:00
Daniel Nelson 5b130b6ea0
Update changelog 2018-01-26 15:03:19 -08:00
Ivan Lopez 48092ed598 Add RabbitMQ cluster and running nodes count and running node status (#3703) 2018-01-26 15:00:58 -08:00
Daniel Nelson efb9d5b4cb
Return Accumulator interface from NewAccumulator 2018-01-26 11:40:34 -08:00
Peter c17427631d Expand on tagvalue option in postgresql_extensible (#3720) 2018-01-25 15:38:11 -08:00
Daniel Nelson 8527a1b7b8
Update changelog 2018-01-25 15:05:46 -08:00
Logan d831dbc51d Allow running as console application on Windows (#2754) 2018-01-25 15:04:09 -08:00
Daniel Nelson f9c0aa1e23
Update changelog 2018-01-25 13:47:21 -08:00
Pierre Tessier 3e4c91880a Add timeout to wavefront output write (#3711) 2018-01-25 13:44:25 -08:00
Daniel Nelson 899c3a2ae1
Update changelog 2018-01-22 12:06:10 -08:00
Daniel Nelson 4558aeddeb
Remove graphite serializer replacement of dot with underscore in field key (#3705) 2018-01-22 12:04:16 -08:00
Daniel Nelson 36c9113917
Update changelog 2018-01-22 12:01:09 -08:00
Daniel Nelson 5270aa451c
Avoid loop creation in second processor pass (#3656) 2018-01-22 11:16:07 -08:00
Daniel Nelson 91fc2765b1
Limit wait time for writes in mqtt output (#3699) 2018-01-22 11:15:13 -08:00
Daniel Nelson ef776f120b
Make error loading tls config fatal in mysql input 2018-01-19 12:16:28 -08:00
Daniel Nelson 5bac08662e
Update changelog 2018-01-18 17:39:03 -08:00
Piotr Popieluch 601dc99606 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 0f55d9eba2
Update changelog 2018-01-17 15:28:35 -08:00
Piotr Popieluch f374a295d9 Reconnect before sending graphite metrics if disconnected (#3680) 2018-01-17 15:27:24 -08:00
Daniel Nelson 548157852c
Update changelog 2018-01-17 15:14:07 -08:00
Daniel Nelson 822cfbc8e8
Add support for using globs in devices list of diskio input plugin (#3687) 2018-01-17 15:12:05 -08:00
Daniel Nelson fa5f1bf6d9
Use go-redis for the redis input (#3661) 2018-01-17 14:57:46 -08:00
Daniel Nelson ad921a3840
Update changelog 2018-01-17 14:38:47 -08:00
Michael Boudreau 9d559292a5 Fix index out of bounds error in solr input plugin (#3683) 2018-01-17 14:37:34 -08:00
Daniel Nelson 6e24056757
Update changelog 2018-01-16 13:46:41 -08:00
Noah Crowley 87830a1c38 Ignore empty lines in Graphite plaintext (#3684) 2018-01-16 13:44:56 -08:00
atzoum d188b78d9e Add string and boolean support to dropwizard; fix escaping of tags/fields (#3664) 2018-01-16 12:12:14 -08:00
Daniel Nelson 6e4650da3a
Update changelog 2018-01-12 17:46:20 -08:00
Jacob McCann 7ab0d50116 Add container health metrics to docker input (#3666) 2018-01-12 17:43:51 -08:00
Daniel Nelson 97f6c9d8e1
Skip intermittent test on CircleCI 2018-01-12 16:49:05 -08:00
Jacob McCann 666eb47613 Listen on localhost interface in tests (#3667) 2018-01-12 12:08:19 -08:00
Daniel Nelson 90b6b760d1
Set 1.5.1 release date 2018-01-10 13:27:58 -08:00
Daniel Nelson f3147cc44d
Skip CircleCI test of tail plugin due to intermittent deadlock 2018-01-09 15:01:20 -08:00
Daniel Nelson 3cf0ba1ccf
Pin crate docker image for testing 2018-01-09 13:10:40 -08:00
Daniel Nelson 2b972dcd56
Update release notes 2018-01-08 16:29:59 -08:00
Daniel Nelson ce06d0cee0
Update changelog 2018-01-08 15:21:20 -08:00
Daniel Nelson 24ae3293bc
Update changelog 2018-01-08 15:18:31 -08:00
Daniel Nelson 0ddb1d26a0
Add gjson and match to dependency license file 2018-01-08 15:15:23 -08:00
atzoum 317de40ac4 Add support for dropwizard input format (#2846) 2018-01-08 15:11:36 -08:00
Daniel Nelson 9cfa3b292b
Reorder httpjson config to keep variables out of toml table 2018-01-08 15:06:58 -08:00
Daniel Nelson 0bf63a29f1
Update changelog 2018-01-05 16:04:12 -08:00
James 1d86064fb7 Use persistent connection to postgresql database (#2701) 2018-01-05 16:03:09 -08:00
Daniel Nelson 53e7537c5c
Fix link to cratedb readme 2018-01-05 16:01:06 -08:00
Daniel Nelson 6dd5c3b2c0
Update changelog 2018-01-05 16:00:44 -08:00
Daniel Nelson 2938c2fa79
Add user privilege level setting to IPMI sensors (#3643) 2018-01-05 15:59:25 -08:00
Daniel Nelson 35f1b9f500
Update changelog 2018-01-05 14:56:54 -08:00
gerardocorea92 ae848e9539 Add available_entropy field to kernel input plugin (#3524) 2018-01-05 14:54:29 -08:00
Daniel Nelson 163f18f959
Update release notes for 1.5 2018-01-04 18:05:21 -08:00
Daniel Nelson 37757b7782
Add link to docs for configuring the openldap monitoring backend 2018-01-04 15:34:55 -08:00
Daniel Nelson 315fd1e987
Update changelog 2018-01-04 15:29:56 -08:00
Daniel Nelson b0c2bb870e
Escape environment variables during config toml parsing (#3637) 2018-01-04 15:28:00 -08:00
Daniel Nelson 11c6a7f9c9
Update changelog 2018-01-03 17:47:13 -08:00
Richard Elling 92acef1664 Add support for additional metrics on Linux in zfs input (#3565) 2018-01-03 17:45:48 -08:00
Daniel Nelson 5397c02570
Update changelog 2018-01-03 17:40:37 -08:00
kerams 87f1d45ee0 Add support for exchanges to RabbitMQ input (#3619) 2018-01-03 17:38:11 -08:00
Daniel Nelson 07cb749e04
Update changelog 2018-01-03 13:44:33 -08:00
kerams acea7109d4 Fix deliver_get field in rabbitmq input (#3633) 2018-01-03 13:43:17 -08:00
Daniel Nelson 009b649a13
Update changelog 2018-01-02 16:38:20 -08:00
Daniel Nelson b900967b78
Add wired field to mem input (#3632) 2018-01-02 16:37:11 -08:00
Daniel Nelson 81f42e8b17
Update changelog 2018-01-02 16:36:04 -08:00
Adam Johnson 56be3d3236 Reintroduce AWS credential check to cloudwatch output (#3587) 2018-01-02 16:33:15 -08:00
Daniel Nelson a440ed8d8c
Add information about how to set permissions for postfix input (#3594) 2018-01-02 14:09:14 -08:00
Daniel Nelson 06c21fb9f7
Update changelog 2017-12-28 16:24:04 -08:00
Daniel Nelson 4f7afb8cb5
Set content-type charset in influxdb output and allow it be overridden (#3593) 2017-12-28 16:22:19 -08:00
Daniel Nelson ef6e5c5a85
Update changelog 2017-12-28 16:19:04 -08:00
Daniel Nelson 005face7c0
Fix DC/OS login expiration time (#3625) 2017-12-28 16:17:40 -08:00
Daniel Nelson 1011cd0c94
Update changelog 2017-12-28 16:12:56 -08:00
Daniel Nelson 6c075c4346
Fix name error in jolokia2_agent sample config (#3624) 2017-12-28 16:10:00 -08:00
Daniel Nelson 7f3f556b39
Fix grammar in haproxy docs 2017-12-21 18:46:03 -08:00
Daniel Nelson 6639f44c17
Fix grammar in dcos readme 2017-12-21 16:26:50 -08:00
Daniel Nelson 801a248668
Update changelog 2017-12-18 20:39:26 -08:00
kerams 496452144c Add messages_delivered_get to rabbitmq_overview (#3596) 2017-12-18 20:36:59 -08:00
Daniel Nelson 3029d58cad
Update changelog 2017-12-14 16:59:58 -08:00
Jeff Ashton fcc9c82d34 Add control over which stats to gather in basicstats aggregator (#3580) 2017-12-14 16:56:10 -08:00
Daniel Nelson 4f1ea13ebf
Update bond input description 2017-12-14 16:03:29 -08:00
timhallinflux b90ee4a43c Improve bond plugin description (#3588) 2017-12-14 15:59:20 -08:00
Daniel Nelson 4537eb2c5d
Update haproxy documentation 2017-12-14 15:50:03 -08:00
Daniel Nelson d6fd9ce738
Set release date for 1.5.0 2017-12-14 10:58:33 -08:00
Daniel Nelson 5b40173bcb
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 6638fc68de Update README with missing Redis measurements (#3582) 2017-12-13 11:24:48 -08:00
Antoine Augusti 9ad0297b1f Fix refType documentation for GitHub webhooks (#3579) 2017-12-13 11:22:47 -08:00
Daniel Nelson 15266bb7eb
Update changelog 2017-12-13 11:17:36 -08:00
Ildar Svetlov d935dfa9ed Don't add system input uptime_format as a counter (#3578) 2017-12-13 11:13:56 -08:00
Daniel Nelson 8785c7d78d
Update changelog 2017-12-13 10:58:50 -08:00
Logan fb3d66cdd3 Typo and sentence consistency (#3581) 2017-12-13 10:51:15 -08:00
Daniel Nelson de180d1e56
Update changelog 2017-12-12 13:32:47 -08:00
Mike Danko df9c7590b3 Fix various mysql data type conversions (#3554) 2017-12-12 13:22:11 -08:00
Steve Banik d7d224d511 Fixed typo in README.md (#3574) 2017-12-12 11:21:32 -08:00
Daniel Nelson abcad439eb
Update changelog 2017-12-11 18:01:50 -08:00
Daniel Nelson 8484de6c12
Fix separation of multiple prometheus_client outputs (#3570) 2017-12-11 18:00:19 -08:00
Daniel Nelson ab8376de03
Update exec plugin documentation 2017-12-11 17:58:06 -08:00
Daniel Nelson ff634c5056
Update changelog 2017-12-11 15:34:52 -08:00
Daniel Nelson 14b31a2354
Add idle state to processes test 2017-12-11 15:33:44 -08:00
Ted Zlatanov 663a5b1f50 Support I (idle) process state on procfs+Linux (#3530) 2017-12-11 15:31:52 -08:00
Daniel Nelson 93d16a4603
Use auto type detection for scanned devices in smart input (#3561) 2017-12-08 18:03:12 -08:00
Daniel Nelson 88746b01c3
Update changelog 2017-12-08 18:02:01 -08:00
Daniel Nelson 37095ef47d
Update sarama-cluster to latest release (#3560) 2017-12-08 17:59:06 -08:00
Daniel Nelson 4f42d8a298
Add benchmark test for single metric 2017-12-08 13:23:08 -08:00
Daniel Nelson 574034c301
Use device name instead of abs path for devices tag in smart input (#3550) 2017-12-08 13:22:41 -08:00
Daniel Nelson 654e953a89
Update changelog 2017-12-07 11:32:54 -08:00
Arkady Emelyanov 4d91162abd Add health status mapping from string to int in elasticsearch input (#3551) 2017-12-07 11:31:03 -08:00
Daniel Nelson 177e7e2c73
Log connect error only in wavefront output (#3549) 2017-12-06 14:55:29 -08:00
Daniel Nelson d8966d5067
Fix formatting in changelog 2017-12-04 13:18:14 -08:00
Daniel Nelson bdda6ceb70
Update next version number for dev builds 2017-12-01 11:52:46 -08:00
Daniel Nelson ca8911fec0
Update example config 2017-12-01 11:49:07 -08:00
Daniel Nelson 2c5a5373f6
Update changelog 2017-12-01 11:42:00 -08:00
Daniel Nelson cabe10b88a
Update changelog 2017-12-01 11:23:18 -08:00
Daniel Nelson 7f66863b87
Fix HOST_MOUNT_PREFIX in docker with disk input (#3529) 2017-12-01 11:21:39 -08:00
Daniel Nelson e400ec2b57
Update changelog 2017-11-30 18:42:14 -08:00
Daniel Nelson 44320a5421
Add option to amqp output to publish persistent messages (#3528) 2017-11-30 18:40:12 -08:00
Daniel Nelson a9951710b3
Add time import 2017-11-29 17:05:13 -08:00
Daniel Nelson 6426bca1f8
Update changelog 2017-11-29 16:36:00 -08:00
Nathan Ferch f92a4f528f Add input plugin for OpenBSD/FreeBSD pf (#3405) 2017-11-29 16:32:50 -08:00
Daniel Nelson 3ba5458220
Update changelog 2017-11-29 12:17:46 -08:00
Bob Shannon beb9d7560d Add support for glob patterns in net input plugin (#3140) 2017-11-29 12:16:34 -08:00
Daniel Nelson 24d82aebe6
Update changelog 2017-11-29 12:10:56 -08:00
Daniel Nelson 7dc256e845
Update gopsutil version to include netstat fix (#3513) 2017-11-29 12:06:47 -08:00
Daniel Nelson 297897ae0a
Add dcos plugin to changelog and readme 2017-11-29 11:54:33 -08:00
Daniel Nelson 414a7e34fb
Add input plugin for DC/OS (#3519) 2017-11-29 11:50:32 -08:00
Patrick Hemmer bf65e19486 Fix postfix plugin age to use ctime, not mtime (#3525) 2017-11-29 11:25:31 -08:00
Daniel Nelson 2c70958c24
Update changelog 2017-11-29 10:52:59 -08:00
Daniel Nelson d727a6f85c
Add slab to mem plugin (#3518) 2017-11-29 10:49:45 -08:00
Daniel Nelson 4e9b19f7a6
Add bond input to readme and update changelog 2017-11-28 15:19:30 -08:00
Ildar Svetlov 132fb50150 Add bond input plugin (#3424) 2017-11-28 15:16:19 -08:00
Daniel Nelson d1ba75176d
Update changelog 2017-11-28 10:10:36 -08:00
Patrick Hemmer 76240b9f18 Add postfix input plugin (#2553) 2017-11-28 10:08:41 -08:00
Daniel Nelson 06e22ee7ac
Update changelog 2017-11-27 17:06:50 -08:00
Lukasz Jagiello a18eedb970 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 6514399baf Add shadow-utils dependency to rpm package (#3505) 2017-11-27 17:02:16 -08:00
Dylan Meissner 27994abcb5 Jolokia2 handles unordered mbean object name properties (#3504) 2017-11-27 13:43:19 -08:00
Daniel Nelson a9ada5f65b
Update changelog 2017-11-27 12:32:36 -08:00
Laurent Gosselin f758d0c6c3 Fix global variable collection when using interval_slow option in mysql input (#3500) 2017-11-27 12:29:51 -08:00
Daniel Nelson 7442b5645f
Update changelog 2017-11-20 16:50:18 -08:00
Daniel Nelson d5bd426e0c
Fix snmp tools output parsing when they contain Windows eols (#3396) 2017-11-20 16:48:30 -08:00
Daniel Nelson 154b263f14
Update changelog 2017-11-20 16:27:18 -08:00
Leandro Piccilli 92ca661662 Add support for tags in the index name in elasticsearch output (#3470) 2017-11-20 16:25:36 -08:00
Daniel Nelson 54b0b9e727
Update changelog 2017-11-20 14:40:45 -08:00
aromeyer dc2c8791d0 Add opensmtpd input plugin (#3449) 2017-11-20 14:39:13 -08:00
Daniel Nelson 367bbdeb7e
Update changelog 2017-11-20 14:37:09 -08:00
aromeyer e544d742f9 Add unbound input plugin (#3434) 2017-11-20 14:32:06 -08:00
Daniel Nelson 393c4c6c2d
Update changelog 2017-11-20 14:23:16 -08:00
Leandro Piccilli 4d1bc620b2 Add index by week number to Elasticsearch output (#3490) 2017-11-20 14:22:29 -08:00
Daniel Nelson db8e767f1f
Update changelog 2017-11-20 14:20:05 -08:00
Chris Goller afe05fcfef Use hexadecimal ids and lowercase names in zipkin input (#3488) 2017-11-20 14:19:32 -08:00
Daniel Nelson 9422cca2cc
Update changelog 2017-11-16 16:51:02 -08:00
erayaslan a06ee58785 Use MAX() instead of SUM() for latency measurements in sqlserver (#3471) 2017-11-16 16:49:51 -08:00
Daniel Nelson b13eea89b1
Update changelog and add particle webhook to readme 2017-11-16 16:11:20 -08:00
David G. Simmons b813e2ecae Add Particle Webhook Plugin (#3477) 2017-11-16 16:03:19 -08:00
Pierre Fersing 8364417009 Whitelist allowed char classes for graphite output (#3473) 2017-11-15 14:44:20 -08:00
Daniel Nelson 136c15ba33
Skip test requiring cratedb server in short test mode 2017-11-13 15:22:57 -08:00
Daniel Nelson 19839c0167
Update changelog 2017-11-13 15:09:05 -08:00
Daniel Nelson 72682973bd
Fix typo in error message 2017-11-13 15:07:54 -08:00
faye-sama a411306fba 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 cbd346117a Add tests for procstat systemd & cgroup matching (#3469) 2017-11-13 14:45:31 -08:00
Daniel Nelson 181a56018f
Update changelog 2017-11-13 11:02:01 -08:00
Patrick Hemmer 6ee6d55751 Add systemd unit pid and cgroup matching to procstat (#3459) 2017-11-13 10:59:27 -08:00
Daniel Nelson ebd73b7279
Update changelog 2017-11-10 14:39:11 -08:00
Trevor Pounds 6a57395731 Compile with Go 1.9.2 (#3458) 2017-11-10 14:39:00 -08:00
Daniel Nelson be13f69305
Update changelog 2017-11-09 14:05:36 -08:00
Felix Geisendörfer 62ec3e50d9 Add CrateDB output plugin (#3210) 2017-11-09 14:03:16 -08:00
Daniel Nelson 07297e80a8
Set 1.4.4 release date 2017-11-08 15:21:20 -08:00
Daniel Nelson f0578b8c83
Update changelog 2017-11-07 16:48:44 -08:00
Lukasz Jagiello 493af043d3 Add Solr input plugin (#2019) 2017-11-07 16:44:09 -08:00
Daniel Nelson 47d013132a
Update changelog 2017-11-07 14:37:04 -08:00
Pierre Tessier dcff769fed Add modification_time field to filestat input plugin (#3305) 2017-11-07 14:32:48 -08:00
Daniel Nelson 5141f8a2a0
Update contributing documentation 2017-11-07 13:59:06 -08:00
Daniel Nelson bb14589469
Update changelog 2017-11-07 13:59:06 -08:00
Daniel Nelson b81bea658f
Always ignore autofs filesystems in disk input (#3440) 2017-11-07 11:45:09 -08:00
Daniel Nelson 2c2dc97702
Update changelog 2017-11-07 11:43:15 -08:00
Daniel Nelson cbbdf1043b
Use current time if container read time is zero value (#3437) 2017-11-07 11:41:53 -08:00
Daniel Nelson c55f285de0
Update changelog 2017-11-07 11:36:29 -08:00
Daniel Nelson e1295c41c8
Update gopsutil to v2.17.10 (#3441) 2017-11-07 11:26:11 -08:00
Daniel Nelson e0df62c27b
Update changelog 2017-11-06 17:42:42 -08:00
Bob Shannon fdf12ce6b4 Redact datadog API key in log output (#3420) 2017-11-06 17:41:14 -08:00
Daniel Nelson e5a265c8c7
Revert particle webhook changes on master 2017-11-06 10:47:10 -08:00
David G. Simmons 112955a9f5 Merge branch 'master' of https://github.com/influxdata/telegraf into dn-particle-plugin 2017-11-04 09:30:17 -04:00
David G. Simmons da0ca8a870 Revert "Undo Revert "Revert changes since 9b0af4478""
This reverts commit 6e6aefe5da.
2017-11-04 09:19:37 -04:00
David G. Simmons 6e6aefe5da Undo Revert "Revert changes since 9b0af4478"
This reverts commit 2c31345c70.
2017-11-04 09:14:52 -04:00
David G. Simmons ae2635b547
Readme update 2017-11-04 08:43:13 -04:00
Daniel Nelson c14478f025
Update http_listener certs 2017-11-03 21:52:45 -07:00
Daniel Nelson 2c31345c70
Revert changes since 9b0af4478 2017-11-03 21:10:56 -07:00
David G. Simmons 4a9fa7ef4b Merge branch 'master' of https://github.com/influxdata/telegraf into dn-particle-plugin 2017-11-03 13:48:45 -04:00
David G. Simmons 7db06d2aa4 Revert "New Particle Plugin"
This reverts commit ba462f5c94.
2017-11-03 13:28:54 -04:00
David G. Simmons 871fae6eb3 Revert "bug fixes and refactoring"
This reverts commit 86961cc814.
2017-11-03 13:28:35 -04:00
David G. Simmons 8e587e74f5 Revert "Update README.md"
This reverts commit 8ed00af10a.
2017-11-03 13:28:00 -04:00
David G. Simmons 440918a03b Revert "Updated README.md"
This reverts commit a6ada03b91.
2017-11-03 13:27:06 -04:00
David G. Simmons f64b23b724 Revert "Small fixes"
This reverts commit a987118b01.
2017-11-03 13:27:06 -04:00
David G. Simmons c11739d143 Revert "Updated Test JSON"
This reverts commit 92caf33fff.
2017-11-03 13:27:06 -04:00
David G. Simmons 883696c224 Revert "Updated Test JSON"
This reverts commit 92caf33fff.
2017-11-03 13:16:09 -04:00
David G. Simmons 0ea0519e89
Merge branch 'master' into dn-particle-plugin 2017-11-03 12:13:49 -04:00
David G. Simmons 4596ae70a9 ignore mac-files 2017-11-03 12:07:03 -04:00
David G. Simmons 92caf33fff Updated Test JSON 2017-11-03 12:07:03 -04:00
David G. Simmons a987118b01 Small fixes
Hoping to pass CircleCI this time
2017-11-03 12:07:03 -04:00
David G. Simmons a6ada03b91 Updated README.md 2017-11-03 12:07:03 -04:00
David G. Simmons 8ed00af10a Update README.md 2017-11-03 12:07:03 -04:00
David Norton 86961cc814 bug fixes and refactoring 2017-11-03 12:07:03 -04:00
David G. Simmons ba462f5c94 New Particle Plugin 2017-11-03 12:07:03 -04:00
David G. Simmons 1d1d5e6089
Updated Test JSON 2017-11-02 17:21:50 -04:00
David G. Simmons 8560c2f88d
Fixed Readme 2017-11-02 17:19:37 -04:00
David G. Simmons 5d135cece3
test son update 2017-11-02 14:19:01 -04:00
Daniel Nelson 9b0af4478b
Remove incorrect comment about linker options 2017-11-01 18:17:51 -07:00
Daniel Nelson 26ccc1f205
Add teamspeak to readme and update changelog 2017-11-01 13:30:43 -07:00
Patric Kanngießer 76ed70340b Add Teamspeak 3 input plugin (#3315) 2017-11-01 13:27:59 -07:00
Maximilien Richer 5f215c22fe Fix typos in comments (#3415) 2017-10-31 17:00:06 -07:00
Maximilien Richer 63842d48fd Add config to input-varnish README (#3414) 2017-10-31 16:58:45 -07:00
Daniel Nelson 777b84d1dc
Clarify what it means to filter metrics from processors 2017-10-30 16:32:39 -07:00
Daniel Nelson c116af35c7
Update changelog 2017-10-30 15:35:34 -07:00
Daniel Nelson fcfcc803b1
Use explicit schemas in mqtt_consumer input (#3401) 2017-10-30 15:33:20 -07:00
Daniel Nelson 4d5de8698b
Update changelog 2017-10-30 13:53:45 -07:00
Aditya C S 23ad959d71 Add support for SSL settings to ElasticSearch output plugin (#3406) 2017-10-30 13:52:40 -07:00
Aditya C S d9fa916711 Update docker plugin README (#3404) 2017-10-30 12:26:39 -07:00
Daniel Nelson 53b13a20d0
Update changelog 2017-10-27 11:55:17 -07:00
Maximilien Richer ffa8a4a716 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 8b4708c82a
Update changelog 2017-10-26 13:37:54 -07:00
Vladimir S 88ec171293 Perform DNS lookup before ping (#3385) 2017-10-26 13:35:37 -07:00
Daniel Nelson 5885ef2c1c
Update changelog 2017-10-25 15:29:56 -07:00
Daniel Nelson a519abf13f Gather concurrently from snmp agents (#3365) 2017-10-25 15:28:55 -07:00
Daniel Nelson 6ea61b55d9
Set release date for 1.4.3 2017-10-25 14:15:10 -07:00
Daniel Nelson 206397d475
Update changelog 2017-10-24 16:31:22 -07:00
Jeremy Doupe a6797a44d5 Add history and summary types to telegraf and prometheus plugins (#3337) 2017-10-24 16:28:52 -07:00
Daniel Nelson 13c1f1524a
Update changelog 2017-10-24 16:25:49 -07:00
Daniel Nelson 9a062498e7 Use golang.org/x/sys/unix instead of syscall in diskio (#3384) 2017-10-24 16:22:31 -07:00
Daniel Nelson f64cf89db1
Update changelog 2017-10-24 15:46:47 -07:00
Daniel Nelson 6d1777276c If the connector name cannot be unquoted, use the raw value (#3371) 2017-10-24 15:36:23 -07:00
Daniel Nelson 65580759fc
Update changelog 2017-10-23 12:36:31 -07:00
Sergei Smolianinov d2f9fc7d8c Fix ACL token usage in consul input plugin (#3376) 2017-10-23 12:31:27 -07:00
Daniel Nelson 77cc071796
Update changelog 2017-10-19 17:06:14 -07:00
Daniel Nelson 4deb6238a3 Add support for decimal timestamps to ts-epoch modifier (#3358) 2017-10-19 16:36:32 -07:00
Daniel Nelson 7088d98304
Update changelog 2017-10-19 16:27:29 -07:00
Daniel Nelson 4243403432 Remove warning when JSON contains null value (#3359) 2017-10-19 16:25:58 -07:00
Mamat Rahmat 3bbc2beeed Fix small typo in documentation (#3364) 2017-10-19 14:47:40 -07:00
Daniel Nelson 0e6a70b199
Update changelog 2017-10-18 17:43:01 -07:00
Daniel Nelson ec4efe5b03 Use labels in prometheus output for string fields (#3350) 2017-10-18 17:42:30 -07:00
Daniel Nelson adb1f5588c
Update changelog 2017-10-18 14:53:34 -07:00
Daniel Nelson 6e5915c59f Fix prometheus passthrough for existing value types (#3351) 2017-10-18 14:51:08 -07:00
Daniel Nelson 9b59cdd10e
Update changelog 2017-10-18 13:57:58 -07:00
clheikes 02baa696c3 Fix TELEGRAF_OPTS expansion in systemd service unit (#3354) 2017-10-18 13:57:32 -07:00
Daniel Nelson a4fa19252f
Update changelog 2017-10-18 12:47:58 -07:00
Daniel Nelson 7ba376964c
Update changelog 2017-10-18 12:25:46 -07:00
Ayrdrie a75ab3e190 Fix mongodb input panic when restarting mongodb (#3355) 2017-10-18 12:24:30 -07:00
Daniel Nelson 2208657d73
Add release date info to FAQ 2017-10-17 10:43:53 -07:00
Daniel Nelson 9d8e935734
Update changelog 2017-10-16 14:26:12 -07:00
Pierre Fersing f5a9d1bc75 Fix CPU system plugin gets stuck after system suspend (#3342) 2017-10-16 14:25:00 -07:00
Daniel Nelson 4b05edea53
Update changelog 2017-10-16 14:19:16 -07:00
Craig Wickesser 246ffab3e0 Add UDP IPv6 support to statsd input (#3344) 2017-10-16 14:18:36 -07:00
Daniel Nelson 3ea41e885c
Update changelog 2017-10-16 11:27:00 -07:00
Daniel Nelson 1f348037b7 Fix case sensitivity issue in sqlserver query (#3336) 2017-10-16 11:26:16 -07:00
Daniel Nelson 86f19dee2b
Fix typo in ipmi_sensor readme 2017-10-16 11:10:06 -07:00
Daniel Nelson a1796989f7
Add ipmi_sensor permission documentation 2017-10-13 13:53:18 -07:00
Daniel Nelson 6b67fedfdc
Remove timing sensitive riemann test 2017-10-13 11:30:30 -07:00
Daniel Nelson 5cd3327d5f
Update changelog 2017-10-13 11:12:27 -07:00
Adam Johnson bf9f94eb9d Fix cloudwatch output requires unneeded permissions (#3335) 2017-10-13 11:04:40 -07:00
Daniel Nelson 0f9f757da7
Update changelog 2017-10-12 17:26:58 -07:00
Windkit Li 2f8d0f4d47 Fix snmpwalk address format in leofs input (#3328) 2017-10-12 17:26:14 -07:00
Daniel Nelson 024dea2ff9
Update changelog 2017-10-12 15:52:01 -07:00
Daniel Nelson fa25e123d8 Fix container name filters in docker input (#3331) 2017-10-12 15:50:09 -07:00
Patrick Hemmer bed14e5037 Fix documented equation for diskio average queue depth (#3334) 2017-10-12 15:08:51 -07:00
Daniel Nelson c74c29b164
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 4e0c8e6026
Set 1.4.2 release date 2017-10-10 13:29:31 -07:00
Daniel Nelson d7ea83f39b
Update readme and changelog for basicstats aggregator 2017-10-10 12:04:41 -07:00
Toni Moreno b641f06552 Add new basicstats aggregator (#2167) 2017-10-10 12:02:01 -07:00
Pierre Tessier c7a6d4eaa4 Fix link for wavefront plugin in changelog (#3317) 2017-10-10 11:21:46 -07:00
Daniel Nelson 61b0336d97
Use 5 second timeout overhead when waiting for ping to complete 2017-10-09 15:09:07 -07:00
Daniel Nelson 761544f56d
Add HasPoint method to testutil.Accumulator 2017-10-09 15:02:57 -07:00
Daniel Nelson 0f452ad0df
Document /etc/default/telegraf file 2017-10-06 16:57:57 -07:00
Daniel Nelson 4093bc98b7
Update changelog 2017-10-06 16:17:09 -07:00
Christian Meilke 75567d5b51 Add ability to limit node stats in elasticsearch input (#3304) 2017-10-06 16:16:32 -07:00
Daniel Nelson 59bb31e765
Use golang 1.9.1 2017-10-05 16:19:53 -07:00
Daniel Nelson 13c7802b84
Update changelog 2017-10-05 16:15:43 -07:00
Daniel Nelson cce40c515a Use chunked transfer encoding in InfluxDB output (#3307) 2017-10-05 16:14:21 -07:00
Daniel Nelson 6e1fa559a3
Update changelog 2017-10-05 16:05:51 -07:00
Daniel Nelson f56dda0ac8 Fix panic in cpu input if number of cpus changes (#3306) 2017-10-05 16:02:21 -07:00
Daniel Nelson 4fab572b6b
Release buffer back to pool earlier 2017-10-05 12:12:14 -07:00
Daniel Nelson b9f319529f
Update changelog 2017-10-04 15:30:11 -07:00
Christian Meilke 0bb32570ba Add cluster health level configuration to elasticsearch input (#3269) 2017-10-04 15:29:32 -07:00
Daniel Nelson a4ea4c7a25
Add smart to changelog and readme 2017-10-04 15:18:15 -07:00
Rickard von Essen e69c3f9d1c Add smart input plugin for collecting S.M.A.R.T. data (#2449) 2017-10-04 15:15:58 -07:00
Daniel Nelson 002ccf3295
Update changelog 2017-10-03 15:25:19 -07:00
Daniel Nelson a163effa6d Add support for proxy environment variables to http_response (#3302) 2017-10-03 15:22:57 -07:00
Daniel Nelson 93ff811358
Update changelog 2017-10-03 14:37:02 -07:00
Aditya C S dd4299e925 Collect Docker Swarm service metrics in docker input plugin (#3141) 2017-10-03 14:36:26 -07:00
Daniel Nelson b610276485
Skip invalid urls in nginx input 2017-10-03 10:54:31 -07:00
David Norton 6aee40fac1 bug fixes and refactoring 2017-10-03 09:07:15 -04:00
Pierre Tessier 79f66dc5b3 Added newline to each metric line in wavefront output (#3290) 2017-10-02 17:42:21 -07:00
Daniel Nelson 0a55ab42b4
Update changelog 2017-10-02 17:39:32 -07:00
Jimena Cabrera Notari aba269e94c Add extra wired tiger cache metrics to mongodb input (#3281) 2017-10-02 17:38:51 -07:00
Daniel Nelson f67350107d
Update changelog 2017-10-02 17:16:38 -07:00
Daniel Nelson 8e3ed96d6f Fix case sensitivity error in sqlserver input (#3287) 2017-10-02 17:15:34 -07:00
Daniel Nelson 771fbc311a
Regenerate TLS certs due to expiration 2017-10-02 15:44:55 -07:00
David G. Simmons d7b88b10ad New Particle Plugin 2017-10-02 16:50:23 -04:00
Daniel Nelson cdca81c999
Fix mqtt_consumer connection_timeout test 2017-10-02 12:28:31 -07:00
Daniel Nelson ed6f438c9d
Add Wavefront output to changelog and readme 2017-09-29 16:15:48 -07:00
Pierre Tessier 366f3f560c Add Wavefront output plugin (#3160) 2017-09-29 16:13:08 -07:00
Daniel Nelson e4f5547d37
Update example config 2017-09-29 16:09:31 -07:00
Daniel Nelson e1bf655ef9
Add deprecation notice to jolokia sample config 2017-09-29 16:08:31 -07:00
Daniel Nelson 29b6f4168c
Update changelog 2017-09-29 15:59:56 -07:00
Daniel Nelson 3d62e045af Fix format of connection_timeout in mqtt_consumer (#3286) 2017-09-29 15:58:38 -07:00
Daniel Nelson ad4a5aa7a0
Document how to exclude kubernetes annotation 2017-09-29 14:07:19 -07:00
Daniel Nelson f2cb1da7cf
Update changelog 2017-09-29 11:50:15 -07:00
François de Metz c3d15f0aff Add support for the rollbar occurrence webhook event. (#1692) 2017-09-29 11:49:22 -07:00
David G. Simmons b2453e3ec3 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 c3b11f9cfb New Particle.io Plugin for Telegraf
Only the tests need to be fixed.
2017-09-29 12:45:06 -04:00
Daniel Nelson cd1791494a
Update changelog 2017-09-27 11:38:43 -07:00
Daniel Nelson 402460f038
Use underscore as default opentsdb seperator
Preserves backwards compatibility
2017-09-27 11:36:41 -07:00
owlet123 f85db90780 Add configurable separator for metrics and fields in opentsdb output (#3106) 2017-09-27 11:29:40 -07:00
Daniel Nelson 9bddd50a64
Add deprecation notice to jolokia plugin 2017-09-27 10:52:10 -07:00
Daniel Nelson b8a0b8461a
Update changelog and readme for jolokia2 plugin 2017-09-26 17:42:38 -07:00
Dylan Meissner ee26191eb5 Add redesigned Jolokia input plugin (#2278) 2017-09-26 17:34:46 -07:00
Daniel Nelson cadafa6405
Update changelog 2017-09-26 16:03:04 -07:00
Daniel Nelson 22a9ffbb9d Allow JSON data format to contain zero metrics (#3268) 2017-09-26 15:58:33 -07:00
Daniel Nelson 2e1457a496
Update changelog 2017-09-26 15:38:22 -07:00
Daniel Nelson 8614445235 Fix parsing of JSON with a UTF8 BOM in httpjson (#3267) 2017-09-26 15:36:00 -07:00
Daniel Nelson f23d1eb078
Update changelog 2017-09-26 15:28:07 -07:00
Daniel Nelson ef5c12bd86 Fix dmcache tests with 32bit int 2017-09-26 15:25:57 -07:00
Daniel Nelson c013cc1497 Fix cgroup tests with 32bit int 2017-09-26 15:25:57 -07:00
Daniel Nelson bb665cf013 Fix ceph tests with 32bit int 2017-09-26 15:25:57 -07:00
Daniel Nelson 5dff5932fd Fix nginx_plus tests with 32bit int 2017-09-26 15:25:57 -07:00
Daniel Nelson f823fc73f6 Allow 64bit integers in kernel_vmstat 2017-09-26 15:25:57 -07:00
Daniel Nelson fd702e6bb8
Set 1.4.1 release date in changelog 2017-09-26 14:19:02 -07:00
Daniel Nelson 50024c1860
Update changelog 2017-09-25 16:34:04 -07:00
Lukasz Jagiello a4b8805f7f Add support for NSQLookupd to nsq_consumer (#3215) 2017-09-25 16:33:05 -07:00
James 837e6b1a32 Add additional numeric type handling tests for postgresql_extensible (#3066) 2017-09-25 10:58:10 -07:00
Agniva De Sarker 063f3f68df Improve statsd plugin perf by using a byte buffer pool (#3254) 2017-09-25 10:55:02 -07:00
Daniel Nelson b24663b0bd
Remove nightly versioning scheme 2017-09-22 18:07:08 -07:00
Daniel Nelson 366bda45c3
Remove out of date Vagrantfile 2017-09-22 17:35:58 -07:00
Daniel Nelson c010fb1c3c
Fix build versioning; add dev.docker file 2017-09-22 17:35:58 -07:00
Daniel Nelson 08c197f73a
Fix golang version 2017-09-22 17:35:58 -07:00
Daniel Nelson cafb22d145
Fix unittest for golang 1.9 2017-09-22 17:35:58 -07:00
Christian Meilke 73df179bd6 Tag original URL for k8s services in prometheus input (#3257) 2017-09-22 17:26:19 -07:00
Daniel Nelson c3bea59f3b
Update changelog 2017-09-22 11:46:47 -07:00
Daniel Nelson 52393582d2 Unlock Statsd when stopping to prevent deadlock (#3258) 2017-09-22 11:45:45 -07:00
Daniel Nelson ce29ca78e3
Add nginx_plus to changelog and readme 2017-09-19 11:49:55 -07:00
Patrick O'Brien 6e6ed075dc Add new nginx_plus input plugin (#3214) 2017-09-19 11:46:01 -07:00
Daniel Nelson c0a4bd99a1
Update changelog 2017-09-19 11:27:57 -07:00
Paulo Cabido decb09e760 Add configurable metrics endpoint to prometheus output (#3245) 2017-09-19 11:27:11 -07:00
Daniel Nelson a63f80e017
Build with go 1.9 on circleci 2017-09-18 16:30:09 -07:00
Daniel Nelson daee48c861
Update prometheus input documentation 2017-09-18 16:21:45 -07:00
Daniel Nelson dea8bf7ac0
Update changelog 2017-09-18 15:07:18 -07:00
Christian Meilke 292c5229bf Add support for k8s service DNS discovery to prometheus input (#3236) 2017-09-18 15:06:11 -07:00
Daniel Nelson 0048bf2120
Update changelog 2017-09-18 14:25:17 -07:00
Daniel Nelson b8e134cd37 Fix arm64 packages contain 32-bit executable (#3246) 2017-09-18 14:22:54 -07:00
Patrick Hemmer 0339dc7faf Add process resource limits to procstat input (#3231) 2017-09-15 11:16:44 -07:00
Daniel Nelson 575a07c985
Update input plugin example readme. 2017-09-14 15:50:55 -07:00
Daniel Nelson b94cda6b46
Update changelog 2017-09-14 15:28:47 -07:00
Trevor Pounds 73372872c2 Fix panic in statsd p100 calculation (#3230) 2017-09-14 15:27:42 -07:00
Daniel Nelson 103ae3b710
Update changelog 2017-09-14 15:22:46 -07:00
Trevor Pounds 171332c579 Add support for timing sums in statsd input (#3234) 2017-09-14 15:21:54 -07:00
Daniel Nelson 875ab3c4b7
Update changelog 2017-09-14 15:05:03 -07:00
Mark Wilkinson - m82labs 1c5ebd4be3 Fix duplicate keys in perf counters sqlserver query (#3175) 2017-09-14 15:04:13 -07:00
Daniel Nelson 103d24bfba
Update changelog 2017-09-14 15:00:55 -07:00
Daniel Nelson d5f48e3e96 Fix skipped line with empty target in iptables (#3235) 2017-09-14 14:59:28 -07:00
Daniel Nelson 7a41d2c586
Update changelog 2017-09-14 13:06:58 -07:00
Trevor Pounds fa1982323a Fix counter and gauge metric types. (#3232) 2017-09-14 13:05:37 -07:00
Daniel Nelson cdf63c5776
Update changelog 2017-09-13 17:31:39 -07:00
Daniel Nelson 0a8c2e0b3b Whitelist allowed char classes for opentsdb output. (#3227) 2017-09-13 17:30:52 -07:00
Daniel Nelson 9197a59cdb
Update changelog 2017-09-13 17:28:33 -07:00
Dimitris Rozakis 9c8f4afa37 Respect path prefix in influx output uri (#3224) 2017-09-13 17:27:01 -07:00
Daniel Nelson eebee9759f
Fix fluentd test 2017-09-12 17:57:55 -07:00
Daniel Nelson ee85f9275e
Update changelog 2017-09-12 17:27:50 -07:00
Daniel Nelson 4e53464fe2
Remove unneeded error check 2017-09-12 17:24:57 -07:00
Adrián López 2163981872 Add timeout option for kubernetes (#3211) 2017-09-12 17:22:15 -07:00
Daniel Nelson c5cfde667a
Update changelog 2017-09-12 17:17:41 -07:00
Daniel Nelson 8a68e7424c
Fix optional field types in fluentd input 2017-09-12 17:15:19 -07:00
Daniel Nelson cc63b3b667
Update changelog 2017-09-11 12:27:39 -07:00
DanKans 5488f4b3ac Fix MQTT input exits if Broker is not available on startup (#3202) 2017-09-11 12:24:51 -07:00
Daniel Nelson 14a4b108b4
Update changelog 2017-09-11 11:57:18 -07:00
Daniel Nelson 32f313a6a6 Add polling method to logparser and tail inputs (#3213) 2017-09-11 11:56:04 -07:00
Daniel Nelson c720200883
Update changelog 2017-09-11 11:54:18 -07:00
DanKans f62e543003 Fix address already in use with webhooks input during reload (#3206) 2017-09-11 11:51:45 -07:00
Daniel Nelson be83c8c8f0
Update changelog 2017-09-08 16:02:15 -07:00
Jeff Nickoloff c809debfd4 TLS and MTLS enhancements to HTTPListener input plugin (#3191) 2017-09-08 16:01:16 -07:00
Daniel Nelson 247c2e71fd
Update changelog 2017-09-08 15:36:26 -07:00
Daniel Nelson 7b08f9d099 Add support for standard proxy env vars in outputs. (#3212) 2017-09-08 15:35:20 -07:00
Daniel Nelson d0b690f040 Fix short tests on darwin (#3099) 2017-09-08 13:03:37 -07:00
Daniel Nelson 98ca22597d
Update changelog 2017-09-06 14:29:03 -07:00
Raúl Benencia 99dfc69fbb Include mount mode option in disk metrics (#3027) 2017-09-06 14:28:11 -07:00
Daniel Nelson 144862354a
Update changelog 2017-09-06 14:20:38 -07:00
Daniel Nelson 402a0f16e1
Fix typo 2017-09-06 14:19:42 -07:00
Pavel Gurkov 5d4eec606f Add Kafka output plugin topic_suffix option (#3196) 2017-09-06 14:18:26 -07:00
Daniel Nelson ab1c11b06d
Add 1.4.0 release date 2017-09-05 17:14:11 -07:00
Daniel Nelson 864ea1efaf
Improve question title in FAQ 2017-09-05 17:12:36 -07:00
Daniel Nelson 4fb1c3a2bc
Add FAQ doc with dns resolver information 2017-09-05 13:12:11 -07:00
Daniel Nelson 9796d3c99d
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 98e784faf3
Sort metrics before comparing in graphite test 2017-09-05 12:50:30 -07:00
rdxmb 16d6011ca1 Fix docker image name in docs (#3193) 2017-09-05 11:44:51 -07:00
Daniel Nelson f43af72785
Update changelog 2017-08-31 13:43:47 -07:00
Daniel Nelson 28d16188b3 Fix panic when handling string fields with escapes (#3188) 2017-08-30 21:16:37 -07:00
Daniel Nelson 19f3264073
Update changelog 2017-08-29 16:27:02 -07:00
Daniel Nelson 8225bd0173
Convert bool fields to int in graphite serializer 2017-08-29 16:22:03 -07:00
Seua Polyakov 3806424aab Skip non-numerical values in graphite format (#3179) 2017-08-29 15:59:38 -07:00
Daniel Nelson ef8876b70b
Move changelog item to 1.4 2017-08-28 17:17:03 -07:00
Daniel Nelson 5fd8ab36d3
Update changelog 2017-08-28 17:08:44 -07:00
Jeff Nickoloff ac1fa05672 Added CloudWatch metric constraint validation (#3183) 2017-08-28 16:56:03 -07:00
Daniel Nelson 73d57c8a02
Update changelog 2017-08-28 16:30:51 -07:00
Nevins 95fe0e43f5 Add support for sharding based on metric name (#3170) 2017-08-28 16:24:38 -07:00
Daniel Nelson 02f7b0d030
Update changelog 2017-08-28 16:11:00 -07:00
Dylan Meissner a9a40cbf87 HTTP headers can be added to InfluxDB output (#3182) 2017-08-28 16:08:50 -07:00
Daniel Nelson a98496591a
Update changelog 2017-08-25 18:08:33 -07:00
Ashton Kinslow 0a6541dfa8 Fix NSQ input plugin when used with version 1.0.0-compat 2017-08-25 18:06:48 -07:00
Daniel Nelson 8ecc58639a
Close response bodies in http_listener test 2017-08-25 13:58:45 -07:00
Daniel Nelson 6abecd0ac7
Update changelog 2017-08-25 12:59:19 -07:00
Rickard von Essen 0502b65316 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 e400fcf5da
Update changelog 2017-08-25 11:55:59 -07:00
Jan Willem Janssen d449833de9 Fix parsing of SHM remotes in ntpq input (#3163) 2017-08-25 11:54:06 -07:00
Daniel Nelson 58751fa4df
Update fail2ban documentation 2017-08-25 11:42:07 -07:00
Daniel Nelson 656ce31d98
Fix amqp_consumer data_format documentation
closes #3164
2017-08-24 13:17:29 -07:00
Daniel Nelson 485e273187
Add links to nightly builds 2017-08-23 15:42:25 -07:00
Daniel Nelson f95c239a3f
Update changelog 2017-08-23 15:21:48 -07:00
Daniel Nelson ae24a0754b Escape backslash within string fields (#3161) 2017-08-23 15:17:26 -07:00
Daniel Nelson f253623231
Update changelog 2017-08-23 15:16:04 -07:00
Rickard von Essen f0db4fd901 Enable hddtemp on all platforms (#3153)
Also disables dmcache tests on non-linux.
2017-08-23 15:14:32 -07:00
Daniel Nelson 8c68bd9ddb
Update changelog 2017-08-22 17:03:00 -07:00
Daniel Nelson 9fc7220c2e Don't start Telegraf on install in Amazon Linux (#3156) 2017-08-22 17:01:59 -07:00
Daniel Nelson 6597b55477
Update changelog 2017-08-22 16:55:15 -07:00
Daniel Nelson 1f4a997164 Don't retry points beyond retention policy (#3155) 2017-08-22 16:52:26 -07:00
Daniel Nelson 5224b526f4
Hide output of git describe 2017-08-22 13:32:52 -07:00
Rickard von Essen 371638ce56 Enable fail2ban on all platforms (#3151) 2017-08-22 12:58:00 -07:00
Rickard von Essen 53c5d3a290 Enable chrony for all platforms (#3152) 2017-08-22 11:49:51 -07:00
Daniel Nelson b480022330
Update config directory documentation 2017-08-22 11:33:26 -07:00
Daniel Nelson ccf17a9f93
Cache intermediate objects during build 2017-08-21 17:26:55 -07:00
Chris Goller 13a6b917c3 Add JSON input support to zipkin plugin (#3150) 2017-08-21 17:24:54 -07:00
Daniel Nelson 1f1e9cc49f
Add win_services to the readme 2017-08-18 17:57:30 -07:00
Daniel Nelson 70c2b83f00 Update histogram aggregator documentation (#3133) 2017-08-18 13:24:05 -07:00
Daniel Nelson 4de264ffc8
Remove version test 2017-08-18 11:08:48 -07:00
Daniel Nelson 36c2c88fd2
Update example config 2017-08-17 18:54:06 -07:00
Daniel Nelson e31d91f0f9 Add queues to rabbitmq documentation (#3135) 2017-08-17 18:52:27 -07:00
Daniel Nelson 3006ccbf2f
Update master for 1.5 development 2017-08-16 16:54:15 -07:00
Daniel Nelson 8b588ea37f
Update sample config 2017-08-16 16:46:40 -07:00
Daniel Nelson 7608251633
Add tomcat input to changelog and readme 2017-08-16 15:36:56 -07:00
Daniel Nelson 1e9d7cd6e9
Add error status handle to tomcat input 2017-08-16 15:33:47 -07:00
mlindes a91457e001 Add tomcat input plugin (#3112) 2017-08-16 15:33:20 -07:00
Daniel Nelson fd3a9bf46a
Update changelog 2017-08-16 12:26:00 -07:00
Daniel Nelson ca394fcfb2 Discard logging from tail library (#3128) 2017-08-16 12:06:07 -07:00
Daniel Nelson 3819607511 Allow using system plugin in Windows (#3127) 2017-08-16 12:05:46 -07:00
Daniel Nelson eb0215c382 Remove log message on ping timeout (#3126) 2017-08-16 11:59:41 -07:00
Daniel Nelson 09153c815c
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 9bc13f143e
Test for nil metric before reading tags in logparser 2017-08-15 11:43:16 -07:00
Daniel Nelson 032348c7a5
Update changelog 2017-08-14 14:51:28 -07:00
Bob Shannon 5fbdd09aaf Add gzip content-encoding support to influxdb output (#2978) 2017-08-14 14:50:15 -07:00
Daniel Nelson 7d5dae5a08 Improve apache input docs (#3120) 2017-08-11 17:50:51 -07:00
Daniel Nelson 54be037911
Use double hyphen in cli examples 2017-08-11 16:26:54 -07:00
Daniel Nelson 5003809e97
Merge LDFLAGS from env into build 2017-08-11 16:26:54 -07:00
G-Research 1b50f14d55 Build NTPQ input on Windows (#3117) 2017-08-11 13:36:25 -07:00
Patrick Hemmer b0109b3550 Add weighted_io_time to diskio input (#3119) 2017-08-11 11:49:42 -07:00
Daniel Nelson 257b460f61
Update changelog 2017-08-10 12:41:09 -07:00
Daniel Nelson 287a44de5e Skip compilcation of logparser and tail on solaris (#3113)
Allows compilation for solaris
2017-08-10 12:36:11 -07:00
Daniel Nelson 73897d1f1c
Update changelog 2017-08-10 10:22:11 -07:00
Daniel Nelson 1e2d594af0 Converge to typed value in prometheus output (#3104) 2017-08-10 10:19:28 -07:00
Daniel Nelson 83c003e594
Update changelog 2017-08-09 11:48:36 -07:00
Daniel Nelson 84ce9629a8
Tweak formatting of varnish README 2017-08-09 11:48:12 -07:00
Daniel Nelson 3c14b46f6f
Fix ordering of all target 2017-08-09 11:47:55 -07:00
Benjamin Stromski 8a2373e8c8 Add option to run varnish under sudo (#3097) 2017-08-09 11:38:54 -07:00
Daniel Nelson cb04fa1e9c
Add diskio %util sample query 2017-08-09 11:28:27 -07:00
Seva Poliakov 92af42a847 Remove tag_env duplicate from docker README (#3109) 2017-08-09 10:21:22 -07:00
Daniel Nelson bceb020d72
Update changelog and readme 2017-08-08 11:50:16 -07:00
Rodolphe Blancho d9deb266df Add salesforce input plugin (#3075) 2017-08-08 11:48:01 -07:00
Slawomir Skowron f3435f1c59 Add TCP listener for statsd input (#2293) 2017-08-08 11:41:26 -07:00
Daniel Nelson f9573ad969
Remove Godeps_windows from build.py 2017-08-07 17:43:06 -07:00
Daniel Nelson 40aacd9046
Fix artifact redirection 2017-08-07 17:41:52 -07:00
Daniel Nelson 5e73f3e816
Only upload nightly if on master branch 2017-08-07 17:24:35 -07:00
Daniel Nelson a1e7a5f474
Upload as nightly builds if PACKAGE set 2017-08-07 17:16:34 -07:00
Daniel Nelson 828c5817f9
Update changelog 2017-08-07 16:18:01 -07:00
Daniel Nelson 3e27134872 Add path tag to logparser containing path of logfile (#3098) 2017-08-07 16:16:31 -07:00
Daniel Nelson 1fb5373962
Build releases with -w -s ldflags 2017-08-07 15:47:20 -07:00
Daniel Nelson 75e6ebcf93
Update changelog 2017-08-07 14:39:22 -07:00
Vlasta Hajek e21f2de8b8 Add Windows Services input plugin (#3023) 2017-08-07 14:36:15 -07:00
Daniel Nelson 795f02ab88 Cleanup Makefile (#3089) 2017-08-03 11:54:05 -07:00
Daniel Nelson 360d03e301
Update changelog and readme 2017-08-02 18:02:41 -07:00
Daniel Nelson 137b312fa9 Add Zipkin input plugin (#3080) 2017-08-02 17:58:26 -07:00
Daniel Nelson ce12913bc2
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 d82c5062b8 Add Appveyor continuous integration (#3074) 2017-07-31 16:12:09 -07:00
Daniel Nelson 6666e6a5a7
Update changelog 2017-07-31 11:37:32 -07:00
Vladislav Mugultyanov 9c0aadf445 Add histogram aggregator plugin (#2387) 2017-07-31 11:33:51 -07:00
Daniel Nelson 3bd14ed229
Update changelog 2017-07-31 11:30:27 -07:00
DanKans 5e95367f6c Sanitize password from couchbase metric (#3033) 2017-07-31 11:29:14 -07:00
Jeff Ashton c31e7d0b91 Fix win_perf_counters tests (#3068) 2017-07-31 11:03:26 -07:00
Oscar Sironi f8c84302a4 Add config file path troubleshooting advice for Windows (#3071) 2017-07-31 10:58:12 -07:00
Daniel Nelson 9143670d6e
Update changelog 2017-07-27 17:19:33 -07:00
Daniel Nelson f0bd69d904 Add tls options to docker input (#3063) 2017-07-27 17:18:44 -07:00
Daniel Nelson 7179290dea
Update changelog 2017-07-27 15:21:52 -07:00
Daniel Nelson c4297f40ad Allow iptable entries with trailing text (#3060) 2017-07-27 15:21:06 -07:00
Daniel Nelson 0d4c954e01
Update changelog 2017-07-27 15:15:11 -07:00
Daniel Nelson d6cf9f4f30 Fix docker memory and cpu reporting in Windows (#3043) 2017-07-27 15:12:29 -07:00
Daniel Nelson 5f88be022c
Add circleci parameter to build packages 2017-07-26 17:13:50 -07:00
Daniel Nelson 284ab79a37
Set 1.3.5 release date 2017-07-26 15:53:49 -07:00
Daniel Nelson 2bd6c80506
Update changelog 2017-07-25 17:12:45 -07:00
Daniel Nelson 0ca936a12e Default to localhost if zookeeper has no servers set (#3056) 2017-07-25 17:08:32 -07:00
Daniel Nelson a26fc52181 Fix panic in logparser if file cannot be opened (#3055) 2017-07-25 17:08:03 -07:00
Daniel Nelson 83f575fcea Add redis_version field to redis input (#3054) 2017-07-25 17:07:43 -07:00
Daniel Nelson ffd1f25b75
Update changelog 2017-07-25 16:09:48 -07:00
Daniel Nelson 1658404cea
Update changelog 2017-07-25 15:43:13 -07:00
Daniel Nelson 82ea04f188 Fix prometheus output cannot be reloaded (#3053) 2017-07-25 15:41:18 -07:00
xin053 273d0b85b0 Correct spelling of toml field in mysql input (#3051) 2017-07-25 10:57:27 -07:00
Théophile Helleboid - chtitux f3917ec5ff Fix typo in postgresql_extensible/README.md (#3052) 2017-07-25 10:39:14 -07:00
Daniel Nelson 428455e032
Update changelog 2017-07-24 18:26:29 -07:00
Daniel Nelson 573bd4aa32 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 ab5205f8c3 Fix go vet under windows (#3046) 2017-07-24 12:36:33 -07:00
Daniel Nelson 85aa212467
Update changelog 2017-07-21 16:57:28 -07:00
Daniel Nelson 840d19db35 Add network option to dns_query (#3042) 2017-07-21 16:56:08 -07:00
Daniel Nelson 1c267e9b16
Update changelog 2017-07-21 15:46:22 -07:00
Andy Cobaugh 1ff6e92193
Add input plugin for OpenLDAP (#2612) 2017-07-21 15:44:20 -07:00
Daniel Nelson c82c0e596b
Update changelog 2017-07-21 14:31:25 -07:00
Daniel Nelson 31ce98fa91 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 4d66db1603
Update changelog 2017-07-21 14:26:39 -07:00
Yann Cézard 681d20083a Only report cpu usage for online cpus in docker input (#3035) 2017-07-21 14:25:17 -07:00
Daniel Nelson 4ee74ff54b
Document GNU make requirement 2017-07-21 11:15:00 -07:00
Daniel Nelson 16073e4172
Update changelog 2017-07-21 10:57:39 -07:00
Daniel Nelson 3c204d409d
Line wrap documentation 2017-07-21 10:57:12 -07:00
DanKans d903a9142d 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 a2d4453269
Update changelog 2017-07-19 13:09:49 -07:00
DanKans 34c042c7dc Fix combined tagdrop/tagpass filtering (#3031) 2017-07-19 13:08:40 -07:00
Daniel Nelson 4dfe2312d0
Switch skipped kafka test 2017-07-18 18:18:57 -07:00
Daniel Nelson c740dce36d
Update download information in readme 2017-07-18 13:54:38 -07:00
Daniel Nelson 475a926d43
Update changelog 2017-07-18 11:03:07 -07:00
DanKans d2626f1da6 Fix ntpq parse issue when using dns_lookup (#3026) 2017-07-18 11:01:08 -07:00
soldierkam f5a8415c78
Add read timeout to socket_listener 2017-07-17 18:34:36 -07:00
Daniel Nelson 1d416a4213
Remove command in example output 2017-07-17 15:08:17 -07:00
Daniel Nelson 731ab9773d
Update changelog 2017-07-17 12:01:35 -07:00
Daniel Nelson d8f7b76253
Prevent startup if intervals are 0 2017-07-17 11:58:47 -07:00
Daniel Nelson dbe2f79019
Update changelog 2017-07-14 10:45:32 -07:00
Bob Shannon ef63908541 Add result_type field to net_response input plugin (#2990) 2017-07-14 10:43:36 -07:00
Daniel Nelson 27e47614c6
Add credits for new plugins to changelog 2017-07-13 16:14:18 -07:00
Daniel Nelson dc4a133b11
Update changelog 2017-07-13 16:00:09 -07:00
DanKans f4d67d8c3c Add fluentd input plugin (#2661) 2017-07-13 15:58:20 -07:00
Daniel Nelson 785798611e
Update changelog 2017-07-13 15:39:45 -07:00
Daniel Nelson b165ce4cd5 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 d9d1ca5a46
Add release date for 1.3.4 2017-07-12 17:15:38 -07:00
Daniel Nelson 2c10806fef
Update changelog 2017-07-12 12:04:43 -07:00
Daniel Nelson 5d2c093105 Prevent Write from being called concurrently (#3011) 2017-07-12 12:03:23 -07:00
Daniel Nelson f68bab1667
Update changelog 2017-07-11 15:55:44 -07:00
Daniel Nelson 1388e2cf92 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 af318f4959
Update changelog 2017-07-11 14:10:09 -07:00
JSH 9f244cf1ac Fix chrony plugin does not track system time offset (#2989) 2017-07-11 14:08:40 -07:00
Daniel Nelson 885aa8e6e1
Update changelog 2017-07-10 19:07:28 -07:00
Daniel Nelson 945446b36f 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 4209ebfa6e
Update changelog 2017-07-10 12:23:16 -07:00
Daniel Nelson 79f8ed874a Update elastic version to 5.0.41 (#2999) 2017-07-10 12:18:56 -07:00
Daniel Nelson 739d97639a
Update dependencies 2017-07-10 12:01:22 -07:00
Wesley Merkel ac8e28f436 Add link to Graylog input to README.md (#2995) 2017-07-10 11:22:37 -07:00
Daniel Nelson 2740a3ba44
Update changelog 2017-07-05 14:29:59 -07:00
Song Wenhao 0f850400f2 Display error message if prometheus output fails to listen (#2984) 2017-07-05 14:28:44 -07:00
Daniel Nelson 74a764d549
Update changelog 2017-06-29 16:17:08 -07:00
Aleksey Shirokih a8a637809e Change default prometheus_client port (#2973) 2017-06-29 14:03:42 -07:00
Daniel Nelson 75dbf2b0f8
Set release date for 1.3.3 2017-06-28 13:05:06 -07:00
Daniel Nelson 90909ae708 Fix build on Windows (#2972) 2017-06-27 16:31:28 -07:00
Daniel Nelson d40e441240 Use git sha1 as version if not tagged (#2969) 2017-06-27 13:24:06 -07:00
Adam Perlin cc3d420551 Fix several bugs in minecraft input (#2970) 2017-06-27 13:14:07 -07:00
Daniel Nelson f2bb4acd4a
Update changelog 2017-06-26 15:25:06 -07:00
Bob Shannon a7595c918a Fix panic in elasticsearch input if cannot determine master (#2954) 2017-06-26 15:23:53 -07:00
Daniel Nelson a52f90122b
Update changelog 2017-06-26 15:15:31 -07:00
Bob Shannon d217cdc1a6 Add optional usage_active and time_active CPU metrics (#2943) 2017-06-26 15:13:38 -07:00
Daniel Nelson d5b6f92f3f
Log aerospike field value on error 2017-06-26 14:48:22 -07:00
Daniel Nelson 1a636abaaf
Update changelog 2017-06-26 14:31:17 -07:00
vodolaz095 1fdbfa4719 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 22fc130e97
Update changelog 2017-06-23 16:56:36 -07:00
Ayrdrie a726579d50 Add Minecraft input plugin (#2960) 2017-06-23 16:54:12 -07:00
Daniel Nelson d774c2a170
Update changelog 2017-06-23 11:13:00 -07:00
MatthewCh 6d5bb35f84 Support HOST_PROC in processes and linux_sysctl_fs inputs (#2924) 2017-06-23 11:11:33 -07:00
Daniel Nelson e028f10586
Update changelog 2017-06-23 11:04:13 -07:00
Daniel Nelson 9276318faf Fix bug parsing default timestamps with modified precision (#2949) 2017-06-23 10:59:04 -07:00
Daniel Nelson 82a04d904d Use strings.Join in statsd input (#2947) 2017-06-21 16:24:23 -07:00
Daniel Nelson 364da9a83d
Update changelog 2017-06-21 12:46:57 -07:00
grugrut ca9cec2c84 Add input plugin for Fail2ban (#2875) 2017-06-21 12:42:13 -07:00
Daniel Nelson 9211985c63
Update changelog 2017-06-21 12:39:09 -07:00
Daniel Nelson 929ba0a637 Remove label value sanitization in prometheus output (#2939) 2017-06-21 12:36:29 -07:00
Daniel Nelson dcdcb70cb1
Update changelog 2017-06-19 11:52:53 -07:00
Eugene Shilin cb5a12de3d Add standard SSL options to mysql input (#2933) 2017-06-19 11:42:43 -07:00
Artem Kovardin 193e8fa5ad More explicit 404 error in cassandra input (#2936) 2017-06-19 11:06:49 -07:00
trastle 00b37a7c0d Update README for Prometheus Client Output (#2452) 2017-06-19 11:04:08 -07:00
Daniel Nelson 736322dfc9
Set default ping count in Windows
fixes #2934
2017-06-16 13:39:55 -07:00
Daniel Nelson ba364988de
Document that ping_interval is non-linux only 2017-06-16 13:32:04 -07:00
Daniel Nelson a729a44284
Update changelog 2017-06-16 13:18:27 -07:00
Daniel Nelson 3ecfd32df5 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 ea1888bd26
Update changelog 2017-06-16 12:06:40 -07:00
Simone Rotondo 674c24f987 Add HTTP Proxy support to influxdb output (#2929) 2017-06-16 12:05:08 -07:00
Daniel Nelson ca72df5868
Update 1.3.2 release date 2017-06-14 12:16:47 -07:00
Daniel Nelson ea787b83bf
Update changelog 2017-06-13 18:07:12 -07:00
Daniel Nelson 949072e8dc Ensure prometheus metrics have same set of labels (#2857) 2017-06-13 18:04:26 -07:00
Daniel Nelson 246f342e6a
Update changelog 2017-06-13 17:19:33 -07:00
Daniel Nelson 619b5d4c14 Change node_name to be a tag in aerospike input (#2918) 2017-06-13 17:09:38 -07:00
Daniel Nelson b0efc22140
Update changelog 2017-06-13 14:10:33 -07:00
Heston Kan 5d1efdbfda Add min/max response time on linux/darwin to ping (#2908) 2017-06-13 14:09:17 -07:00
Daniel Nelson e3ccd473d2
Update changelog 2017-06-13 13:44:07 -07:00
Dheeraj Dwivedi f0cbfe4d67 Add secure connection support to graphite output (#2602) 2017-06-13 13:42:11 -07:00
Daniel Nelson 40d8e582ee
Update changelog 2017-06-12 18:32:50 -07:00
Daniel Nelson 02b55fe77f Update aws-sdk-go dependency to latest release. (#2912) 2017-06-12 18:31:27 -07:00
Daniel Nelson 0c53de6700
Update changelog 2017-06-08 16:55:27 -07:00
Daniel Nelson b277e6e2d7 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 de4a312eba
Update changelog 2017-06-08 13:20:44 -07:00
Matteo Cerutti 4b3b16ef1a Add wildcard support for container inclusion/exclusion (#2793) 2017-06-08 13:17:31 -07:00
Daniel Nelson 4c534433aa
Skip kafka_consumer_integration_test due to issue on CircleCI 2017-06-07 18:31:52 -07:00
Daniel Nelson f9447d01d4
Add release note to changelog regarding kafka_consumer 2017-06-07 18:27:12 -07:00
Seuf 2092443cd7 Add Kafka 0.9+ consumer support (#2487) 2017-06-07 18:22:28 -07:00
Bob Shannon 1c73caba04 Add SSL/TLS support to nginx input plugin (#2883) 2017-06-07 17:52:10 -07:00
Daniel Nelson 84dbf8bb25
Update changelog 2017-06-07 13:46:06 -07:00
Daniel Nelson a275e6792a 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 de7fb2acfe
Update changelog 2017-06-06 13:55:11 -07:00
Frederick Roth 91f2764cd5 Add result_type field for http_response input (#2814) 2017-06-06 13:39:07 -07:00
Daniel Nelson 4e91b18bbe
Update changelog 2017-06-06 11:56:19 -07:00
Mariusz Brzeski 56a7ffe0e4 Fix timeout option in Windows ping input sample configuration (#2885) 2017-06-06 11:55:01 -07:00
Daniel Nelson f9462d4fff
Update changelog 2017-06-05 14:47:34 -07:00
Sebastian Borza 035905d65e Add timezone support to logparser timestamps (#2882) 2017-06-05 14:45:11 -07:00
Daniel Nelson a47e6e6efe
Update changelog 2017-06-05 12:46:50 -07:00
Daniel Nelson 5bab4616ff Fix udp metric splitting (#2880) 2017-06-05 12:44:29 -07:00
Daniel Nelson 37e01808b5
Set 1.3.1 release date 2017-05-31 15:00:31 -07:00
Daniel Nelson 0b6db905ff
Generate sha256 hashes when packaging 2017-05-31 12:29:39 -07:00
Daniel Nelson 9529199a44
Update changelog 2017-05-30 17:40:37 -07:00
Daniel Nelson be03abd464 Fix length calculation of split metric buffer (#2869) 2017-05-30 17:38:32 -07:00
Daniel Nelson 04aa732e94
Update changelog 2017-05-30 11:04:39 -07:00
Steve Nardone e7f9db297e Fix panic in mongo input (#2848) 2017-05-30 11:02:26 -07:00
Daniel Nelson 24ea9fdc4d
Update changelog 2017-05-26 12:12:18 -07:00
Matteo Cerutti 02d168705c MySQL input: log and continue on field parse error (#2855) 2017-05-26 12:09:43 -07:00
Daniel Nelson 7d7206b3e2
Update changelog 2017-05-25 16:20:29 -07:00
Daniel Nelson 03ca3975b5
Update gopsutil version
fixes #2856
2017-05-25 16:11:49 -07:00
Daniel Nelson e1088b9eee
Update changelog 2017-05-25 13:39:16 -07:00
Daniel Nelson f47924ffc5 Fix influxdb output database quoting (#2851) 2017-05-25 13:25:52 -07:00
Olivier Lambert a96f85c847 Add documentation for fetching metrics on Caddy HTTP and Prometheus (#2853) 2017-05-25 13:07:49 -07:00
Sylvain Boily 9148871608 Documentation privilege requirements for specific procstat metrics (#2787) 2017-05-25 13:06:27 -07:00
Matteo Cerutti 7d198f0a68 Add timeout option to ipmi_sensor plugin - solves #2817 (#2818) 2017-05-22 13:41:34 -07:00
Daniel Nelson 1459fab4d6
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 b0bd4d55f5
Update CHANGELOG with fixed issue #1137 2017-05-22 12:01:22 -07:00
Steven Burgart 9ab688d62c Fix multiple plugin loading in win_perf_counters (#2800) 2017-05-22 11:58:00 -07:00
Daniel Nelson 8fdc2aec80
Update dependency license file 2017-05-19 18:03:49 -07:00
Lukasz Jagiello 91690b1d3e Consul plugin README typo (#2829) 2017-05-19 11:37:31 -07:00
Daniel Nelson c61cd73eff
Update changelog 2017-05-18 18:11:49 -07:00
rsingh2411 93e638d63e Add Docker container environment variables as tags. Only whitelisted #2580 (#2581) 2017-05-18 16:58:34 -07:00
mced 501c22478e [enh] set db_version at 0 if query version fails (#2819) 2017-05-18 13:52:56 -07:00
Daniel Nelson 7155e90f66
Update changelog for #2815 2017-05-16 17:37:51 -07:00
Timo Mihaljov c53d9fa9b7 Handle process termination during read from /proc (#2816)
Fixes #2815.
2017-05-16 17:33:35 -07:00
Frederick Roth ac5ac3161f Fixed inconsistency between HasIntField and IntField (#2813) 2017-05-16 15:25:30 -07:00
Daniel Nelson bfeb3020a3
Add release date for 1.3.0 2017-05-15 19:52:35 -07:00
Daniel Nelson b01ecdccff
Add back the changelog entry for 2141 2017-05-15 12:54:03 -07:00
Daniel Nelson da99777f6f Only split metrics if there is an udp output (#2799) 2017-05-12 15:34:05 -07:00
Zack Zatkin-Gold dd537b3382 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 f74687dcc0
split metrics based on UDPPayload size (#2795) 2017-05-12 14:45:50 -07:00
Daniel Nelson a47aa0dcc2
Merge branch 'reuse-transport' 2017-05-10 18:19:21 -07:00
Daniel Nelson 17d883c602
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 a1446a60f7
Update changelog 2017-05-10 13:11:33 -07:00
Daniel Nelson 1931aac284
Fix http_response input creation of transport on every gather 2017-05-09 16:23:38 -07:00
Daniel Nelson b88eb0f59d
Fix prometheus input creation of transport on every gather 2017-05-09 16:21:49 -07:00
Daniel Nelson e7ad2d0463
Fix apache input creation of transport on every gather. 2017-05-09 16:19:56 -07:00
Daniel Nelson c28ffb11cb
Merge branch 'update-readme' 2017-05-09 13:50:19 -07:00
Daniel Nelson 018fd5ce5b
Add missing plugins to README 2017-05-09 13:50:12 -07:00
Daniel Nelson cd0ec0185a
Update contributing section
Hoping this will encourage more non-plugin contributions.
2017-05-09 13:50:12 -07:00
Adrian Sadłocha 8124cfa3ed Improve PostgreSQL plugin documentation (#2777) 2017-05-09 12:58:43 -07:00
Lukasz Jagiello 5af985ef5f Add support for self-signed certs to InfluxDB input plugin (#2773) 2017-05-08 15:20:24 -07:00
Sylvain Boily 1ebd1aaa41 Systemd does not see all shutdowns as failures (#2716) 2017-05-08 11:48:29 -07:00
Daniel Nelson de3f52b990
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 4200018a0b
Enable s390x builds
closes #2766
2017-05-05 14:39:56 -07:00
Daniel Nelson 67cd1669cc Add SLES11 support to rpm package (#2768) 2017-05-05 14:29:40 -07:00
Sébastien a8cfe03ba8 fix systemd path in order to add compatibility with SuSe (#2499) 2017-05-05 14:04:33 -07:00
ceseuron e2983383e4 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 8cf0dc769b
Add 1.4 section to changelog 2017-05-03 17:29:34 -07:00
Daniel Nelson 613de8a80d
Remove documentation in kafka_consumer for metric_buffer 2017-05-03 11:51:49 -07:00
Damien Krotkine f5c890cc1d reflect zookeeper chroot config in readme (#2759) 2017-05-03 11:50:08 -07:00
Daniel Nelson f7f1eaef65 Return an error if no valid patterns. (#2753) 2017-05-02 14:54:38 -07:00
Alexander Blagoev 188703e204 Improve redis input documentation (#2708) 2017-05-02 11:43:07 -07:00
Patrick Hemmer 52c19af0ba fix close on closed socket_writer (#2748) 2017-05-02 11:06:49 -07:00
Daniel Nelson 5c88965084 Add initial documentation for rabbitmq input. (#2745) 2017-05-01 18:55:48 -07:00
Daniel Nelson 6e76731b7e Don't log error creating database on connect (#2740)
closes #2739
2017-04-28 15:58:46 -07:00
Daniel Nelson c7a0e40c87
Update telegraf.conf 2017-04-28 13:47:32 -07:00
Daniel Nelson 086a2f5f12
Clarify retention policy option for influxdb output
closes #2696
2017-04-28 13:46:23 -07:00
Daniel Nelson 1da1c4753e
Clarify retention policy option for influxdb output
closes #2696
2017-04-28 13:40:58 -07:00
Daniel Nelson a083e1af7d Use go 1.8.1 for CI and Release builds (#2732) 2017-04-27 16:18:11 -07:00
Daniel Nelson 052e88ad5e
Fix grammar 2017-04-27 14:59:18 -07:00
Daniel Nelson b9ce455bba
Update telegraf.conf 2017-04-27 11:53:32 -07:00
Seuf cd103c85db Added SASL options for ouput kafka plugin (#2721) 2017-04-27 11:50:25 -07:00
Ross McDonald a3feacbd2f Kapacitor input plugin (#2031) 2017-04-27 11:47:22 -07:00
Daniel Nelson e1a734c525
Fix logfile documentation 2017-04-27 11:38:49 -07:00
Daniel Nelson 53ab56de72
Update haproxy README 2017-04-27 11:23:37 -07:00
Seuf 4e2fe598ac Added SSL configuration for input haproxy (#2723) 2017-04-27 11:20:41 -07:00
Daniel Nelson 5fe5c46c6d Fix amqp output block on write if disconnected (#2727)
fixes #2603
2017-04-27 11:10:30 -07:00
Damien Krotkine 153304d92b it's -> its (#2728) 2017-04-27 11:10:00 -07:00
Damien Krotkine cb9aecbf04 it's -> its (#2729) 2017-04-27 11:06:40 -07:00
Nevins c66e2896c6 add option to randomize Kinesis partition key (#2705) 2017-04-26 10:54:24 -07:00
Jeff Zellner 9b874dff8d Update README.md (#2719) 2017-04-25 13:17:15 -07:00
Daniel Nelson b243faa22b Don't close stdout on config reload. (#2707)
fixes #2528
2017-04-24 16:18:58 -07:00
Patrick Hemmer 8f5cd6c2ae add keep-alive support to socket_listener & socket_writer (#2697)
closes #2635
2017-04-24 13:14:42 -07:00
Alexander Blagoev 3c28b93514 Improve procstat input documentation (#2699)
closes #1895
2017-04-24 11:18:55 -07:00
Patrick Hemmer 06baf7cf78 use AddError everywhere (#2372) 2017-04-24 11:13:26 -07:00
Alexander Blagoev 801f6cb8a0 System net input documentation (#2698)
closes #2166
2017-04-24 11:03:53 -07:00
Daniel Nelson 3684ec6315
Update EXAMPLE_README.md 2017-04-21 14:27:36 -07:00
Daniel Nelson da0773151b Use C locale when running sadf (#2690)
fixes #1911
2017-04-21 10:55:54 -07:00
Daniel Nelson 38e1c1de77
Update commit hash of tail fork 2017-04-20 16:29:39 -07:00
Daniel Nelson 799c8bed29
Add fix for network aliases to changelog
Change was made in gopsutil
2017-04-20 15:34:30 -07:00
Alexander Blagoev a237301932 Memcached input documentation (#2685)
Closes #2615
2017-04-20 11:25:22 -07:00
Oleg Grytsynevych b03d78d00f win_perf_counters: Format errors reported by pdh.dll in human-readable format (#2338) 2017-04-20 11:22:44 -07:00
Martin 748ca7d503 Fixed install/remove of telegraf on non-systemd Debian/Ubuntu systems (#2360) 2017-04-20 11:19:33 -07:00
Daniel Nelson bf30ef89ee Fix ipmi_sensor config is shared between all plugin instances (#2684) 2017-04-19 17:02:44 -07:00
Daniel Nelson 3690e1b9bf
Add diskio for darwin to changelog 2017-04-19 13:42:24 -07:00
Patrick Hemmer 2542ef6d62 change jolokia input to use bulk requests (#2253) 2017-04-18 13:00:41 -07:00
Nikolay Denev eb7ef5392e Simplify system.DiskUsage() (#2630) 2017-04-18 11:42:58 -07:00
Ross McDonald 70b3e763e7 Add input for receiving papertrail webhooks (#2038) 2017-04-17 13:49:36 -07:00
François de Metz 58ee962679 GitHub webhooks: check signature (#2493) 2017-04-17 11:42:03 -07:00
Daniel Nelson dc5779e2a7 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 b968759d10
Use variadic disk.IOCounters() function 2017-04-14 13:48:02 -07:00
Daniel Nelson b90a5b48a1 Improve logparser README (#2664) 2017-04-14 13:47:43 -07:00
calerogers a12e082dbe Refactor interrupts plugin code (#2670) 2017-04-14 13:40:36 -07:00
calerogers cadd845b36 Irqstat input plugin (#2494)
closes #2469
2017-04-13 15:53:02 -07:00
ingosus dff216c44d Feature #1820: add testing without outputs (#2446) 2017-04-13 12:59:28 -07:00
Gregory Kman 45c9b867f6 Update ping-input-plugin Readme (#2651) 2017-04-12 17:46:48 -07:00
Chris Goffinet 9388fff1f7 Fixed content-type header in output plugin OpenTSDB (#2663) 2017-04-12 17:40:10 -07:00
Daniel Nelson 3e0c55bff9 Update grok version (#2662) 2017-04-12 17:10:17 -07:00
Jesús Roncero 49ab4e26f8 Nagios plugin documentation fix (#2659) 2017-04-12 12:04:44 -07:00
Daniel Nelson 360b10c4de Clarify precision documentation (#2655) 2017-04-12 10:42:11 -07:00
Daniel Nelson 2c98e5ae66 Add collectd parser (#2654) 2017-04-12 10:41:26 -07:00
Nick Irvine 0193cbee51 Add max_message_len in kafka_consumer input (#2636) 2017-04-11 12:05:39 -07:00
Daniel Nelson f55af7d21f Use name filter for IOCounters in diskio (#2649)
Use IOCountersForNames for disk counters.
2017-04-11 11:41:09 -07:00
Patrick Hemmer 516dffa4c4 set default measurement name on snmp input (#2639) 2017-04-10 16:45:02 -07:00
Daniel Nelson 62b5c1f7e7 Add support for precision in http_listener (#2644) 2017-04-10 16:39:40 -07:00
Daniel Nelson 07c428ef89
Use random port in http_listener tests 2017-04-10 14:39:39 -07:00
Vladimir S aa722fac9b Add dmcache input plugin (#1667) 2017-04-07 15:39:43 -07:00
Rajaseelan Ganeswaran 7cc4ca2341 Add sample config stanza for CPU (#2620) 2017-04-06 14:44:02 -07:00
Victor Yunevich 92fa20cef2 ipmi_sensor: allow @ symbol in password (#2633) 2017-04-06 14:40:34 -07:00
Daniel Nelson c9f8308f27 Update filtering documentation (#2631) 2017-04-06 12:06:08 -07:00
James 5ffc9fd379 fix postgresql connection leak (#2611) 2017-04-04 17:37:44 -07:00
Daniel Nelson 8bf193dc06 Update httpjson documentation (#2619)
closes  #2536
2017-04-03 18:34:04 -07:00
Patrick Hemmer f2805fd4aa socket_listener: clean up unix socket file on start & stop (#2618) 2017-04-03 18:06:51 -07:00
Shakeel Sorathia 35e4390168 Docker: optionally add labels as tags (#2425) 2017-04-03 13:43:15 -07:00
Patrick Hemmer 51c99d5b67 add support for linux sysctl fs metrics (#2609) 2017-03-31 14:01:02 -07:00
Daniel Nelson 540f98e228 Fix possible deadlock when output cannot write. (#2610) 2017-03-31 12:45:28 -07:00
Dmitry Ulyanov c980c92cd5 Added pprof tool (#2512) 2017-03-29 18:28:43 -07:00
Daniel Nelson 9495b615f5
Update changelog for #2587 2017-03-29 17:15:11 -07:00
tjmcs fb1c7d0154 Adds a new json_timestamp_units configuration parameter (#2587) 2017-03-29 17:12:29 -07:00
Patrick Hemmer 03ee6022f3 fix race in testutil Accumulator.Wait() (#2598) 2017-03-29 17:03:06 -07:00
djjorjinho cc5b2f68b6 fix timestamp parsing on prometheus plugin (#2596) 2017-03-29 15:04:29 -07:00
Daniel Nelson 2d7f612bd7 Use fork of hpcloud/tail (#2595) 2017-03-29 14:25:33 -07:00
Daniel Nelson 9e036b2d65
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 1100a98f11 Removed duplicate evictions metric (#2577) 2017-03-28 10:47:00 -07:00
Daniel Nelson 37689f4df6
Add elasticsearch output to changelog 2017-03-28 10:22:28 -07:00
Daniel Nelson 78c7f4e4af Add write timeout to Riemann output (#2576) 2017-03-27 15:49:45 -07:00
Daniel Nelson 84a9f91f5c
Skip elasticsearch output integration test in short mode 2017-03-27 15:05:06 -07:00
Daniel Nelson 5612df48f9
Update telegraf.conf 2017-03-27 14:49:04 -07:00
Daniel Nelson 0fa9001453
Clarify influxdb output url format
closes #2568
2017-03-24 16:04:18 -07:00
Patrick Hemmer 995546e7c6 snmp: support table indexes as tags (#2366) 2017-03-24 12:06:52 -07:00
Patrick Hemmer 1402c158b7 remove sleep from tests (#2555) 2017-03-24 12:03:36 -07:00
Oskar 616b66f5cb Multi instances in win_perf_counters (#2352) 2017-03-22 12:04:58 -07:00
Daniel Nelson 70a0a84882
Really fix procstat initialization 2017-03-21 11:40:51 -07:00
Daniel Nelson 5c33c760c7
Fix procstat initialization 2017-03-21 10:59:41 -07:00
Leandro Piccilli bb28fb256b Add Elasticsearch 5.x output (#2332) 2017-03-20 17:47:57 -07:00
Daniel Nelson a962e958eb Refactor procstat input (#2540)
fixes #1636 
fixes #2315
2017-03-17 16:49:11 -07:00
Patrick Hemmer 8514acdc3c return error on unsupported serializer data format (#2542) 2017-03-17 10:14:03 -07:00
Antoine Augusti 426182b81a Update default value for Cloudwatch rate limit (#2520) 2017-03-15 15:20:18 -07:00
Daniel Nelson 7a5d857846 Add support for new SSL configuration to mongodb (#2522)
closes #2519
2017-03-10 11:27:55 -08:00
jeremydenoun 13f314a507 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 ea6e0b8259
Fix typo in postgresql README 2017-03-09 10:13:31 -08:00
Cameron Sparr e811e2600d
create telegraf.d directory in tarball
closes #2513
2017-03-09 11:41:08 +00:00
Timothy 49c212337f 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 d243d69a09 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 ae6a5d2255 Remove warning if parse empty content (#2500)
closes #2448
2017-03-08 14:08:55 -08:00
Robpol86 56aa89e5c8 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 7513fcac4e
Fix part 2 of #1291
added PDH_FMT_NOCAP100 format option

closes #2483
2017-03-08 13:39:03 +00:00
Cameron Sparr 9df2974a0f
update gopsutil for file close fixes
hopefully this will fix #2472
2017-03-08 12:54:17 +00:00
Daniel Nelson ceb36adac7 Update issue template 2017-03-06 11:20:53 -08:00
Cameron Sparr 7a8e821731 Revert "Procstat: don't cache PIDs" (#2479) 2017-03-06 15:59:36 +00:00
François de Metz 76bcdecd21 Respond 200 when receiving a ping event. (#2492) 2017-03-06 12:34:41 +00:00
Jack Zampolin 10744646db AMQP Consumer plugin (#1678) 2017-03-03 10:24:50 -08:00
Charles-Henri 1873abd248 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 9618515926 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 a251adb838 Fix type conflict on windows ping plugin (#2462)
closes #1433
2017-03-01 11:22:42 +00:00
Cameron Sparr 9e810ac463
Handle nil os.FileInfo in filepath.Walk
closes #2466
2017-02-28 17:51:03 +00:00
Cameron Sparr b9457a1092
log error message when invalid regex is used
closes #2178
2017-02-28 12:48:14 +00:00
Cameron Sparr 6f2eeae498
Remove sleep from riemann test 2017-02-28 12:46:27 +00:00
Cameron Sparr 42a41d33cc
add cgroup plugin to README 2017-02-24 09:43:22 +00:00
Cameron Sparr 81408f9da7
switch out deprecated docker client library
closes #2071
2017-02-22 10:55:00 +00:00
Rickard von Essen c4212d69c9 Updated readme, now requires Go 1.8 (#2455) 2017-02-21 22:13:22 +01:00
Carlos e17164d3f0 Added default config to file output pugin's README (#2426) 2017-02-20 11:50:39 +01:00
Cameron Sparr e5349393f8
Check for errors in user stats & process list
closes #2414
2017-02-17 15:38:33 +00:00
Cameron Sparr 06176ef410
Only set the buffer size once
fixes #2380
2017-02-17 14:11:15 +00:00
Cameron Sparr 2a3448c8f3
socket_writer output plugin README 2017-02-16 23:13:14 +00:00
Leandro Piccilli 5da40d56ad
Check if tag value is empty before allocation
closes #2390
closes #2404
2017-02-16 23:07:27 +00:00
Cameron Sparr 54c9a385d5
Fix prometheus_client reload behavior
fixes #2282
2017-02-16 21:57:13 +00:00
Priyank Trivedi 25c55419df Fix typo - Default from Defalt (#2417) 2017-02-16 19:03:17 +00:00
Yaron de Leeuw c19fb1535e 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 45a168e425 Fix setting the username and the password to the influxdb output. (#2401) 2017-02-13 15:30:30 +00:00
Cameron Sparr 22243a8354
Skip service input plugins in test mode 2017-02-13 10:40:38 +00:00
Cameron Sparr ff9369f1a1
prepend 'inputs.' to --test output check 2017-02-13 10:33:51 +00:00
Cameron Sparr 21cf79163c
don't use influxdata/config, just use influxdata/toml 2017-02-10 17:27:18 +00:00
Cameron Sparr f05fac74cb
update naoina/toml to do config validation 2017-02-10 17:05:13 +00:00
Cameron Sparr c8cc01ba6a
deprecate udp_listener & tcp_listener 2017-02-06 10:41:44 +00:00
1331 changed files with 236224 additions and 28570 deletions

219
.circleci/config.yml Normal file
View File

@ -0,0 +1,219 @@
---
defaults:
defaults: &defaults
working_directory: '/go/src/github.com/influxdata/telegraf'
environment:
GOFLAGS: -p=8
go-1_13: &go-1_13
docker:
- image: 'quay.io/influxdb/telegraf-ci:1.13.11'
go-1_14: &go-1_14
docker:
- image: 'quay.io/influxdb/telegraf-ci:1.14.3'
mac: &mac
macos:
xcode: 11.3.1
working_directory: '~/go/src/github.com/influxdata/telegraf'
environment:
HOMEBREW_NO_AUTO_UPDATE: 1
GOFLAGS: -p=8
version: 2
jobs:
deps:
<<: [ *defaults, *go-1_14 ]
steps:
- checkout
- restore_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
- run: 'make deps'
- run: 'make tidy'
- save_cache:
name: 'go module cache'
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- '/go/pkg/mod'
- persist_to_workspace:
root: '/go'
paths:
- '*'
macdeps:
<<: [ *mac ]
steps:
- checkout
- restore_cache:
key: mac-go-mod-v1-{{ checksum "go.sum" }}
- run: 'brew install go@1.13'
- run: 'make deps'
- run: 'make tidy'
- save_cache:
name: 'go module cache'
key: mac-go-mod-v1-{{ checksum "go.sum" }}
paths:
- '~/go/pkg/mod'
- '/usr/local/Cellar/go'
- '/usr/local/bin/go'
- '/usr/local/bin/gofmt'
- persist_to_workspace:
root: '/'
paths:
- 'usr/local/bin/go'
- 'usr/local/Cellar/go'
- 'usr/local/bin/gofmt'
- 'Users/distiller/go'
test-go-1.13:
<<: [ *defaults, *go-1_13 ]
steps:
- attach_workspace:
at: '/go'
- run: 'make'
- run: 'make test'
test-go-1.13-386:
<<: [ *defaults, *go-1_13 ]
steps:
- attach_workspace:
at: '/go'
- run: 'GOARCH=386 make'
- run: 'GOARCH=386 make test'
test-go-1.14:
<<: [ *defaults, *go-1_14 ]
steps:
- attach_workspace:
at: '/go'
- run: 'make'
- run: 'make check'
- run: 'make check-deps'
- run: 'make test'
test-go-1.14-386:
<<: [ *defaults, *go-1_14 ]
steps:
- attach_workspace:
at: '/go'
- run: 'GOARCH=386 make'
- run: 'GOARCH=386 make check'
- run: 'GOARCH=386 make test'
test-go-1.13-darwin:
<<: [ *mac ]
steps:
- attach_workspace:
at: '/'
- run: 'make'
- run: 'make check'
- run: 'make test'
package:
<<: [ *defaults, *go-1_14 ]
steps:
- attach_workspace:
at: '/go'
- run: 'make package'
- store_artifacts:
path: './build'
destination: 'build'
release:
<<: [ *defaults, *go-1_14 ]
steps:
- attach_workspace:
at: '/go'
- run: 'make package-release'
- store_artifacts:
path: './build'
destination: 'build'
nightly:
<<: [ *defaults, *go-1_14 ]
steps:
- attach_workspace:
at: '/go'
- run: 'make package-nightly'
- store_artifacts:
path: './build'
destination: 'build'
workflows:
version: 2
check:
jobs:
- 'macdeps':
filters:
tags:
only: /.*/
- 'deps':
filters:
tags:
only: /.*/
- 'test-go-1.13':
requires:
- 'deps'
filters:
tags:
only: /.*/
- 'test-go-1.13-386':
requires:
- 'deps'
filters:
tags:
only: /.*/
- 'test-go-1.14':
requires:
- 'deps'
filters:
tags:
only: /.*/
- 'test-go-1.14-386':
requires:
- 'deps'
filters:
tags:
only: /.*/
- 'test-go-1.13-darwin':
requires:
- 'macdeps'
filters:
tags: # only runs on tags if you specify this filter
only: /.*/
- 'package':
requires:
- 'test-go-1.13'
- 'test-go-1.13-386'
- 'test-go-1.14'
- 'test-go-1.14-386'
- 'release':
requires:
- 'test-go-1.13'
- 'test-go-1.13-386'
- 'test-go-1.14'
- 'test-go-1.14-386'
filters:
tags:
only: /.*/
branches:
ignore: /.*/
nightly:
jobs:
- 'deps'
- 'test-go-1.13':
requires:
- 'deps'
- 'test-go-1.13-386':
requires:
- 'deps'
- 'test-go-1.14':
requires:
- 'deps'
- 'test-go-1.14-386':
requires:
- 'deps'
- 'nightly':
requires:
- 'test-go-1.13'
- 'test-go-1.13-386'
- 'test-go-1.14'
- 'test-go-1.14-386'
triggers:
- schedule:
cron: "0 7 * * *"
filters:
branches:
only:
- master

1
.gitattributes vendored
View File

@ -1,4 +1,5 @@
CHANGELOG.md merge=union
README.md merge=union
go.sum merge=union
plugins/inputs/all/all.go merge=union
plugins/outputs/all/all.go merge=union

View File

@ -1,44 +0,0 @@
## Directions
GitHub Issues are reserved for actionable bug reports and feature requests.
General questions should be sent to the [InfluxDB mailing list](https://groups.google.com/forum/#!forum/influxdb).
Before opening an issue, search for similar bug reports or feature requests on GitHub Issues.
If no similar issue can be found, fill out either the "Bug Report" or the "Feature Request" section below.
Erase the other section and everything on and above this line.
*Please note, the quickest way to fix a bug is to open a Pull Request.*
## Bug report
### Relevant telegraf.conf:
### System info:
[Include Telegraf version, operating system name, and other relevant details]
### Steps to reproduce:
1. ...
2. ...
### Expected behavior:
### Actual behavior:
### Additional info:
[Include gist of relevant config, logs, etc.]
## Feature Request
Opening a feature request kicks off a discussion.
### Proposal:
### Current behavior:
### Desired behavior:
### Use case: [Why is this important (helps with prioritizing requests)]

45
.github/ISSUE_TEMPLATE/Bug_report.md vendored Normal file
View File

@ -0,0 +1,45 @@
---
name: Bug report
about: Create a report to help us improve
---
<!--
Please redirect any questions about Telegraf usage to the InfluxData Community
site: https://community.influxdata.com
Check the documentation for the related plugin including the troubleshooting
section if available.
-->
### Relevant telegraf.conf:
<!-- Place config in the toml code section. -->
```toml
```
### System info:
<!-- Include Telegraf version, operating system, and other relevant details -->
### Docker
<!-- If your bug involves third party dependencies or services, it can be very helpful to provide a Dockerfile or docker-compose.yml that reproduces the environment you're testing against -->
### Steps to reproduce:
<!-- Describe the steps to reproduce the bug. -->
1. ...
2. ...
### Expected behavior:
<!-- Describe what you expected to happen when you performed the above steps. -->
### Actual behavior:
<!-- Describe what actually happened when you performed the above steps. -->
### Additional info:
<!-- Include gist of relevant config, logs, etc. -->

View File

@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project
---
## Feature Request
Opening a feature request kicks off a discussion.
### Proposal:
### Current behavior:
### Desired behavior:
### Use case: <!-- [Why is this important (helps with prioritizing requests)] -->

View File

@ -1,5 +1,5 @@
### Required for all PRs:
- [ ] CHANGELOG.md updated (we recommend not updating this until the PR has been approved by a maintainer)
- [ ] Sign [CLA](https://influxdata.com/community/cla/) (if not already signed)
- [ ] README.md updated (if adding a new plugin)
- [ ] Signed [CLA](https://influxdata.com/community/cla/).
- [ ] Associated README.md updated.
- [ ] Has appropriate unit tests.

10
.gitignore vendored
View File

@ -1,7 +1,5 @@
build
tivan
.vagrant
/build
/telegraf
.idea
*~
*#
/telegraf.exe
/telegraf.gz
/vendor

File diff suppressed because it is too large Load Diff

View File

@ -1,485 +1,76 @@
## Steps for Contributing:
### Contributing
1. [Sign the CLA](http://influxdb.com/community/cla.html)
1. Make changes or write plugin (see below for details)
1. Add your plugin to one of: `plugins/{inputs,outputs,aggregators,processors}/all/all.go`
1. If your plugin requires a new Go package,
[add it](https://github.com/influxdata/telegraf/blob/master/CONTRIBUTING.md#adding-a-dependency)
1. Write a README for your plugin, if it's an input plugin, it should be structured
like the [input example here](https://github.com/influxdata/telegraf/blob/master/plugins/inputs/EXAMPLE_README.md).
Output plugins READMEs are less structured,
but any information you can provide on how the data will look is appreciated.
See the [OpenTSDB output](https://github.com/influxdata/telegraf/tree/master/plugins/outputs/opentsdb)
for a good example.
1. **Optional:** Help users of your plugin by including example queries for populating dashboards. Include these sample queries in the `README.md` for the plugin.
1. **Optional:** Write a [tickscript](https://docs.influxdata.com/kapacitor/v1.0/tick/syntax/) for your plugin and add it to [Kapacitor](https://github.com/influxdata/kapacitor/tree/master/examples/telegraf). Or mention @jackzampolin in a PR comment with some common queries that you would want to alert on and he will write one for you.
1. [Sign the CLA][cla].
1. Open a [new issue][] to discuss the changes you would like to make. This is
not strictly required but it may help reduce the amount of rework you need
to do later.
1. Make changes or write plugin using the guidelines in the following
documents:
- [Input Plugins][inputs]
- [Processor Plugins][processors]
- [Aggregator Plugins][aggregators]
- [Output Plugins][outputs]
1. Ensure you have added proper unit tests and documentation.
1. Open a new [pull request][].
## GoDoc
#### Contributing an External Plugin *(experimental)*
Input plugins written for internal Telegraf can be run as externally-compiled plugins through the [Execd Input Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/execd) without having to change the plugin code.
Follow the guidelines of how to integrate your plugin with the [Execd Go Shim](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/execd/shim) to easily compile it as a separate app and run it from the inputs.execd plugin.
#### Security Vulnerability Reporting
InfluxData takes security and our users' trust very seriously. If you believe you have found a security issue in any of our
open source projects, please responsibly disclose it by contacting security@influxdata.com. More details about
security vulnerability reporting,
including our GPG key, [can be found here](https://www.influxdata.com/how-to-report-security-vulnerabilities/).
### GoDoc
Public interfaces for inputs, outputs, processors, aggregators, metrics,
and the accumulator can be found on the GoDoc
and the accumulator can be found in the GoDoc:
[![GoDoc](https://godoc.org/github.com/influxdata/telegraf?status.svg)](https://godoc.org/github.com/influxdata/telegraf)
## Sign the CLA
### Common development tasks
Before we can merge a pull request, you will need to sign the CLA,
which can be found [on our website](http://influxdb.com/community/cla.html)
**Adding a dependency:**
## Adding a dependency
Telegraf uses Go modules. Assuming you can already build the project, run this in the telegraf directory:
Assuming you can already build the project, run these in the telegraf directory:
1. `go get github.com/[dependency]/[new-package]`
1. `go get github.com/sparrc/gdm`
1. `gdm restore`
1. `GOOS=linux gdm save`
**Unit Tests:**
## Input Plugins
This section is for developers who want to create new collection inputs.
Telegraf is entirely plugin driven. This interface allows for operators to
pick and chose what is gathered and makes it easy for developers
to create new ways of generating metrics.
Plugin authorship is kept as simple as possible to promote people to develop
and submit new inputs.
### Input Plugin Guidelines
* A plugin must conform to the [`telegraf.Input`](https://godoc.org/github.com/influxdata/telegraf#Input) interface.
* Input Plugins should call `inputs.Add` in their `init` function to register themselves.
See below for a quick example.
* Input Plugins must be added to the
`github.com/influxdata/telegraf/plugins/inputs/all/all.go` file.
* The `SampleConfig` function should return valid toml that describes how the
plugin can be configured. This is include in `telegraf -sample-config`.
* The `Description` function should say in one line what this plugin does.
Let's say you've written a plugin that emits metrics about processes on the
current host.
### Input Plugin Example
```go
package simple
// simple.go
import (
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
)
type Simple struct {
Ok bool
}
func (s *Simple) Description() string {
return "a demo plugin"
}
func (s *Simple) SampleConfig() string {
return "ok = true # indicate if everything is fine"
}
func (s *Simple) Gather(acc telegraf.Accumulator) error {
if s.Ok {
acc.AddFields("state", map[string]interface{}{"value": "pretty good"}, nil)
} else {
acc.AddFields("state", map[string]interface{}{"value": "not great"}, nil)
}
return nil
}
func init() {
inputs.Add("simple", func() telegraf.Input { return &Simple{} })
}
```
## Adding Typed Metrics
In addition the the `AddFields` function, the accumulator also supports an
`AddGauge` and `AddCounter` function. These functions are for adding _typed_
metrics. Metric types are ignored for the InfluxDB output, but can be used
for other outputs, such as [prometheus](https://prometheus.io/docs/concepts/metric_types/).
## Input Plugins Accepting Arbitrary Data Formats
Some input plugins (such as
[exec](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/exec))
accept arbitrary input data formats. An overview of these data formats can
be found
[here](https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md).
In order to enable this, you must specify a `SetParser(parser parsers.Parser)`
function on the plugin object (see the exec plugin for an example), as well as
defining `parser` as a field of the object.
You can then utilize the parser internally in your plugin, parsing data as you
see fit. Telegraf's configuration layer will take care of instantiating and
creating the `Parser` object.
You should also add the following to your SampleConfig() return:
```toml
## Data format to consume.
## Each data format has it's 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 = "influx"
```
Below is the `Parser` interface.
```go
// Parser is an interface defining functions that a parser plugin must satisfy.
type Parser interface {
// Parse takes a byte buffer separated by newlines
// ie, `cpu.usage.idle 90\ncpu.usage.busy 10`
// and parses it into telegraf metrics
Parse(buf []byte) ([]telegraf.Metric, error)
// ParseLine takes a single string metric
// ie, "cpu.usage.idle 90"
// and parses it into a telegraf metric.
ParseLine(line string) (telegraf.Metric, error)
}
```
And you can view the code
[here.](https://github.com/influxdata/telegraf/blob/henrypfhu-master/plugins/parsers/registry.go)
## Service Input Plugins
This section is for developers who want to create new "service" collection
inputs. A service plugin differs from a regular plugin in that it operates
a background service while Telegraf is running. One example would be the `statsd`
plugin, which operates a statsd server.
Service Input Plugins are substantially more complicated than a regular plugin, as they
will require threads and locks to verify data integrity. Service Input Plugins should
be avoided unless there is no way to create their behavior with a regular plugin.
Their interface is quite similar to a regular plugin, with the addition of `Start()`
and `Stop()` methods.
### Service Plugin Guidelines
* Same as the `Plugin` guidelines, except that they must conform to the
`inputs.ServiceInput` interface.
## Output Plugins
This section is for developers who want to create a new output sink. Outputs
are created in a similar manner as collection plugins, and their interface has
similar constructs.
### Output Plugin Guidelines
* An output must conform to the [`telegraf.Output`](https://godoc.org/github.com/influxdata/telegraf#Output) interface.
* Outputs should call `outputs.Add` in their `init` function to register themselves.
See below for a quick example.
* To be available within Telegraf itself, plugins must add themselves to the
`github.com/influxdata/telegraf/plugins/outputs/all/all.go` file.
* The `SampleConfig` function should return valid toml that describes how the
output can be configured. This is include in `telegraf -sample-config`.
* The `Description` function should say in one line what this output does.
### Output Example
```go
package simpleoutput
// simpleoutput.go
import (
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/outputs"
)
type Simple struct {
Ok bool
}
func (s *Simple) Description() string {
return "a demo output"
}
func (s *Simple) SampleConfig() string {
return "url = localhost"
}
func (s *Simple) Connect() error {
// Make a connection to the URL here
return nil
}
func (s *Simple) Close() error {
// Close connection to the URL here
return nil
}
func (s *Simple) Write(metrics []telegraf.Metric) error {
for _, metric := range metrics {
// write `metric` to the output sink here
}
return nil
}
func init() {
outputs.Add("simpleoutput", func() telegraf.Output { return &Simple{} })
}
Before opening a pull request you should run the linter checks and
the short tests.
```
## Output Plugins Writing Arbitrary Data Formats
Some output plugins (such as
[file](https://github.com/influxdata/telegraf/tree/master/plugins/outputs/file))
can write arbitrary output data formats. An overview of these data formats can
be found
[here](https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md).
In order to enable this, you must specify a
`SetSerializer(serializer serializers.Serializer)`
function on the plugin object (see the file plugin for an example), as well as
defining `serializer` as a field of the object.
You can then utilize the serializer internally in your plugin, serializing data
before it's written. Telegraf's configuration layer will take care of
instantiating and creating the `Serializer` object.
You should also add the following to your SampleConfig() return:
```toml
## Data format to output.
## Each data format has it's own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
data_format = "influx"
make check
make test
```
## Service Output Plugins
**Execute integration tests:**
This section is for developers who want to create new "service" output. A
service output differs from a regular output in that it operates a background service
while Telegraf is running. One example would be the `prometheus_client` output,
which operates an HTTP server.
(Optional)
Their interface is quite similar to a regular output, with the addition of `Start()`
and `Stop()` methods.
### Service Output Guidelines
* Same as the `Output` guidelines, except that they must conform to the
`output.ServiceOutput` interface.
## Processor Plugins
This section is for developers who want to create a new processor plugin.
### Processor Plugin Guidelines
* A processor must conform to the [`telegraf.Processor`](https://godoc.org/github.com/influxdata/telegraf#Processor) interface.
* Processors should call `processors.Add` in their `init` function to register themselves.
See below for a quick example.
* To be available within Telegraf itself, plugins must add themselves to the
`github.com/influxdata/telegraf/plugins/processors/all/all.go` file.
* The `SampleConfig` function should return valid toml that describes how the
processor can be configured. This is include in `telegraf -sample-config`.
* The `Description` function should say in one line what this processor does.
### Processor Example
```go
package printer
// printer.go
import (
"fmt"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/processors"
)
type Printer struct {
}
var sampleConfig = `
`
func (p *Printer) SampleConfig() string {
return sampleConfig
}
func (p *Printer) Description() string {
return "Print all metrics that pass through this filter."
}
func (p *Printer) Apply(in ...telegraf.Metric) []telegraf.Metric {
for _, metric := range in {
fmt.Println(metric.String())
}
return in
}
func init() {
processors.Add("printer", func() telegraf.Processor {
return &Printer{}
})
}
Running the integration tests requires several docker containers to be
running. You can start the containers with:
```
docker-compose up
```
## Aggregator Plugins
This section is for developers who want to create a new aggregator plugin.
### Aggregator Plugin Guidelines
* A aggregator must conform to the [`telegraf.Aggregator`](https://godoc.org/github.com/influxdata/telegraf#Aggregator) interface.
* Aggregators should call `aggregators.Add` in their `init` function to register themselves.
See below for a quick example.
* To be available within Telegraf itself, plugins must add themselves to the
`github.com/influxdata/telegraf/plugins/aggregators/all/all.go` file.
* The `SampleConfig` function should return valid toml that describes how the
aggregator can be configured. This is include in `telegraf -sample-config`.
* The `Description` function should say in one line what this aggregator does.
* The Aggregator plugin will need to keep caches of metrics that have passed
through it. This should be done using the builtin `HashID()` function of each
metric.
* When the `Reset()` function is called, all caches should be cleared.
### Aggregator Example
```go
package min
// min.go
import (
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/aggregators"
)
type Min struct {
// caches for metric fields, names, and tags
fieldCache map[uint64]map[string]float64
nameCache map[uint64]string
tagCache map[uint64]map[string]string
}
func NewMin() telegraf.Aggregator {
m := &Min{}
m.Reset()
return m
}
var sampleConfig = `
## period is the flush & clear interval of the aggregator.
period = "30s"
## If true drop_original will drop the original metrics and
## only send aggregates.
drop_original = false
`
func (m *Min) SampleConfig() string {
return sampleConfig
}
func (m *Min) Description() string {
return "Keep the aggregate min of each metric passing through."
}
func (m *Min) Add(in telegraf.Metric) {
id := in.HashID()
if _, ok := m.nameCache[id]; !ok {
// hit an uncached metric, create caches for first time:
m.nameCache[id] = in.Name()
m.tagCache[id] = in.Tags()
m.fieldCache[id] = make(map[string]float64)
for k, v := range in.Fields() {
if fv, ok := convert(v); ok {
m.fieldCache[id][k] = fv
}
}
} else {
for k, v := range in.Fields() {
if fv, ok := convert(v); ok {
if _, ok := m.fieldCache[id][k]; !ok {
// hit an uncached field of a cached metric
m.fieldCache[id][k] = fv
continue
}
if fv < m.fieldCache[id][k] {
// set new minimum
m.fieldCache[id][k] = fv
}
}
}
}
}
func (m *Min) Push(acc telegraf.Accumulator) {
for id, _ := range m.nameCache {
fields := map[string]interface{}{}
for k, v := range m.fieldCache[id] {
fields[k+"_min"] = v
}
acc.AddFields(m.nameCache[id], fields, m.tagCache[id])
}
}
func (m *Min) Reset() {
m.fieldCache = make(map[uint64]map[string]float64)
m.nameCache = make(map[uint64]string)
m.tagCache = make(map[uint64]map[string]string)
}
func convert(in interface{}) (float64, bool) {
switch v := in.(type) {
case float64:
return v, true
case int64:
return float64(v), true
default:
return 0, false
}
}
func init() {
aggregators.Add("min", func() telegraf.Aggregator {
return NewMin()
})
}
And run the full test suite with:
```
make test-all
```
## Unit Tests
Use `make docker-kill` to stop the containers.
### Execute short tests
execute `make test-short`
### Execute long tests
As Telegraf collects metrics from several third-party services it becomes a
difficult task to mock each service as some of them have complicated protocols
which would take some time to replicate.
To overcome this situation we've decided to use docker containers to provide a
fast and reproducible environment to test those services which require it.
For other situations
(i.e: https://github.com/influxdata/telegraf/blob/master/plugins/inputs/redis/redis_test.go)
a simple mock will suffice.
To execute Telegraf tests follow these simple steps:
- Install docker following [these](https://docs.docker.com/installation/)
instructions
- execute `make test`
### Unit test troubleshooting
Try cleaning up your test environment by executing `make docker-kill` and
re-running
[cla]: https://www.influxdata.com/legal/cla/
[new issue]: https://github.com/influxdata/telegraf/issues/new/choose
[pull request]: https://github.com/influxdata/telegraf/compare
[inputs]: /docs/INPUTS.md
[processors]: /docs/PROCESSORS.md
[aggregators]: /docs/AGGREGATORS.md
[outputs]: /docs/OUTPUTS.md

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
# Copy of scripts/stretch.docker
FROM golang:1.13.8 as builder
WORKDIR /go/src/github.com/influxdata/telegraf
COPY . /go/src/github.com/influxdata/telegraf
RUN make go-install
FROM buildpack-deps:stretch-curl
COPY --from=builder /go/bin/* /usr/bin/
COPY etc/telegraf.conf /etc/telegraf/telegraf.conf
EXPOSE 8125/udp 8092/udp 8094
COPY scripts/docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["telegraf"]

9
EXTERNAL_PLUGINS.md Normal file
View File

@ -0,0 +1,9 @@
# External Plugins
This is a list of plugins that can be compiled outside of Telegraf and used via the execd input.
Pull requests welcome.
## Inputs
- [rand](https://github.com/ssoroka/rand) - Generate random numbers
- [twitter](https://github.com/inabagumi/twitter-telegraf-plugin) - Gather account information from Twitter accounts

66
Godeps
View File

@ -1,66 +0,0 @@
github.com/Shopify/sarama 574d3147eee384229bf96a5d12c207fe7b5234f3
github.com/Sirupsen/logrus 61e43dc76f7ee59a82bdf3d71033dc12bea4c77d
github.com/aerospike/aerospike-client-go 95e1ad7791bdbca44707fedbb29be42024900d9c
github.com/amir/raidman c74861fe6a7bb8ede0a010ce4485bdbb4fc4c985
github.com/aws/aws-sdk-go 7524cb911daddd6e5c9195def8e59ae892bef8d9
github.com/beorn7/perks 4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9
github.com/cenkalti/backoff b02f2bbce11d7ea6b97f282ef1771b0fe2f65ef3
github.com/couchbase/go-couchbase bfe555a140d53dc1adf390f1a1d4b0fd4ceadb28
github.com/couchbase/gomemcached 4a25d2f4e1dea9ea7dd76dfd943407abf9b07d29
github.com/couchbase/goutils 5823a0cbaaa9008406021dc5daf80125ea30bba6
github.com/davecgh/go-spew 346938d642f2ec3594ed81d874461961cd0faa76
github.com/docker/distribution fb0bebc4b64e3881cc52a2478d749845ed76d2a8
github.com/docker/engine-api 4290f40c056686fcaa5c9caf02eac1dde9315adf
github.com/docker/go-connections 9670439d95da2651d9dfc7acc5d2ed92d3f25ee6
github.com/docker/go-units 0dadbb0345b35ec7ef35e228dabb8de89a65bf52
github.com/eapache/go-resiliency b86b1ec0dd4209a588dc1285cdd471e73525c0b3
github.com/eapache/go-xerial-snappy bb955e01b9346ac19dc29eb16586c90ded99a98c
github.com/eapache/queue 44cc805cf13205b55f69e14bcb69867d1ae92f98
github.com/eclipse/paho.mqtt.golang d4f545eb108a2d19f9b1a735689dbfb719bc21fb
github.com/go-sql-driver/mysql 2e00b5cd70399450106cec6431c2e2ce3cae5034
github.com/gobwas/glob bea32b9cd2d6f55753d94a28e959b13f0244797a
github.com/golang/protobuf 8ee79997227bf9b34611aee7946ae64735e6fd93
github.com/golang/snappy 7db9049039a047d955fe8c19b83c8ff5abd765c7
github.com/gorilla/mux 392c28fe23e1c45ddba891b0320b3b5df220beea
github.com/hailocab/go-hostpool e80d13ce29ede4452c43dea11e79b9bc8a15b478
github.com/hashicorp/consul 63d2fc68239b996096a1c55a0d4b400ea4c2583f
github.com/hpcloud/tail 915e5feba042395f5fda4dbe9c0e99aeab3088b3
github.com/influxdata/config 8ec4638a81500c20be24855812bc8498ebe2dc92
github.com/influxdata/toml ad49a5c2936f96b8f5943c3fdba47630ccf45a0d
github.com/influxdata/wlog 7c63b0a71ef8300adc255344d275e10e5c3a71ec
github.com/jackc/pgx c8080fc4a1bfa44bf90383ad0fdce2f68b7d313c
github.com/kardianos/osext c2c54e542fb797ad986b31721e1baedf214ca413
github.com/kardianos/service 6d3a0ee7d3425d9d835debc51a0ca1ffa28f4893
github.com/kballard/go-shellquote d8ec1a69a250a17bb0e419c386eac1f3711dc142
github.com/klauspost/crc32 cb6bfca970f6908083f26f39a79009d608efd5cd
github.com/matttproud/golang_protobuf_extensions c12348ce28de40eed0136aa2b644d0ee0650e56c
github.com/miekg/dns 99f84ae56e75126dd77e5de4fae2ea034a468ca1
github.com/naoina/go-stringutil 6b638e95a32d0c1131db0e7fe83775cbea4a0d0b
github.com/nats-io/go-nats ea9585611a4ab58a205b9b125ebd74c389a6b898
github.com/nats-io/nats ea9585611a4ab58a205b9b125ebd74c389a6b898
github.com/nats-io/nuid 289cccf02c178dc782430d534e3c1f5b72af807f
github.com/nsqio/go-nsq a53d495e81424aaf7a7665a9d32a97715c40e953
github.com/pierrec/lz4 5c9560bfa9ace2bf86080bf40d46b34ae44604df
github.com/pierrec/xxHash 5a004441f897722c627870a981d02b29924215fa
github.com/prometheus/client_golang c317fb74746eac4fc65fe3909195f4cf67c5562a
github.com/prometheus/client_model fa8ad6fec33561be4280a8f0514318c79d7f6cb6
github.com/prometheus/common dd2f054febf4a6c00f2343686efb775948a8bff4
github.com/prometheus/procfs 1878d9fbb537119d24b21ca07effd591627cd160
github.com/rcrowley/go-metrics 1f30fe9094a513ce4c700b9a54458bbb0c96996c
github.com/samuel/go-zookeeper 1d7be4effb13d2d908342d349d71a284a7542693
github.com/shirou/gopsutil 77b5d0080adb6f028e457906f1944d9fcca34442
github.com/soniah/gosnmp 5ad50dc75ab389f8a1c9f8a67d3a1cd85f67ed15
github.com/streadway/amqp 63795daa9a446c920826655f26ba31c81c860fd6
github.com/stretchr/testify 4d4bfba8f1d1027c4fdbe371823030df51419987
github.com/vjeantet/grok 83bfdfdfd1a8146795b28e547a8e3c8b28a466c2
github.com/wvanbergen/kafka bc265fedb9ff5b5c5d3c0fdcef4a819b3523d3ee
github.com/wvanbergen/kazoo-go 968957352185472eacb69215fa3dbfcfdbac1096
github.com/yuin/gopher-lua 66c871e454fcf10251c61bf8eff02d0978cae75a
github.com/zensqlmonitor/go-mssqldb ffe5510c6fa5e15e6d983210ab501c815b56b363
golang.org/x/crypto dc137beb6cce2043eb6b5f223ab8bf51c32459f4
golang.org/x/net f2499483f923065a842d38eb4c7f1927e6fc6e6d
golang.org/x/text 506f9d5c962f284575e88337e7d9296d27e729d3
gopkg.in/dancannon/gorethink.v1 edc7a6a68e2d8015f5ffe1b2560eed989f8a45be
gopkg.in/fatih/pool.v2 6e328e67893eb46323ad06f0e92cb9536babbabc
gopkg.in/mgo.v2 3f83fa5005286a7fe593b055f0d7771a7dce4655
gopkg.in/yaml.v2 4c78c975fe7c825c6d1466c42be594d1d6f3aba6

View File

@ -1,11 +0,0 @@
github.com/Microsoft/go-winio ce2922f643c8fd76b46cadc7f404a06282678b34
github.com/StackExchange/wmi f3e2bae1e0cb5aef83e319133eabfee30013a4a5
github.com/go-ole/go-ole be49f7c07711fcb603cff39e1de7c67926dc0ba7
github.com/shirou/w32 3c9377fc6748f222729a8270fe2775d149a249ad
golang.org/x/sys a646d33e2ee3172a661fc09bca23bb4889a41bc8
github.com/go-ini/ini 9144852efba7c4daf409943ee90767da62d55438
github.com/jmespath/go-jmespath bd40a432e4c76585ef6b72d3fd96fb9b6dc7b68d
github.com/pmezard/go-difflib/difflib 792786c7400a136282c1664665ae0a8db921c6c2
github.com/stretchr/objx 1a9d0bb9f541897e62256577b352fdbc1fb4fd94
gopkg.in/fsnotify.v1 a8a77c9133d2d6fd8334f3260d06f60e8d80a5fb
gopkg.in/tomb.v1 dd632973f1e7218eb1089048e0798ec9ae7dceb8

View File

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2015 InfluxDB
Copyright (c) 2015-2019 InfluxData Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

223
Makefile
View File

@ -1,96 +1,155 @@
VERSION := $(shell sh -c 'git describe --always --tags')
BRANCH := $(shell sh -c 'git rev-parse --abbrev-ref HEAD')
COMMIT := $(shell sh -c 'git rev-parse --short HEAD')
ifeq ($(OS), Windows_NT)
VERSION := $(shell git describe --exact-match --tags 2>nul)
HOME := $(HOMEPATH)
CGO_ENABLED ?= 0
export CGO_ENABLED
else
VERSION := $(shell git describe --exact-match --tags 2>/dev/null)
endif
PREFIX := /usr/local
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
COMMIT := $(shell git rev-parse --short HEAD)
GOFILES ?= $(shell git ls-files '*.go')
GOFMT ?= $(shell gofmt -l -s $(filter-out plugins/parsers/influx/machine.go, $(GOFILES)))
BUILDFLAGS ?=
ifdef GOBIN
PATH := $(GOBIN):$(PATH)
else
PATH := $(subst :,/bin:,$(GOPATH))/bin:$(PATH)
PATH := $(subst :,/bin:,$(shell go env GOPATH))/bin:$(PATH)
endif
# Standard Telegraf build
default: prepare build
LDFLAGS := $(LDFLAGS) -X main.commit=$(COMMIT) -X main.branch=$(BRANCH)
ifdef VERSION
LDFLAGS += -X main.version=$(VERSION)
endif
# Windows build
windows: prepare-windows build-windows
.PHONY: all
all:
@$(MAKE) --no-print-directory deps
@$(MAKE) --no-print-directory telegraf
# Only run the build (no dependency grabbing)
build:
go install -ldflags \
"-X main.version=$(VERSION) -X main.commit=$(COMMIT) -X main.branch=$(BRANCH)" ./...
.PHONY: deps
deps:
go mod download
build-windows:
GOOS=windows GOARCH=amd64 go build -o telegraf.exe -ldflags \
"-X main.version=$(VERSION) -X main.commit=$(COMMIT) -X main.branch=$(BRANCH)" \
./cmd/telegraf/telegraf.go
.PHONY: telegraf
telegraf:
go build -ldflags "$(LDFLAGS)" ./cmd/telegraf
build-for-docker:
CGO_ENABLED=0 GOOS=linux go build -installsuffix cgo -o telegraf -ldflags \
"-s -X main.version=$(VERSION) -X main.commit=$(COMMIT) -X main.branch=$(BRANCH)" \
./cmd/telegraf/telegraf.go
.PHONY: go-install
go-install:
go install -ldflags "-w -s $(LDFLAGS)" ./cmd/telegraf
# run package script
package:
./scripts/build.py --package --version="$(VERSION)" --platform=linux --arch=all --upload
.PHONY: install
install: telegraf
mkdir -p $(DESTDIR)$(PREFIX)/bin/
cp telegraf $(DESTDIR)$(PREFIX)/bin/
# Get dependencies and use gdm to checkout changesets
prepare:
go get github.com/sparrc/gdm
gdm restore
# Use the windows godeps file to prepare dependencies
prepare-windows:
go get github.com/sparrc/gdm
gdm restore
gdm restore -f Godeps_windows
# Run all docker containers necessary for unit tests
docker-run:
docker run --name aerospike -p "3000:3000" -d aerospike/aerospike-server:3.9.0
docker run --name kafka \
-e ADVERTISED_HOST=localhost \
-e ADVERTISED_PORT=9092 \
-p "2181:2181" -p "9092:9092" \
-d spotify/kafka
docker run --name mysql -p "3306:3306" -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -d mysql
docker run --name memcached -p "11211:11211" -d memcached
docker run --name postgres -p "5432:5432" -d postgres
docker run --name rabbitmq -p "15672:15672" -p "5672:5672" -d rabbitmq:3-management
docker run --name redis -p "6379:6379" -d redis
docker run --name nsq -p "4150:4150" -d nsqio/nsq /nsqd
docker run --name mqtt -p "1883:1883" -d ncarlier/mqtt
docker run --name riemann -p "5555:5555" -d stealthly/docker-riemann
docker run --name nats -p "4222:4222" -d nats
# Run docker containers necessary for CircleCI unit tests
docker-run-circle:
docker run --name aerospike -p "3000:3000" -d aerospike/aerospike-server:3.9.0
docker run --name kafka \
-e ADVERTISED_HOST=localhost \
-e ADVERTISED_PORT=9092 \
-p "2181:2181" -p "9092:9092" \
-d spotify/kafka
docker run --name nsq -p "4150:4150" -d nsqio/nsq /nsqd
docker run --name mqtt -p "1883:1883" -d ncarlier/mqtt
docker run --name riemann -p "5555:5555" -d stealthly/docker-riemann
docker run --name nats -p "4222:4222" -d nats
# Kill all docker containers, ignore errors
docker-kill:
-docker kill nsq aerospike redis rabbitmq postgres memcached mysql kafka mqtt riemann nats
-docker rm nsq aerospike redis rabbitmq postgres memcached mysql kafka mqtt riemann nats
# Run full unit tests using docker containers (includes setup and teardown)
test: vet docker-kill docker-run
# Sleeping for kafka leadership election, TSDB setup, etc.
sleep 60
# SUCCESS, running tests
go test -race ./...
# Run "short" unit tests
test-short: vet
.PHONY: test
test:
go test -short ./...
vet:
go vet ./...
.PHONY: fmt
fmt:
@gofmt -s -w $(filter-out plugins/parsers/influx/machine.go, $(GOFILES))
.PHONY: test test-short vet build default
.PHONY: fmtcheck
fmtcheck:
@if [ ! -z "$(GOFMT)" ]; then \
echo "[ERROR] gofmt has found errors in the following files:" ; \
echo "$(GOFMT)" ; \
echo "" ;\
echo "Run make fmt to fix them." ; \
exit 1 ;\
fi
.PHONY: test-windows
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 -short ./plugins/processors/port_name/...
.PHONY: vet
vet:
@echo 'go vet $$(go list ./... | grep -v ./plugins/parsers/influx)'
@go vet $$(go list ./... | grep -v ./plugins/parsers/influx) ; if [ $$? -ne 0 ]; then \
echo ""; \
echo "go vet has found suspicious constructs. Please remediate any reported errors"; \
echo "to fix them before submitting code for review."; \
exit 1; \
fi
.PHONY: tidy
tidy:
go mod verify
go mod tidy
@if ! git diff --quiet go.mod go.sum; then \
echo "please run go mod tidy and check in changes"; \
exit 1; \
fi
.PHONY: check
check: fmtcheck vet
@$(MAKE) --no-print-directory tidy
.PHONY: test-all
test-all: fmtcheck vet
go test ./...
.PHONY: check-deps
check-deps:
./scripts/check-deps.sh
.PHONY: package
package:
./scripts/build.py --package --platform=all --arch=all
.PHONY: package-release
package-release:
./scripts/build.py --release --package --platform=all --arch=all \
--upload --bucket=dl.influxdata.com/telegraf/releases
.PHONY: package-nightly
package-nightly:
./scripts/build.py --nightly --package --platform=all --arch=all \
--upload --bucket=dl.influxdata.com/telegraf/nightlies
.PHONY: clean
clean:
rm -f telegraf
rm -f telegraf.exe
.PHONY: docker-image
docker-image:
docker build -f scripts/stretch.docker -t "telegraf:$(COMMIT)" .
plugins/parsers/influx/machine.go: plugins/parsers/influx/machine.go.rl
ragel -Z -G2 $^ -o $@
.PHONY: static
static:
@echo "Building static linux binary..."
@CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64 \
go build -ldflags "$(LDFLAGS)" ./cmd/telegraf
.PHONY: plugin-%
plugin-%:
@echo "Starting dev environment for $${$(@)} input plugin..."
@docker-compose -f plugins/inputs/$${$(@)}/dev/docker-compose.yml up
.PHONY: ci-1.13
ci-1.13:
docker build -t quay.io/influxdb/telegraf-ci:1.13.8 - < scripts/ci-1.13.docker
docker push quay.io/influxdb/telegraf-ci:1.13.8
.PHONY: ci-1.12
ci-1.12:
docker build -t quay.io/influxdb/telegraf-ci:1.12.17 - < scripts/ci-1.12.docker
docker push quay.io/influxdb/telegraf-ci:1.12.17

372
README.md
View File

@ -1,39 +1,49 @@
# Telegraf [![Circle CI](https://circleci.com/gh/influxdata/telegraf.svg?style=svg)](https://circleci.com/gh/influxdata/telegraf) [![Docker pulls](https://img.shields.io/docker/pulls/library/telegraf.svg)](https://hub.docker.com/_/telegraf/)
Telegraf is an agent written in Go for collecting, processing, aggregating,
and writing metrics.
Telegraf is an agent for collecting, processing, aggregating, and writing metrics.
Design goals are to have a minimal memory footprint with a plugin system so
that developers in the community can easily add support for collecting metrics
from well known services (like Hadoop, Postgres, or Redis) and third party
APIs (like Mailchimp, AWS CloudWatch, or Google Analytics).
that developers in the community can easily add support for collecting
metrics.
Telegraf is plugin-driven and has the concept of 4 distinct plugins:
Telegraf is plugin-driven and has the concept of 4 distinct plugin types:
1. [Input Plugins](#input-plugins) collect metrics from the system, services, or 3rd party APIs
2. [Processor Plugins](#processor-plugins) transform, decorate, and/or filter metrics
3. [Aggregator Plugins](#aggregator-plugins) create aggregate metrics (e.g. mean, min, max, quantiles, etc.)
4. [Output Plugins](#output-plugins) write metrics to various destinations
For more information on Processor and Aggregator plugins please [read this](./docs/AGGREGATORS_AND_PROCESSORS.md).
New plugins are designed to be easy to contribute, pull requests are welcomed
and we work to incorporate as many pull requests as possible.
New plugins are designed to be easy to contribute,
we'll eagerly accept pull
requests and will manage the set of plugins that Telegraf supports.
See the [contributing guide](CONTRIBUTING.md) for instructions on writing
new plugins.
## Try in Browser :rocket:
You can try Telegraf right in your browser in the [Telegraf playground](https://rootnroll.com/d/telegraf/).
## Contributing
There are many ways to contribute:
- Fix and [report bugs](https://github.com/influxdata/telegraf/issues/new)
- [Improve documentation](https://github.com/influxdata/telegraf/issues?q=is%3Aopen+label%3Adocumentation)
- [Review code and feature proposals](https://github.com/influxdata/telegraf/pulls)
- Answer questions and discuss here on github and on the [Community Site](https://community.influxdata.com/)
- [Contribute plugins](CONTRIBUTING.md)
- [Contribute external plugins](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/execd/shim) *(experimental)*
## Minimum Requirements
Telegraf shares the same [minimum requirements][] as Go:
- Linux kernel version 2.6.23 or later
- Windows 7 or later
- FreeBSD 11.2 or later
- MacOS 10.11 El Capitan or later
[minimum requirements]: https://github.com/golang/go/wiki/MinimumRequirements#minimum-requirements
## Installation:
You can either download the binaries directly from the
[downloads](https://www.influxdata.com/downloads) page.
A few alternate installs are available here as well:
### FreeBSD tarball:
Latest:
* https://dl.influxdata.com/telegraf/releases/telegraf-VERSION_freebsd_amd64.tar.gz
You can download the binaries directly from the [downloads](https://www.influxdata.com/downloads) page
or from the [releases](https://github.com/influxdata/telegraf/releases) section.
### Ansible Role:
@ -41,15 +51,52 @@ Ansible role: https://github.com/rossmcdonald/telegraf
### From Source:
Telegraf manages dependencies via [gdm](https://github.com/sparrc/gdm),
which gets installed via the Makefile
if you don't have it already. You also must build with golang version 1.5+.
Telegraf requires Go version 1.13 or newer, the Makefile requires GNU make.
1. [Install Go](https://golang.org/doc/install)
2. [Setup your GOPATH](https://golang.org/doc/code.html#GOPATH)
3. Run `go get github.com/influxdata/telegraf`
4. Run `cd $GOPATH/src/github.com/influxdata/telegraf`
5. Run `make`
1. [Install Go](https://golang.org/doc/install) >=1.13 (1.14 recommended)
2. Clone the Telegraf repository:
```
cd ~/src
git clone https://github.com/influxdata/telegraf.git
```
3. Run `make` from the source directory
```
cd ~/src/telegraf
make
```
### Changelog
View the [changelog](/CHANGELOG.md) for the latest updates and changes by
version.
### Nightly Builds
These builds are generated from the master branch:
- [telegraf-nightly_darwin_amd64.tar.gz](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_darwin_amd64.tar.gz)
- [telegraf_nightly_amd64.deb](https://dl.influxdata.com/telegraf/nightlies/telegraf_nightly_amd64.deb)
- [telegraf_nightly_arm64.deb](https://dl.influxdata.com/telegraf/nightlies/telegraf_nightly_arm64.deb)
- [telegraf-nightly.arm64.rpm](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly.arm64.rpm)
- [telegraf_nightly_armel.deb](https://dl.influxdata.com/telegraf/nightlies/telegraf_nightly_armel.deb)
- [telegraf-nightly.armel.rpm](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly.armel.rpm)
- [telegraf_nightly_armhf.deb](https://dl.influxdata.com/telegraf/nightlies/telegraf_nightly_armhf.deb)
- [telegraf-nightly.armv6hl.rpm](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly.armv6hl.rpm)
- [telegraf-nightly_freebsd_amd64.tar.gz](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_freebsd_amd64.tar.gz)
- [telegraf-nightly_freebsd_i386.tar.gz](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_freebsd_i386.tar.gz)
- [telegraf_nightly_i386.deb](https://dl.influxdata.com/telegraf/nightlies/telegraf_nightly_i386.deb)
- [telegraf-nightly.i386.rpm](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly.i386.rpm)
- [telegraf-nightly_linux_amd64.tar.gz](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_linux_amd64.tar.gz)
- [telegraf-nightly_linux_arm64.tar.gz](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_linux_arm64.tar.gz)
- [telegraf-nightly_linux_armel.tar.gz](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_linux_armel.tar.gz)
- [telegraf-nightly_linux_armhf.tar.gz](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_linux_armhf.tar.gz)
- [telegraf-nightly_linux_i386.tar.gz](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_linux_i386.tar.gz)
- [telegraf-nightly_linux_s390x.tar.gz](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_linux_s390x.tar.gz)
- [telegraf_nightly_s390x.deb](https://dl.influxdata.com/telegraf/nightlies/telegraf_nightly_s390x.deb)
- [telegraf-nightly.s390x.rpm](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly.s390x.rpm)
- [telegraf-nightly_windows_amd64.zip](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_windows_amd64.zip)
- [telegraf-nightly_windows_i386.zip](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_windows_i386.zip)
- [telegraf-nightly.x86_64.rpm](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly.x86_64.rpm)
- [telegraf-static-nightly_linux_amd64.tar.gz](https://dl.influxdata.com/telegraf/nightlies/telegraf-static-nightly_linux_amd64.tar.gz)
## How to use it:
@ -65,167 +112,318 @@ telegraf --help
telegraf config > telegraf.conf
```
#### Generate config with only cpu input & influxdb output plugins defined
#### Generate config with only cpu input & influxdb output plugins defined:
```
telegraf --input-filter cpu --output-filter influxdb config
telegraf --section-filter agent:inputs:outputs --input-filter cpu --output-filter influxdb config
```
#### Run a single telegraf collection, outputing metrics to stdout
#### Run a single telegraf collection, outputting metrics to stdout:
```
telegraf --config telegraf.conf -test
telegraf --config telegraf.conf --test
```
#### Run telegraf with all plugins defined in config file
#### Run telegraf with all plugins defined in config file:
```
telegraf --config telegraf.conf
```
#### Run telegraf, enabling the cpu & memory input, and influxdb output plugins
#### Run telegraf, enabling the cpu & memory input, and influxdb output plugins:
```
telegraf --config telegraf.conf -input-filter cpu:mem -output-filter influxdb
telegraf --config telegraf.conf --input-filter cpu:mem --output-filter influxdb
```
## Documentation
## Configuration
[Latest Release Documentation][release docs].
See the [configuration guide](docs/CONFIGURATION.md) for a rundown of the more advanced
configuration options.
For documentation on the latest development code see the [documentation index][devel docs].
[release docs]: https://docs.influxdata.com/telegraf
[devel docs]: docs
## Input Plugins
* [aws cloudwatch](./plugins/inputs/cloudwatch)
* [activemq](./plugins/inputs/activemq)
* [aerospike](./plugins/inputs/aerospike)
* [amqp_consumer](./plugins/inputs/amqp_consumer) (rabbitmq)
* [apache](./plugins/inputs/apache)
* [apcupsd](./plugins/inputs/apcupsd)
* [aurora](./plugins/inputs/aurora)
* [aws cloudwatch](./plugins/inputs/cloudwatch) (Amazon Cloudwatch)
* [azure_storage_queue](./plugins/inputs/azure_storage_queue)
* [bcache](./plugins/inputs/bcache)
* [cassandra](./plugins/inputs/cassandra)
* [beanstalkd](./plugins/inputs/beanstalkd)
* [bind](./plugins/inputs/bind)
* [bond](./plugins/inputs/bond)
* [burrow](./plugins/inputs/burrow)
* [cassandra](./plugins/inputs/cassandra) (deprecated, use [jolokia2](./plugins/inputs/jolokia2))
* [ceph](./plugins/inputs/ceph)
* [cgroup](./plugins/inputs/cgroup)
* [chrony](./plugins/inputs/chrony)
* [consul](./plugins/inputs/consul)
* [cisco_telemetry_gnmi](./plugins/inputs/cisco_telemetry_gnmi)
* [cisco_telemetry_mdt](./plugins/inputs/cisco_telemetry_mdt)
* [clickhouse](./plugins/inputs/clickhouse)
* [cloud_pubsub](./plugins/inputs/cloud_pubsub) Google Cloud Pub/Sub
* [cloud_pubsub_push](./plugins/inputs/cloud_pubsub_push) Google Cloud Pub/Sub push endpoint
* [conntrack](./plugins/inputs/conntrack)
* [consul](./plugins/inputs/consul)
* [couchbase](./plugins/inputs/couchbase)
* [couchdb](./plugins/inputs/couchdb)
* [cpu](./plugins/inputs/cpu)
* [DC/OS](./plugins/inputs/dcos)
* [diskio](./plugins/inputs/diskio)
* [disk](./plugins/inputs/disk)
* [disque](./plugins/inputs/disque)
* [dmcache](./plugins/inputs/dmcache)
* [dns query time](./plugins/inputs/dns_query)
* [docker](./plugins/inputs/docker)
* [docker_log](./plugins/inputs/docker_log)
* [dovecot](./plugins/inputs/dovecot)
* [aws ecs](./plugins/inputs/ecs) (Amazon Elastic Container Service, Fargate)
* [elasticsearch](./plugins/inputs/elasticsearch)
* [ethtool](./plugins/inputs/ethtool)
* [eventhub_consumer](./plugins/inputs/eventhub_consumer) (Azure Event Hubs \& Azure IoT Hub)
* [exec](./plugins/inputs/exec) (generic executable plugin, support JSON, influx, graphite and nagios)
* [execd](./plugins/inputs/execd)
* [fail2ban](./plugins/inputs/fail2ban)
* [fibaro](./plugins/inputs/fibaro)
* [file](./plugins/inputs/file)
* [filestat](./plugins/inputs/filestat)
* [filecount](./plugins/inputs/filecount)
* [fireboard](/plugins/inputs/fireboard)
* [fluentd](./plugins/inputs/fluentd)
* [github](./plugins/inputs/github)
* [graylog](./plugins/inputs/graylog)
* [haproxy](./plugins/inputs/haproxy)
* [hddtemp](./plugins/inputs/hddtemp)
* [http_response](./plugins/inputs/http_response)
* [httpjson](./plugins/inputs/httpjson) (generic JSON-emitting http service plugin)
* [internal](./plugins/inputs/internal)
* [http_listener](./plugins/inputs/influxdb_listener) (deprecated, renamed to [influxdb_listener](/plugins/inputs/influxdb_listener))
* [http_listener_v2](./plugins/inputs/http_listener_v2)
* [http](./plugins/inputs/http) (generic HTTP plugin, supports using input data formats)
* [http_response](./plugins/inputs/http_response)
* [icinga2](./plugins/inputs/icinga2)
* [infiniband](./plugins/inputs/infiniband)
* [influxdb](./plugins/inputs/influxdb)
* [influxdb_listener](./plugins/inputs/influxdb_listener)
* [internal](./plugins/inputs/internal)
* [interrupts](./plugins/inputs/interrupts)
* [ipmi_sensor](./plugins/inputs/ipmi_sensor)
* [ipset](./plugins/inputs/ipset)
* [iptables](./plugins/inputs/iptables)
* [jolokia](./plugins/inputs/jolokia)
* [ipvs](./plugins/inputs/ipvs)
* [jenkins](./plugins/inputs/jenkins)
* [jolokia2](./plugins/inputs/jolokia2) (java, cassandra, kafka)
* [jolokia](./plugins/inputs/jolokia) (deprecated, use [jolokia2](./plugins/inputs/jolokia2))
* [jti_openconfig_telemetry](./plugins/inputs/jti_openconfig_telemetry)
* [kafka_consumer](./plugins/inputs/kafka_consumer)
* [kapacitor](./plugins/inputs/kapacitor)
* [aws kinesis](./plugins/inputs/kinesis_consumer) (Amazon Kinesis)
* [kernel](./plugins/inputs/kernel)
* [kernel_vmstat](./plugins/inputs/kernel_vmstat)
* [kibana](./plugins/inputs/kibana)
* [kubernetes](./plugins/inputs/kubernetes)
* [kube_inventory](./plugins/inputs/kube_inventory)
* [lanz](./plugins/inputs/lanz)
* [leofs](./plugins/inputs/leofs)
* [linux_sysctl_fs](./plugins/inputs/linux_sysctl_fs)
* [logparser](./plugins/inputs/logparser) (deprecated, use [tail](/plugins/inputs/tail))
* [logstash](./plugins/inputs/logstash)
* [lustre2](./plugins/inputs/lustre2)
* [mailchimp](./plugins/inputs/mailchimp)
* [marklogic](./plugins/inputs/marklogic)
* [mcrouter](./plugins/inputs/mcrouter)
* [memcached](./plugins/inputs/memcached)
* [mem](./plugins/inputs/mem)
* [mesos](./plugins/inputs/mesos)
* [minecraft](./plugins/inputs/minecraft)
* [modbus](./plugins/inputs/modbus)
* [mongodb](./plugins/inputs/mongodb)
* [monit](./plugins/inputs/monit)
* [mqtt_consumer](./plugins/inputs/mqtt_consumer)
* [multifile](./plugins/inputs/multifile)
* [mysql](./plugins/inputs/mysql)
* [nats_consumer](./plugins/inputs/nats_consumer)
* [nats](./plugins/inputs/nats)
* [neptune_apex](./plugins/inputs/neptune_apex)
* [net](./plugins/inputs/net)
* [net_response](./plugins/inputs/net_response)
* [netstat](./plugins/inputs/net)
* [nginx](./plugins/inputs/nginx)
* [nginx_plus_api](./plugins/inputs/nginx_plus_api)
* [nginx_plus](./plugins/inputs/nginx_plus)
* [nginx_upstream_check](./plugins/inputs/nginx_upstream_check)
* [nginx_vts](./plugins/inputs/nginx_vts)
* [nsq_consumer](./plugins/inputs/nsq_consumer)
* [nsq](./plugins/inputs/nsq)
* [nstat](./plugins/inputs/nstat)
* [ntpq](./plugins/inputs/ntpq)
* [nvidia_smi](./plugins/inputs/nvidia_smi)
* [openldap](./plugins/inputs/openldap)
* [openntpd](./plugins/inputs/openntpd)
* [opensmtpd](./plugins/inputs/opensmtpd)
* [openweathermap](./plugins/inputs/openweathermap)
* [pf](./plugins/inputs/pf)
* [pgbouncer](./plugins/inputs/pgbouncer)
* [phpfpm](./plugins/inputs/phpfpm)
* [phusion passenger](./plugins/inputs/passenger)
* [ping](./plugins/inputs/ping)
* [postgresql](./plugins/inputs/postgresql)
* [postfix](./plugins/inputs/postfix)
* [postgresql_extensible](./plugins/inputs/postgresql_extensible)
* [postgresql](./plugins/inputs/postgresql)
* [powerdns](./plugins/inputs/powerdns)
* [powerdns_recursor](./plugins/inputs/powerdns_recursor)
* [processes](./plugins/inputs/processes)
* [procstat](./plugins/inputs/procstat)
* [prometheus](./plugins/inputs/prometheus)
* [prometheus](./plugins/inputs/prometheus) (can be used for [Caddy server](./plugins/inputs/prometheus/README.md#usage-for-caddy-http-server))
* [puppetagent](./plugins/inputs/puppetagent)
* [rabbitmq](./plugins/inputs/rabbitmq)
* [raindrops](./plugins/inputs/raindrops)
* [redis](./plugins/inputs/redis)
* [rethinkdb](./plugins/inputs/rethinkdb)
* [riak](./plugins/inputs/riak)
* [salesforce](./plugins/inputs/salesforce)
* [sensors](./plugins/inputs/sensors)
* [snmp](./plugins/inputs/snmp)
* [sflow](./plugins/inputs/sflow)
* [smart](./plugins/inputs/smart)
* [snmp_legacy](./plugins/inputs/snmp_legacy)
* [sql server](./plugins/inputs/sqlserver) (microsoft)
* [twemproxy](./plugins/inputs/twemproxy)
* [varnish](./plugins/inputs/varnish)
* [zfs](./plugins/inputs/zfs)
* [zookeeper](./plugins/inputs/zookeeper)
* [win_perf_counters ](./plugins/inputs/win_perf_counters) (windows performance counters)
* [sysstat](./plugins/inputs/sysstat)
* [system](./plugins/inputs/system)
* cpu
* mem
* net
* netstat
* disk
* diskio
* swap
* processes
* kernel (/proc/stat)
* kernel (/proc/vmstat)
Telegraf can also collect metrics via the following service plugins:
* [http_listener](./plugins/inputs/http_listener)
* [kafka_consumer](./plugins/inputs/kafka_consumer)
* [mqtt_consumer](./plugins/inputs/mqtt_consumer)
* [nats_consumer](./plugins/inputs/nats_consumer)
* [nsq_consumer](./plugins/inputs/nsq_consumer)
* [logparser](./plugins/inputs/logparser)
* [statsd](./plugins/inputs/statsd)
* [snmp](./plugins/inputs/snmp)
* [snmp_trap](./plugins/inputs/snmp_trap)
* [socket_listener](./plugins/inputs/socket_listener)
* [solr](./plugins/inputs/solr)
* [sql server](./plugins/inputs/sqlserver) (microsoft)
* [stackdriver](./plugins/inputs/stackdriver) (Google Cloud Monitoring)
* [statsd](./plugins/inputs/statsd)
* [suricata](./plugins/inputs/suricata)
* [swap](./plugins/inputs/swap)
* [synproxy](./plugins/inputs/synproxy)
* [syslog](./plugins/inputs/syslog)
* [sysstat](./plugins/inputs/sysstat)
* [systemd_units](./plugins/inputs/systemd_units)
* [system](./plugins/inputs/system)
* [tail](./plugins/inputs/tail)
* [tcp_listener](./plugins/inputs/tcp_listener)
* [udp_listener](./plugins/inputs/udp_listener)
* [temp](./plugins/inputs/temp)
* [tcp_listener](./plugins/inputs/socket_listener)
* [teamspeak](./plugins/inputs/teamspeak)
* [tengine](./plugins/inputs/tengine)
* [tomcat](./plugins/inputs/tomcat)
* [twemproxy](./plugins/inputs/twemproxy)
* [udp_listener](./plugins/inputs/socket_listener)
* [unbound](./plugins/inputs/unbound)
* [uwsgi](./plugins/inputs/uwsgi)
* [varnish](./plugins/inputs/varnish)
* [vsphere](./plugins/inputs/vsphere) VMware vSphere
* [webhooks](./plugins/inputs/webhooks)
* [filestack](./plugins/inputs/webhooks/filestack)
* [github](./plugins/inputs/webhooks/github)
* [mandrill](./plugins/inputs/webhooks/mandrill)
* [papertrail](./plugins/inputs/webhooks/papertrail)
* [particle](./plugins/inputs/webhooks/particle)
* [rollbar](./plugins/inputs/webhooks/rollbar)
* [win_perf_counters](./plugins/inputs/win_perf_counters) (windows performance counters)
* [win_services](./plugins/inputs/win_services)
* [wireguard](./plugins/inputs/wireguard)
* [wireless](./plugins/inputs/wireless)
* [x509_cert](./plugins/inputs/x509_cert)
* [zfs](./plugins/inputs/zfs)
* [zipkin](./plugins/inputs/zipkin)
* [zookeeper](./plugins/inputs/zookeeper)
## Parsers
- [InfluxDB Line Protocol](/plugins/parsers/influx)
- [Collectd](/plugins/parsers/collectd)
- [CSV](/plugins/parsers/csv)
- [Dropwizard](/plugins/parsers/dropwizard)
- [FormUrlencoded](/plugins/parser/form_urlencoded)
- [Graphite](/plugins/parsers/graphite)
- [Grok](/plugins/parsers/grok)
- [JSON](/plugins/parsers/json)
- [Logfmt](/plugins/parsers/logfmt)
- [Nagios](/plugins/parsers/nagios)
- [Value](/plugins/parsers/value), ie: 45 or "booyah"
- [Wavefront](/plugins/parsers/wavefront)
## Serializers
- [InfluxDB Line Protocol](/plugins/serializers/influx)
- [JSON](/plugins/serializers/json)
- [Graphite](/plugins/serializers/graphite)
- [ServiceNow](/plugins/serializers/nowmetric)
- [SplunkMetric](/plugins/serializers/splunkmetric)
- [Carbon2](/plugins/serializers/carbon2)
- [Wavefront](/plugins/serializers/wavefront)
## Processor Plugins
* [printer](./plugins/processors/printer)
* [clone](/plugins/processors/clone)
* [converter](/plugins/processors/converter)
* [date](/plugins/processors/date)
* [dedup](/plugins/processors/dedup)
* [defaults](/plugins/processors/defaults)
* [enum](/plugins/processors/enum)
* [filepath](/plugins/processors/filepath)
* [override](/plugins/processors/override)
* [parser](/plugins/processors/parser)
* [pivot](/plugins/processors/pivot)
* [printer](/plugins/processors/printer)
* [regex](/plugins/processors/regex)
* [rename](/plugins/processors/rename)
* [s2geo](/plugins/processors/s2geo)
* [strings](/plugins/processors/strings)
* [tag_limit](/plugins/processors/tag_limit)
* [template](/plugins/processors/template)
* [topk](/plugins/processors/topk)
* [unpivot](/plugins/processors/unpivot)
## Aggregator Plugins
* [basicstats](./plugins/aggregators/basicstats)
* [final](./plugins/aggregators/final)
* [histogram](./plugins/aggregators/histogram)
* [merge](./plugins/aggregators/merge)
* [minmax](./plugins/aggregators/minmax)
* [valuecounter](./plugins/aggregators/valuecounter)
## Output Plugins
* [influxdb](./plugins/outputs/influxdb)
* [influxdb](./plugins/outputs/influxdb) (InfluxDB 1.x)
* [influxdb_v2](./plugins/outputs/influxdb_v2) ([InfluxDB 2.x](https://github.com/influxdata/influxdb))
* [amon](./plugins/outputs/amon)
* [amqp](./plugins/outputs/amqp) (rabbitmq)
* [application_insights](./plugins/outputs/application_insights)
* [aws kinesis](./plugins/outputs/kinesis)
* [aws cloudwatch](./plugins/outputs/cloudwatch)
* [azure_monitor](./plugins/outputs/azure_monitor)
* [cloud_pubsub](./plugins/outputs/cloud_pubsub) Google Cloud Pub/Sub
* [cratedb](./plugins/outputs/cratedb)
* [datadog](./plugins/outputs/datadog)
* [discard](./plugins/outputs/discard)
* [elasticsearch](./plugins/outputs/elasticsearch)
* [exec](./plugins/outputs/exec)
* [file](./plugins/outputs/file)
* [graphite](./plugins/outputs/graphite)
* [graylog](./plugins/outputs/graylog)
* [health](./plugins/outputs/health)
* [http](./plugins/outputs/http)
* [instrumental](./plugins/outputs/instrumental)
* [kafka](./plugins/outputs/kafka)
* [librato](./plugins/outputs/librato)
* [mqtt](./plugins/outputs/mqtt)
* [nats](./plugins/outputs/nats)
* [newrelic](./plugins/outputs/newrelic)
* [nsq](./plugins/outputs/nsq)
* [opentsdb](./plugins/outputs/opentsdb)
* [prometheus](./plugins/outputs/prometheus_client)
* [socket_writer](./plugins/outputs/socket_writer)
* [riemann](./plugins/outputs/riemann)
* [riemann_legacy](./plugins/outputs/riemann_legacy)
## Contributing
Please see the
[contributing guide](CONTRIBUTING.md)
for details on contributing a plugin to Telegraf.
* [socket_writer](./plugins/outputs/socket_writer)
* [stackdriver](./plugins/outputs/stackdriver) (Google Cloud Monitoring)
* [syslog](./plugins/outputs/syslog)
* [tcp](./plugins/outputs/socket_writer)
* [udp](./plugins/outputs/socket_writer)
* [warp10](./plugins/outputs/warp10)
* [wavefront](./plugins/outputs/wavefront)

View File

@ -1,16 +1,14 @@
package telegraf
import "time"
import (
"time"
)
// Accumulator is an interface for "accumulating" metrics from plugin(s).
// The metrics are sent down a channel shared between all plugins.
// Accumulator allows adding metrics to the processing flow.
type Accumulator interface {
// AddFields adds a metric to the accumulator with the given measurement
// name, fields, and tags (and timestamp). If a timestamp is not provided,
// then the accumulator sets it to "now".
// Create a point with a value, decorating it with tags
// NOTE: tags is expected to be owned by the caller, don't mutate
// it after passing to Add.
AddFields(measurement string,
fields map[string]interface{},
tags map[string]string,
@ -28,7 +26,60 @@ type Accumulator interface {
tags map[string]string,
t ...time.Time)
SetPrecision(precision, interval time.Duration)
// AddSummary is the same as AddFields, but will add the metric as a "Summary" type
AddSummary(measurement string,
fields map[string]interface{},
tags map[string]string,
t ...time.Time)
// AddHistogram is the same as AddFields, but will add the metric as a "Histogram" type
AddHistogram(measurement string,
fields map[string]interface{},
tags map[string]string,
t ...time.Time)
// AddMetric adds an metric to the accumulator.
AddMetric(Metric)
// SetPrecision sets the timestamp rounding precision. All metrics addeds
// added to the accumulator will have their timestamp rounded to the
// nearest multiple of precision.
SetPrecision(precision time.Duration)
// Report an error.
AddError(err error)
// Upgrade to a TrackingAccumulator with space for maxTracked
// metrics/batches.
WithTracking(maxTracked int) TrackingAccumulator
}
// TrackingID uniquely identifies a tracked metric group
type TrackingID uint64
// DeliveryInfo provides the results of a delivered metric group.
type DeliveryInfo interface {
// ID is the TrackingID
ID() TrackingID
// Delivered returns true if the metric was processed successfully.
Delivered() bool
}
// TrackingAccumulator is an Accumulator that provides a signal when the
// metric has been fully processed. Sending more metrics than the accumulator
// has been allocated for without reading status from the Accepted or Rejected
// channels is an error.
type TrackingAccumulator interface {
Accumulator
// Add the Metric and arrange for tracking feedback after processing..
AddTrackingMetric(m Metric) TrackingID
// Add a group of Metrics and arrange for a signal when the group has been
// processed.
AddTrackingMetricGroup(group []Metric) TrackingID
// Delivered returns a channel that will contain the tracking results.
Delivered() <-chan DeliveryInfo
}

View File

@ -1,32 +1,28 @@
package agent
import (
"log"
"time"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/selfstat"
)
var (
NErrors = selfstat.Register("agent", "gather_errors", map[string]string{})
"github.com/influxdata/telegraf/metric"
)
type MetricMaker interface {
Name() string
MakeMetric(
measurement string,
fields map[string]interface{},
tags map[string]string,
mType telegraf.ValueType,
t time.Time,
) telegraf.Metric
LogName() string
MakeMetric(metric telegraf.Metric) telegraf.Metric
Log() telegraf.Logger
}
type accumulator struct {
maker MetricMaker
metrics chan<- telegraf.Metric
precision time.Duration
}
func NewAccumulator(
maker MetricMaker,
metrics chan telegraf.Metric,
) *accumulator {
metrics chan<- telegraf.Metric,
) telegraf.Accumulator {
acc := accumulator{
maker: maker,
metrics: metrics,
@ -35,23 +31,13 @@ func NewAccumulator(
return &acc
}
type accumulator struct {
metrics chan telegraf.Metric
maker MetricMaker
precision time.Duration
}
func (ac *accumulator) AddFields(
measurement string,
fields map[string]interface{},
tags map[string]string,
t ...time.Time,
) {
if m := ac.maker.MakeMetric(measurement, fields, tags, telegraf.Untyped, ac.getTime(t)); m != nil {
ac.metrics <- m
}
ac.addFields(measurement, tags, fields, telegraf.Untyped, t...)
}
func (ac *accumulator) AddGauge(
@ -60,9 +46,7 @@ func (ac *accumulator) AddGauge(
tags map[string]string,
t ...time.Time,
) {
if m := ac.maker.MakeMetric(measurement, fields, tags, telegraf.Gauge, ac.getTime(t)); m != nil {
ac.metrics <- m
}
ac.addFields(measurement, tags, fields, telegraf.Gauge, t...)
}
func (ac *accumulator) AddCounter(
@ -71,7 +55,46 @@ func (ac *accumulator) AddCounter(
tags map[string]string,
t ...time.Time,
) {
if m := ac.maker.MakeMetric(measurement, fields, tags, telegraf.Counter, ac.getTime(t)); m != nil {
ac.addFields(measurement, tags, fields, telegraf.Counter, t...)
}
func (ac *accumulator) AddSummary(
measurement string,
fields map[string]interface{},
tags map[string]string,
t ...time.Time,
) {
ac.addFields(measurement, tags, fields, telegraf.Summary, t...)
}
func (ac *accumulator) AddHistogram(
measurement string,
fields map[string]interface{},
tags map[string]string,
t ...time.Time,
) {
ac.addFields(measurement, tags, fields, telegraf.Histogram, t...)
}
func (ac *accumulator) AddMetric(m telegraf.Metric) {
m.SetTime(m.Time().Round(ac.precision))
if m := ac.maker.MakeMetric(m); m != nil {
ac.metrics <- m
}
}
func (ac *accumulator) addFields(
measurement string,
tags map[string]string,
fields map[string]interface{},
tp telegraf.ValueType,
t ...time.Time,
) {
m, err := metric.New(measurement, tags, fields, ac.getTime(t), tp)
if err != nil {
return
}
if m := ac.maker.MakeMetric(m); m != nil {
ac.metrics <- m
}
}
@ -82,33 +105,14 @@ func (ac *accumulator) AddError(err error) {
if err == nil {
return
}
NErrors.Incr(1)
//TODO suppress/throttle consecutive duplicate errors?
log.Printf("E! Error in plugin [%s]: %s", ac.maker.Name(), err)
ac.maker.Log().Errorf("Error in plugin: %v", err)
}
// SetPrecision takes two time.Duration objects. If the first is non-zero,
// it sets that as the precision. Otherwise, it takes the second argument
// as the order of time that the metrics should be rounded to, with the
// maximum being 1s.
func (ac *accumulator) SetPrecision(precision, interval time.Duration) {
if precision > 0 {
func (ac *accumulator) SetPrecision(precision time.Duration) {
ac.precision = precision
return
}
switch {
case interval >= time.Second:
ac.precision = time.Second
case interval >= time.Millisecond:
ac.precision = time.Millisecond
case interval >= time.Microsecond:
ac.precision = time.Microsecond
default:
ac.precision = time.Nanosecond
}
}
func (ac accumulator) getTime(t []time.Time) time.Time {
func (ac *accumulator) getTime(t []time.Time) time.Time {
var timestamp time.Time
if len(t) > 0 {
timestamp = t[0]
@ -117,3 +121,43 @@ func (ac accumulator) getTime(t []time.Time) time.Time {
}
return timestamp.Round(ac.precision)
}
func (ac *accumulator) WithTracking(maxTracked int) telegraf.TrackingAccumulator {
return &trackingAccumulator{
Accumulator: ac,
delivered: make(chan telegraf.DeliveryInfo, maxTracked),
}
}
type trackingAccumulator struct {
telegraf.Accumulator
delivered chan telegraf.DeliveryInfo
}
func (a *trackingAccumulator) AddTrackingMetric(m telegraf.Metric) telegraf.TrackingID {
dm, id := metric.WithTracking(m, a.onDelivery)
a.AddMetric(dm)
return id
}
func (a *trackingAccumulator) AddTrackingMetricGroup(group []telegraf.Metric) telegraf.TrackingID {
db, id := metric.WithGroupTracking(group, a.onDelivery)
for _, m := range db {
a.AddMetric(m)
}
return id
}
func (a *trackingAccumulator) Delivered() <-chan telegraf.DeliveryInfo {
return a.delivered
}
func (a *trackingAccumulator) onDelivery(info telegraf.DeliveryInfo) {
select {
case a.delivered <- info:
default:
// This is a programming error in the input. More items were sent for
// tracking than space requested.
panic("channel is full")
}
}

View File

@ -9,69 +9,41 @@ import (
"time"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/metric"
"github.com/influxdata/telegraf/models"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestAdd(t *testing.T) {
now := time.Now()
metrics := make(chan telegraf.Metric, 10)
defer close(metrics)
a := NewAccumulator(&TestMetricMaker{}, metrics)
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{})
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"})
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"}, now)
testm := <-metrics
actual := testm.String()
assert.Contains(t, actual, "acctest value=101")
testm = <-metrics
actual = testm.String()
assert.Contains(t, actual, "acctest,acc=test value=101")
testm = <-metrics
actual = testm.String()
assert.Equal(t,
fmt.Sprintf("acctest,acc=test value=101 %d\n", now.UnixNano()),
actual)
}
func TestAddFields(t *testing.T) {
now := time.Now()
metrics := make(chan telegraf.Metric, 10)
defer close(metrics)
a := NewAccumulator(&TestMetricMaker{}, metrics)
tags := map[string]string{"foo": "bar"}
fields := map[string]interface{}{
"usage": float64(99),
}
a.AddFields("acctest", fields, map[string]string{})
a.AddGauge("acctest", fields, map[string]string{"acc": "test"})
a.AddCounter("acctest", fields, map[string]string{"acc": "test"}, now)
now := time.Now()
a.AddCounter("acctest", fields, tags, now)
testm := <-metrics
actual := testm.String()
assert.Contains(t, actual, "acctest usage=99")
testm = <-metrics
actual = testm.String()
assert.Contains(t, actual, "acctest,acc=test usage=99")
require.Equal(t, "acctest", testm.Name())
actual, ok := testm.GetField("usage")
testm = <-metrics
actual = testm.String()
assert.Equal(t,
fmt.Sprintf("acctest,acc=test usage=99 %d\n", now.UnixNano()),
actual)
require.True(t, ok)
require.Equal(t, float64(99), actual)
actual, ok = testm.GetTag("foo")
require.True(t, ok)
require.Equal(t, "bar", actual)
tm := testm.Time()
// okay if monotonic clock differs
require.True(t, now.Equal(tm))
tp := testm.Type()
require.Equal(t, telegraf.Counter, tp)
}
func TestAccAddError(t *testing.T) {
@ -88,7 +60,6 @@ func TestAccAddError(t *testing.T) {
a.AddError(fmt.Errorf("baz"))
errs := bytes.Split(errBuf.Bytes(), []byte{'\n'})
assert.EqualValues(t, int64(3), NErrors.Get())
require.Len(t, errs, 4) // 4 because of trailing newline
assert.Contains(t, string(errs[0]), "TestPlugin")
assert.Contains(t, string(errs[0]), "foo")
@ -98,215 +69,75 @@ func TestAccAddError(t *testing.T) {
assert.Contains(t, string(errs[2]), "baz")
}
func TestAddNoIntervalWithPrecision(t *testing.T) {
now := time.Date(2006, time.February, 10, 12, 0, 0, 82912748, time.UTC)
func TestSetPrecision(t *testing.T) {
tests := []struct {
name string
unset bool
precision time.Duration
timestamp time.Time
expected time.Time
}{
{
name: "default precision is nanosecond",
unset: true,
timestamp: time.Date(2006, time.February, 10, 12, 0, 0, 82912748, time.UTC),
expected: time.Date(2006, time.February, 10, 12, 0, 0, 82912748, time.UTC),
},
{
name: "second interval",
precision: time.Second,
timestamp: time.Date(2006, time.February, 10, 12, 0, 0, 82912748, time.UTC),
expected: time.Date(2006, time.February, 10, 12, 0, 0, 0, time.UTC),
},
{
name: "microsecond interval",
precision: time.Microsecond,
timestamp: time.Date(2006, time.February, 10, 12, 0, 0, 82912748, time.UTC),
expected: time.Date(2006, time.February, 10, 12, 0, 0, 82913000, time.UTC),
},
{
name: "2 second precision",
precision: 2 * time.Second,
timestamp: time.Date(2006, time.February, 10, 12, 0, 2, 4, time.UTC),
expected: time.Date(2006, time.February, 10, 12, 0, 2, 0, time.UTC),
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
metrics := make(chan telegraf.Metric, 10)
defer close(metrics)
a := NewAccumulator(&TestMetricMaker{}, metrics)
a.SetPrecision(0, time.Second)
if !tt.unset {
a.SetPrecision(tt.precision)
}
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{})
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"})
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"}, now)
testm := <-a.metrics
actual := testm.String()
assert.Contains(t, actual, "acctest value=101")
testm = <-a.metrics
actual = testm.String()
assert.Contains(t, actual, "acctest,acc=test value=101")
testm = <-a.metrics
actual = testm.String()
assert.Equal(t,
fmt.Sprintf("acctest,acc=test value=101 %d\n", int64(1139572800000000000)),
actual)
}
func TestAddDisablePrecision(t *testing.T) {
now := time.Date(2006, time.February, 10, 12, 0, 0, 82912748, time.UTC)
metrics := make(chan telegraf.Metric, 10)
defer close(metrics)
a := NewAccumulator(&TestMetricMaker{}, metrics)
a.SetPrecision(time.Nanosecond, 0)
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{})
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"})
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"}, now)
testm := <-a.metrics
actual := testm.String()
assert.Contains(t, actual, "acctest value=101")
testm = <-a.metrics
actual = testm.String()
assert.Contains(t, actual, "acctest,acc=test value=101")
testm = <-a.metrics
actual = testm.String()
assert.Equal(t,
fmt.Sprintf("acctest,acc=test value=101 %d\n", int64(1139572800082912748)),
actual)
}
func TestAddNoPrecisionWithInterval(t *testing.T) {
now := time.Date(2006, time.February, 10, 12, 0, 0, 82912748, time.UTC)
metrics := make(chan telegraf.Metric, 10)
defer close(metrics)
a := NewAccumulator(&TestMetricMaker{}, metrics)
a.SetPrecision(0, time.Second)
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{})
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"})
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"}, now)
testm := <-a.metrics
actual := testm.String()
assert.Contains(t, actual, "acctest value=101")
testm = <-a.metrics
actual = testm.String()
assert.Contains(t, actual, "acctest,acc=test value=101")
testm = <-a.metrics
actual = testm.String()
assert.Equal(t,
fmt.Sprintf("acctest,acc=test value=101 %d\n", int64(1139572800000000000)),
actual)
}
func TestDifferentPrecisions(t *testing.T) {
now := time.Date(2006, time.February, 10, 12, 0, 0, 82912748, time.UTC)
metrics := make(chan telegraf.Metric, 10)
defer close(metrics)
a := NewAccumulator(&TestMetricMaker{}, metrics)
a.SetPrecision(0, time.Second)
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"}, now)
testm := <-a.metrics
actual := testm.String()
assert.Equal(t,
fmt.Sprintf("acctest,acc=test value=101 %d\n", int64(1139572800000000000)),
actual)
a.SetPrecision(0, time.Millisecond)
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"}, now)
testm = <-a.metrics
actual = testm.String()
assert.Equal(t,
fmt.Sprintf("acctest,acc=test value=101 %d\n", int64(1139572800083000000)),
actual)
a.SetPrecision(0, time.Microsecond)
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"}, now)
testm = <-a.metrics
actual = testm.String()
assert.Equal(t,
fmt.Sprintf("acctest,acc=test value=101 %d\n", int64(1139572800082913000)),
actual)
a.SetPrecision(0, time.Nanosecond)
a.AddFields("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"}, now)
testm = <-a.metrics
actual = testm.String()
assert.Equal(t,
fmt.Sprintf("acctest,acc=test value=101 %d\n", int64(1139572800082912748)),
actual)
}
func TestAddGauge(t *testing.T) {
now := time.Now()
metrics := make(chan telegraf.Metric, 10)
defer close(metrics)
a := NewAccumulator(&TestMetricMaker{}, metrics)
a.AddGauge("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{})
a.AddGauge("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"})
a.AddGauge("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"}, now)
map[string]string{},
tt.timestamp,
)
testm := <-metrics
actual := testm.String()
assert.Contains(t, actual, "acctest value=101")
assert.Equal(t, testm.Type(), telegraf.Gauge)
require.Equal(t, tt.expected, testm.Time())
testm = <-metrics
actual = testm.String()
assert.Contains(t, actual, "acctest,acc=test value=101")
assert.Equal(t, testm.Type(), telegraf.Gauge)
testm = <-metrics
actual = testm.String()
assert.Equal(t,
fmt.Sprintf("acctest,acc=test value=101 %d\n", now.UnixNano()),
actual)
assert.Equal(t, testm.Type(), telegraf.Gauge)
close(metrics)
})
}
}
func TestAddCounter(t *testing.T) {
now := time.Now()
metrics := make(chan telegraf.Metric, 10)
defer close(metrics)
a := NewAccumulator(&TestMetricMaker{}, metrics)
func TestAddTrackingMetricGroupEmpty(t *testing.T) {
ch := make(chan telegraf.Metric, 10)
metrics := []telegraf.Metric{}
acc := NewAccumulator(&TestMetricMaker{}, ch).WithTracking(1)
a.AddCounter("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{})
a.AddCounter("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"})
a.AddCounter("acctest",
map[string]interface{}{"value": float64(101)},
map[string]string{"acc": "test"}, now)
id := acc.AddTrackingMetricGroup(metrics)
testm := <-metrics
actual := testm.String()
assert.Contains(t, actual, "acctest value=101")
assert.Equal(t, testm.Type(), telegraf.Counter)
testm = <-metrics
actual = testm.String()
assert.Contains(t, actual, "acctest,acc=test value=101")
assert.Equal(t, testm.Type(), telegraf.Counter)
testm = <-metrics
actual = testm.String()
assert.Equal(t,
fmt.Sprintf("acctest,acc=test value=101 %d\n", now.UnixNano()),
actual)
assert.Equal(t, testm.Type(), telegraf.Counter)
select {
case tracking := <-acc.Delivered():
require.Equal(t, tracking.ID(), id)
default:
t.Fatal("empty group should be delivered immediately")
}
}
type TestMetricMaker struct {
@ -315,26 +146,15 @@ type TestMetricMaker struct {
func (tm *TestMetricMaker) Name() string {
return "TestPlugin"
}
func (tm *TestMetricMaker) MakeMetric(
measurement string,
fields map[string]interface{},
tags map[string]string,
mType telegraf.ValueType,
t time.Time,
) telegraf.Metric {
switch mType {
case telegraf.Untyped:
if m, err := metric.New(measurement, tags, fields, t); err == nil {
return m
}
case telegraf.Counter:
if m, err := metric.New(measurement, tags, fields, t, telegraf.Counter); err == nil {
return m
}
case telegraf.Gauge:
if m, err := metric.New(measurement, tags, fields, t, telegraf.Gauge); err == nil {
return m
}
}
return nil
func (tm *TestMetricMaker) LogName() string {
return tm.Name()
}
func (tm *TestMetricMaker) MakeMetric(metric telegraf.Metric) telegraf.Metric {
return metric
}
func (tm *TestMetricMaker) Log() telegraf.Logger {
return models.NewLogger("TestPlugin", "test", "")
}

File diff suppressed because it is too large Load Diff

19
agent/agent_posix.go Normal file
View File

@ -0,0 +1,19 @@
// +build !windows
package agent
import (
"os"
"os/signal"
"syscall"
)
const flushSignal = syscall.SIGUSR1
func watchForFlushSignal(flushRequested chan os.Signal) {
signal.Notify(flushRequested, flushSignal)
}
func stopListeningForFlushSignal(flushRequested chan os.Signal) {
defer signal.Stop(flushRequested)
}

View File

@ -2,15 +2,13 @@ package agent
import (
"testing"
"time"
"github.com/influxdata/telegraf/internal/config"
// needing to load the plugins
"github.com/influxdata/telegraf/config"
_ "github.com/influxdata/telegraf/plugins/inputs/all"
// needing to load the outputs
_ "github.com/influxdata/telegraf/plugins/outputs/all"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestAgent_OmitHostname(t *testing.T) {
@ -24,35 +22,35 @@ func TestAgent_OmitHostname(t *testing.T) {
func TestAgent_LoadPlugin(t *testing.T) {
c := config.NewConfig()
c.InputFilters = []string{"mysql"}
err := c.LoadConfig("../internal/config/testdata/telegraf-agent.toml")
err := c.LoadConfig("../config/testdata/telegraf-agent.toml")
assert.NoError(t, err)
a, _ := NewAgent(c)
assert.Equal(t, 1, len(a.Config.Inputs))
c = config.NewConfig()
c.InputFilters = []string{"foo"}
err = c.LoadConfig("../internal/config/testdata/telegraf-agent.toml")
err = c.LoadConfig("../config/testdata/telegraf-agent.toml")
assert.NoError(t, err)
a, _ = NewAgent(c)
assert.Equal(t, 0, len(a.Config.Inputs))
c = config.NewConfig()
c.InputFilters = []string{"mysql", "foo"}
err = c.LoadConfig("../internal/config/testdata/telegraf-agent.toml")
err = c.LoadConfig("../config/testdata/telegraf-agent.toml")
assert.NoError(t, err)
a, _ = NewAgent(c)
assert.Equal(t, 1, len(a.Config.Inputs))
c = config.NewConfig()
c.InputFilters = []string{"mysql", "redis"}
err = c.LoadConfig("../internal/config/testdata/telegraf-agent.toml")
err = c.LoadConfig("../config/testdata/telegraf-agent.toml")
assert.NoError(t, err)
a, _ = NewAgent(c)
assert.Equal(t, 2, len(a.Config.Inputs))
c = config.NewConfig()
c.InputFilters = []string{"mysql", "foo", "redis", "bar"}
err = c.LoadConfig("../internal/config/testdata/telegraf-agent.toml")
err = c.LoadConfig("../config/testdata/telegraf-agent.toml")
assert.NoError(t, err)
a, _ = NewAgent(c)
assert.Equal(t, 2, len(a.Config.Inputs))
@ -61,42 +59,42 @@ func TestAgent_LoadPlugin(t *testing.T) {
func TestAgent_LoadOutput(t *testing.T) {
c := config.NewConfig()
c.OutputFilters = []string{"influxdb"}
err := c.LoadConfig("../internal/config/testdata/telegraf-agent.toml")
err := c.LoadConfig("../config/testdata/telegraf-agent.toml")
assert.NoError(t, err)
a, _ := NewAgent(c)
assert.Equal(t, 2, len(a.Config.Outputs))
c = config.NewConfig()
c.OutputFilters = []string{"kafka"}
err = c.LoadConfig("../internal/config/testdata/telegraf-agent.toml")
err = c.LoadConfig("../config/testdata/telegraf-agent.toml")
assert.NoError(t, err)
a, _ = NewAgent(c)
assert.Equal(t, 1, len(a.Config.Outputs))
c = config.NewConfig()
c.OutputFilters = []string{}
err = c.LoadConfig("../internal/config/testdata/telegraf-agent.toml")
err = c.LoadConfig("../config/testdata/telegraf-agent.toml")
assert.NoError(t, err)
a, _ = NewAgent(c)
assert.Equal(t, 3, len(a.Config.Outputs))
c = config.NewConfig()
c.OutputFilters = []string{"foo"}
err = c.LoadConfig("../internal/config/testdata/telegraf-agent.toml")
err = c.LoadConfig("../config/testdata/telegraf-agent.toml")
assert.NoError(t, err)
a, _ = NewAgent(c)
assert.Equal(t, 0, len(a.Config.Outputs))
c = config.NewConfig()
c.OutputFilters = []string{"influxdb", "foo"}
err = c.LoadConfig("../internal/config/testdata/telegraf-agent.toml")
err = c.LoadConfig("../config/testdata/telegraf-agent.toml")
assert.NoError(t, err)
a, _ = NewAgent(c)
assert.Equal(t, 2, len(a.Config.Outputs))
c = config.NewConfig()
c.OutputFilters = []string{"influxdb", "kafka"}
err = c.LoadConfig("../internal/config/testdata/telegraf-agent.toml")
err = c.LoadConfig("../config/testdata/telegraf-agent.toml")
assert.NoError(t, err)
assert.Equal(t, 3, len(c.Outputs))
a, _ = NewAgent(c)
@ -104,8 +102,67 @@ func TestAgent_LoadOutput(t *testing.T) {
c = config.NewConfig()
c.OutputFilters = []string{"influxdb", "foo", "kafka", "bar"}
err = c.LoadConfig("../internal/config/testdata/telegraf-agent.toml")
err = c.LoadConfig("../config/testdata/telegraf-agent.toml")
assert.NoError(t, err)
a, _ = NewAgent(c)
assert.Equal(t, 3, len(a.Config.Outputs))
}
func TestWindow(t *testing.T) {
parse := func(s string) time.Time {
tm, err := time.Parse(time.RFC3339, s)
if err != nil {
panic(err)
}
return tm
}
tests := []struct {
name string
start time.Time
roundInterval bool
period time.Duration
since time.Time
until time.Time
}{
{
name: "round with exact alignment",
start: parse("2018-03-27T00:00:00Z"),
roundInterval: true,
period: 30 * time.Second,
since: parse("2018-03-27T00:00:00Z"),
until: parse("2018-03-27T00:00:30Z"),
},
{
name: "round with alignment needed",
start: parse("2018-03-27T00:00:05Z"),
roundInterval: true,
period: 30 * time.Second,
since: parse("2018-03-27T00:00:00Z"),
until: parse("2018-03-27T00:00:30Z"),
},
{
name: "no round with exact alignment",
start: parse("2018-03-27T00:00:00Z"),
roundInterval: false,
period: 30 * time.Second,
since: parse("2018-03-27T00:00:00Z"),
until: parse("2018-03-27T00:00:30Z"),
},
{
name: "no found with alignment needed",
start: parse("2018-03-27T00:00:05Z"),
roundInterval: false,
period: 30 * time.Second,
since: parse("2018-03-27T00:00:05Z"),
until: parse("2018-03-27T00:00:35Z"),
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
since, until := updateWindow(tt.start, tt.roundInterval, tt.period)
require.Equal(t, tt.since, since, "since")
require.Equal(t, tt.until, until, "until")
})
}
}

13
agent/agent_windows.go Normal file
View File

@ -0,0 +1,13 @@
// +build windows
package agent
import "os"
func watchForFlushSignal(flushRequested chan os.Signal) {
// not supported
}
func stopListeningForFlushSignal(flushRequested chan os.Signal) {
// not supported
}

268
agent/tick.go Normal file
View File

@ -0,0 +1,268 @@
package agent
import (
"context"
"sync"
"time"
"github.com/benbjohnson/clock"
"github.com/influxdata/telegraf/internal"
)
type empty struct{}
type Ticker interface {
Elapsed() <-chan time.Time
Stop()
}
// AlignedTicker delivers ticks at aligned times plus an optional jitter. Each
// tick is realigned to avoid drift and handle changes to the system clock.
//
// The ticks may have an jitter duration applied to them as an random offset to
// the interval. However the overall pace of is that of the interval, so on
// average you will have one collection each interval.
//
// The first tick is emitted at the next alignment.
//
// Ticks are dropped for slow consumers.
//
// The implementation currently does not recalculate until the next tick with
// no maximum sleep, when using large intervals alignment is not corrected
// until the next tick.
type AlignedTicker struct {
interval time.Duration
jitter time.Duration
ch chan time.Time
cancel context.CancelFunc
wg sync.WaitGroup
}
func NewAlignedTicker(now time.Time, interval, jitter time.Duration) *AlignedTicker {
return newAlignedTicker(now, interval, jitter, clock.New())
}
func newAlignedTicker(now time.Time, interval, jitter time.Duration, clock clock.Clock) *AlignedTicker {
ctx, cancel := context.WithCancel(context.Background())
t := &AlignedTicker{
interval: interval,
jitter: jitter,
ch: make(chan time.Time, 1),
cancel: cancel,
}
d := t.next(now)
timer := clock.Timer(d)
t.wg.Add(1)
go func() {
defer t.wg.Done()
t.run(ctx, timer)
}()
return t
}
func (t *AlignedTicker) next(now time.Time) time.Duration {
next := internal.AlignTime(now, t.interval)
d := next.Sub(now)
if d == 0 {
d = t.interval
}
d += internal.RandomDuration(t.jitter)
return d
}
func (t *AlignedTicker) run(ctx context.Context, timer *clock.Timer) {
for {
select {
case <-ctx.Done():
timer.Stop()
return
case now := <-timer.C:
select {
case t.ch <- now:
default:
}
d := t.next(now)
timer.Reset(d)
}
}
}
func (t *AlignedTicker) Elapsed() <-chan time.Time {
return t.ch
}
func (t *AlignedTicker) Stop() {
t.cancel()
t.wg.Wait()
}
// UnalignedTicker delivers ticks at regular but unaligned intervals. No
// effort is made to avoid drift.
//
// The ticks may have an jitter duration applied to them as an random offset to
// the interval. However the overall pace of is that of the interval, so on
// average you will have one collection each interval.
//
// The first tick is emitted immediately.
//
// Ticks are dropped for slow consumers.
type UnalignedTicker struct {
interval time.Duration
jitter time.Duration
ch chan time.Time
cancel context.CancelFunc
wg sync.WaitGroup
}
func NewUnalignedTicker(interval, jitter time.Duration) *UnalignedTicker {
return newUnalignedTicker(interval, jitter, clock.New())
}
func newUnalignedTicker(interval, jitter time.Duration, clock clock.Clock) *UnalignedTicker {
ctx, cancel := context.WithCancel(context.Background())
t := &UnalignedTicker{
interval: interval,
jitter: jitter,
ch: make(chan time.Time, 1),
cancel: cancel,
}
ticker := clock.Ticker(t.interval)
t.ch <- clock.Now()
t.wg.Add(1)
go func() {
defer t.wg.Done()
t.run(ctx, ticker, clock)
}()
return t
}
func sleep(ctx context.Context, duration time.Duration, clock clock.Clock) error {
if duration == 0 {
return nil
}
t := clock.Timer(duration)
select {
case <-t.C:
return nil
case <-ctx.Done():
t.Stop()
return ctx.Err()
}
}
func (t *UnalignedTicker) run(ctx context.Context, ticker *clock.Ticker, clock clock.Clock) {
for {
select {
case <-ctx.Done():
ticker.Stop()
return
case <-ticker.C:
jitter := internal.RandomDuration(t.jitter)
err := sleep(ctx, jitter, clock)
if err != nil {
ticker.Stop()
return
}
select {
case t.ch <- clock.Now():
default:
}
}
}
}
func (t *UnalignedTicker) InjectTick() {
t.ch <- time.Now()
}
func (t *UnalignedTicker) Elapsed() <-chan time.Time {
return t.ch
}
func (t *UnalignedTicker) Stop() {
t.cancel()
t.wg.Wait()
}
// RollingTicker delivers ticks at regular but unaligned intervals.
//
// Because the next interval is scheduled based on the interval + jitter, you
// are guaranteed at least interval seconds without missing a tick and ticks
// will be evenly scheduled over time.
//
// On average you will have one collection each interval + (jitter/2).
//
// The first tick is emitted after interval+jitter seconds.
//
// Ticks are dropped for slow consumers.
type RollingTicker struct {
interval time.Duration
jitter time.Duration
ch chan time.Time
cancel context.CancelFunc
wg sync.WaitGroup
}
func NewRollingTicker(interval, jitter time.Duration) *RollingTicker {
return newRollingTicker(interval, jitter, clock.New())
}
func newRollingTicker(interval, jitter time.Duration, clock clock.Clock) *RollingTicker {
ctx, cancel := context.WithCancel(context.Background())
t := &RollingTicker{
interval: interval,
jitter: jitter,
ch: make(chan time.Time, 1),
cancel: cancel,
}
d := t.next()
timer := clock.Timer(d)
t.wg.Add(1)
go func() {
defer t.wg.Done()
t.run(ctx, timer)
}()
return t
}
func (t *RollingTicker) next() time.Duration {
return t.interval + internal.RandomDuration(t.jitter)
}
func (t *RollingTicker) run(ctx context.Context, timer *clock.Timer) {
for {
select {
case <-ctx.Done():
timer.Stop()
return
case now := <-timer.C:
select {
case t.ch <- now:
default:
}
d := t.next()
timer.Reset(d)
}
}
}
func (t *RollingTicker) Elapsed() <-chan time.Time {
return t.ch
}
func (t *RollingTicker) Stop() {
t.cancel()
t.wg.Wait()
}

251
agent/tick_test.go Normal file
View File

@ -0,0 +1,251 @@
package agent
import (
"fmt"
"strings"
"testing"
"time"
"github.com/benbjohnson/clock"
"github.com/stretchr/testify/require"
)
var format = "2006-01-02T15:04:05.999Z07:00"
func TestAlignedTicker(t *testing.T) {
interval := 10 * time.Second
jitter := 0 * time.Second
clock := clock.NewMock()
since := clock.Now()
until := since.Add(60 * time.Second)
ticker := newAlignedTicker(since, interval, jitter, clock)
expected := []time.Time{
time.Unix(10, 0).UTC(),
time.Unix(20, 0).UTC(),
time.Unix(30, 0).UTC(),
time.Unix(40, 0).UTC(),
time.Unix(50, 0).UTC(),
time.Unix(60, 0).UTC(),
}
actual := []time.Time{}
for !clock.Now().After(until) {
select {
case tm := <-ticker.Elapsed():
actual = append(actual, tm.UTC())
default:
}
clock.Add(10 * time.Second)
}
require.Equal(t, expected, actual)
}
func TestAlignedTickerJitter(t *testing.T) {
interval := 10 * time.Second
jitter := 5 * time.Second
clock := clock.NewMock()
since := clock.Now()
until := since.Add(60 * time.Second)
ticker := newAlignedTicker(since, interval, jitter, clock)
last := since
for !clock.Now().After(until) {
select {
case tm := <-ticker.Elapsed():
require.True(t, tm.Sub(last) <= 15*time.Second)
require.True(t, tm.Sub(last) >= 5*time.Second)
last = last.Add(interval)
default:
}
clock.Add(5 * time.Second)
}
}
func TestAlignedTickerMissedTick(t *testing.T) {
interval := 10 * time.Second
jitter := 0 * time.Second
clock := clock.NewMock()
since := clock.Now()
ticker := newAlignedTicker(since, interval, jitter, clock)
clock.Add(25 * time.Second)
tm := <-ticker.Elapsed()
require.Equal(t, time.Unix(10, 0).UTC(), tm.UTC())
clock.Add(5 * time.Second)
tm = <-ticker.Elapsed()
require.Equal(t, time.Unix(30, 0).UTC(), tm.UTC())
}
func TestUnalignedTicker(t *testing.T) {
interval := 10 * time.Second
jitter := 0 * time.Second
clock := clock.NewMock()
clock.Add(1 * time.Second)
since := clock.Now()
until := since.Add(60 * time.Second)
ticker := newUnalignedTicker(interval, jitter, clock)
expected := []time.Time{
time.Unix(1, 0).UTC(),
time.Unix(11, 0).UTC(),
time.Unix(21, 0).UTC(),
time.Unix(31, 0).UTC(),
time.Unix(41, 0).UTC(),
time.Unix(51, 0).UTC(),
time.Unix(61, 0).UTC(),
}
actual := []time.Time{}
for !clock.Now().After(until) {
select {
case tm := <-ticker.Elapsed():
actual = append(actual, tm.UTC())
default:
}
clock.Add(10 * time.Second)
}
require.Equal(t, expected, actual)
}
func TestRollingTicker(t *testing.T) {
interval := 10 * time.Second
jitter := 0 * time.Second
clock := clock.NewMock()
clock.Add(1 * time.Second)
since := clock.Now()
until := since.Add(60 * time.Second)
ticker := newUnalignedTicker(interval, jitter, clock)
expected := []time.Time{
time.Unix(1, 0).UTC(),
time.Unix(11, 0).UTC(),
time.Unix(21, 0).UTC(),
time.Unix(31, 0).UTC(),
time.Unix(41, 0).UTC(),
time.Unix(51, 0).UTC(),
time.Unix(61, 0).UTC(),
}
actual := []time.Time{}
for !clock.Now().After(until) {
select {
case tm := <-ticker.Elapsed():
actual = append(actual, tm.UTC())
default:
}
clock.Add(10 * time.Second)
}
require.Equal(t, expected, actual)
}
// Simulates running the Ticker for an hour and displays stats about the
// operation.
func TestAlignedTickerDistribution(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
interval := 10 * time.Second
jitter := 5 * time.Second
clock := clock.NewMock()
since := clock.Now()
ticker := newAlignedTicker(since, interval, jitter, clock)
dist := simulatedDist(ticker, clock)
printDist(dist)
require.True(t, 350 < dist.Count)
require.True(t, 9 < dist.Mean() && dist.Mean() < 11)
}
// Simulates running the Ticker for an hour and displays stats about the
// operation.
func TestUnalignedTickerDistribution(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
interval := 10 * time.Second
jitter := 5 * time.Second
clock := clock.NewMock()
ticker := newUnalignedTicker(interval, jitter, clock)
dist := simulatedDist(ticker, clock)
printDist(dist)
require.True(t, 350 < dist.Count)
require.True(t, 9 < dist.Mean() && dist.Mean() < 11)
}
// Simulates running the Ticker for an hour and displays stats about the
// operation.
func TestRollingTickerDistribution(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
interval := 10 * time.Second
jitter := 5 * time.Second
clock := clock.NewMock()
ticker := newRollingTicker(interval, jitter, clock)
dist := simulatedDist(ticker, clock)
printDist(dist)
require.True(t, 275 < dist.Count)
require.True(t, 12 < dist.Mean() && 13 > dist.Mean())
}
type Distribution struct {
Buckets [60]int
Count int
Waittime float64
}
func (d *Distribution) Mean() float64 {
return d.Waittime / float64(d.Count)
}
func printDist(dist Distribution) {
for i, count := range dist.Buckets {
fmt.Printf("%2d %s\n", i, strings.Repeat("x", count))
}
fmt.Printf("Average interval: %f\n", dist.Mean())
fmt.Printf("Count: %d\n", dist.Count)
}
func simulatedDist(ticker Ticker, clock *clock.Mock) Distribution {
since := clock.Now()
until := since.Add(1 * time.Hour)
var dist Distribution
last := clock.Now()
for !clock.Now().After(until) {
select {
case tm := <-ticker.Elapsed():
dist.Buckets[tm.Second()] += 1
dist.Count++
dist.Waittime += tm.Sub(last).Seconds()
last = tm
default:
clock.Add(1 * time.Second)
}
}
return dist
}

View File

@ -5,11 +5,7 @@ package telegraf
// Add, Push, and Reset can not be called concurrently, so locking is not
// required when implementing an Aggregator plugin.
type Aggregator interface {
// SampleConfig returns the default configuration of the Input.
SampleConfig() string
// Description returns a one-sentence description on the Input.
Description() string
PluginDescriber
// Add the metric to the aggregator.
Add(in Metric)

35
appveyor.yml Normal file
View File

@ -0,0 +1,35 @@
version: "{build}"
image: Visual Studio 2019
cache:
- C:\gopath\pkg\mod -> go.sum
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
clone_folder: C:\gopath\src\github.com\influxdata\telegraf
environment:
GOPATH: C:\gopath
stack: go 1.14
platform: x64
install:
- choco install make
- cd "%GOPATH%\src\github.com\influxdata\telegraf"
- git config --system core.longpaths true
- go version
- go env
build_script:
- make deps
- make telegraf
test_script:
- make check
- make test-windows
artifacts:
- path: telegraf.exe

View File

@ -1,18 +0,0 @@
machine:
services:
- docker
post:
- sudo service zookeeper stop
- go version
- go version | grep 1.7.5 || sudo rm -rf /usr/local/go
- wget https://storage.googleapis.com/golang/go1.7.5.linux-amd64.tar.gz
- sudo tar -C /usr/local -xzf go1.7.5.linux-amd64.tar.gz
- go version
dependencies:
override:
- docker info
test:
override:
- bash scripts/circle-test.sh

View File

@ -1,17 +1,24 @@
package main
import (
"context"
"errors"
"flag"
"fmt"
"log"
"net/http"
_ "net/http/pprof" // Comment this line to disable pprof endpoint.
"os"
"os/signal"
"runtime"
"sort"
"strings"
"syscall"
"time"
"github.com/influxdata/telegraf/agent"
"github.com/influxdata/telegraf/internal/config"
"github.com/influxdata/telegraf/config"
"github.com/influxdata/telegraf/internal"
"github.com/influxdata/telegraf/internal/goplugin"
"github.com/influxdata/telegraf/logger"
_ "github.com/influxdata/telegraf/plugins/aggregators/all"
"github.com/influxdata/telegraf/plugins/inputs"
@ -19,21 +26,26 @@ import (
"github.com/influxdata/telegraf/plugins/outputs"
_ "github.com/influxdata/telegraf/plugins/outputs/all"
_ "github.com/influxdata/telegraf/plugins/processors/all"
"github.com/kardianos/service"
)
// If you update these, update usage.go and usage_windows.go
var fDebug = flag.Bool("debug", false,
"turn on debug logging")
var pprofAddr = flag.String("pprof-addr", "",
"pprof address to listen on, not activate pprof if empty")
var fQuiet = flag.Bool("quiet", false,
"run in quiet mode")
var fTest = flag.Bool("test", false, "gather metrics, print them out, and exit")
var fTest = flag.Bool("test", false, "enable test mode: gather metrics, print them out, and exit. Note: Test mode only runs inputs, not processors, aggregators, or outputs")
var fTestWait = flag.Int("test-wait", 0, "wait up to this many seconds for service inputs to complete in test mode")
var fConfig = flag.String("config", "", "configuration file to load")
var fConfigDirectory = flag.String("config-directory", "",
"directory containing additional *.conf files")
var fVersion = flag.Bool("version", false, "display the version")
var fVersion = flag.Bool("version", false, "display the version and exit")
var fSampleConfig = flag.Bool("sample-config", false,
"print out full sample configuration")
var fPidfile = flag.String("pidfile", "", "file to write our pid to")
var fSectionFilters = flag.String("section-filter", "",
"filter the sections to print, separator is ':'. Valid values are 'agent', 'global_tags', 'outputs', 'processors', 'aggregators' and 'inputs'")
var fInputFilters = flag.String("input-filter", "",
"filter the inputs to enable, separator is :")
var fInputList = flag.Bool("input-list", false,
@ -47,70 +59,25 @@ var fAggregatorFilters = flag.String("aggregator-filter", "",
var fProcessorFilters = flag.String("processor-filter", "",
"filter the processors to enable, separator is :")
var fUsage = flag.String("usage", "",
"print usage for a plugin, ie, 'telegraf -usage mysql'")
"print usage for a plugin, ie, 'telegraf --usage mysql'")
var fService = flag.String("service", "",
"operate on the service")
"operate on the service (windows only)")
var fServiceName = flag.String("service-name", "telegraf", "service name (windows only)")
var fServiceDisplayName = flag.String("service-display-name", "Telegraf Data Collector Service", "service display name (windows only)")
var fRunAsConsole = flag.Bool("console", false, "run as console application (windows only)")
var fPlugins = flag.String("plugin-directory", "",
"path to directory containing external plugins")
var fRunOnce = flag.Bool("once", false, "run one gather and exit")
// Telegraf version, populated linker.
// ie, -ldflags "-X main.version=`git describe --always --tags`"
var (
version string
commit string
branch string
)
func init() {
// If commit or branch are not set, make that clear.
if commit == "" {
commit = "unknown"
}
if branch == "" {
branch = "unknown"
}
}
const usage = `Telegraf, The plugin-driven server agent for collecting and reporting metrics.
Usage:
telegraf [commands|flags]
The commands & flags are:
config print out full sample configuration to stdout
version print the version to stdout
--config <file> configuration file to load
--test gather metrics once, print them to stdout, and exit
--config-directory directory containing additional *.conf files
--input-filter filter the input plugins to enable, separator is :
--output-filter filter the output plugins to enable, separator is :
--usage print usage for a plugin, ie, 'telegraf --usage mysql'
--debug print metrics as they're generated to stdout
--quiet run in quiet mode
Examples:
# generate a telegraf config file:
telegraf config > telegraf.conf
# generate config with only cpu input & influxdb output plugins defined
telegraf --input-filter cpu --output-filter influxdb config
# run a single telegraf collection, outputing metrics to stdout
telegraf --config telegraf.conf -test
# run telegraf with all plugins defined in config file
telegraf --config telegraf.conf
# run telegraf, enabling the cpu & memory input, and influxdb output plugins
telegraf --config telegraf.conf --input-filter cpu:mem --output-filter influxdb
`
var stop chan struct{}
func reloadLoop(
stop chan struct{},
inputFilters []string,
outputFilters []string,
aggregatorFilters []string,
@ -121,76 +88,102 @@ func reloadLoop(
for <-reload {
reload <- false
ctx, cancel := context.WithCancel(context.Background())
signals := make(chan os.Signal, 1)
signal.Notify(signals, os.Interrupt, syscall.SIGHUP,
syscall.SIGTERM, syscall.SIGINT)
go func() {
select {
case sig := <-signals:
if sig == syscall.SIGHUP {
log.Printf("I! Reloading Telegraf config")
<-reload
reload <- true
}
cancel()
case <-stop:
cancel()
}
}()
err := runAgent(ctx, inputFilters, outputFilters)
if err != nil && err != context.Canceled {
log.Fatalf("E! [telegraf] Error running agent: %v", err)
}
}
}
func runAgent(ctx context.Context,
inputFilters []string,
outputFilters []string,
) error {
log.Printf("I! Starting Telegraf %s", version)
// If no other options are specified, load the config file and run.
c := config.NewConfig()
c.OutputFilters = outputFilters
c.InputFilters = inputFilters
err := c.LoadConfig(*fConfig)
if err != nil {
log.Fatal("E! " + err.Error())
return err
}
if *fConfigDirectory != "" {
err = c.LoadDirectory(*fConfigDirectory)
if err != nil {
log.Fatal("E! " + err.Error())
return err
}
}
if len(c.Outputs) == 0 {
log.Fatalf("E! Error: no outputs found, did you provide a valid config file?")
if !*fTest && len(c.Outputs) == 0 {
return errors.New("Error: no outputs found, did you provide a valid config file?")
}
if len(c.Inputs) == 0 {
log.Fatalf("E! Error: no inputs found, did you provide a valid config file?")
if *fPlugins == "" && len(c.Inputs) == 0 {
return errors.New("Error: no inputs found, did you provide a valid config file?")
}
if int64(c.Agent.Interval.Duration) <= 0 {
return fmt.Errorf("Agent interval must be positive, found %s",
c.Agent.Interval.Duration)
}
if int64(c.Agent.FlushInterval.Duration) <= 0 {
return fmt.Errorf("Agent flush_interval must be positive; found %s",
c.Agent.Interval.Duration)
}
ag, err := agent.NewAgent(c)
if err != nil {
log.Fatal("E! " + err.Error())
return err
}
// Setup logging
logger.SetupLogging(
ag.Config.Agent.Debug || *fDebug,
ag.Config.Agent.Quiet || *fQuiet,
ag.Config.Agent.Logfile,
)
if *fTest {
err = ag.Test()
if err != nil {
log.Fatal("E! " + err.Error())
}
os.Exit(0)
// Setup logging as configured.
logConfig := logger.LogConfig{
Debug: ag.Config.Agent.Debug || *fDebug,
Quiet: ag.Config.Agent.Quiet || *fQuiet,
LogTarget: ag.Config.Agent.LogTarget,
Logfile: ag.Config.Agent.Logfile,
RotationInterval: ag.Config.Agent.LogfileRotationInterval,
RotationMaxSize: ag.Config.Agent.LogfileRotationMaxSize,
RotationMaxArchives: ag.Config.Agent.LogfileRotationMaxArchives,
}
err = ag.Connect()
if err != nil {
log.Fatal("E! " + err.Error())
logger.SetupLogging(logConfig)
if *fRunOnce {
wait := time.Duration(*fTestWait) * time.Second
return ag.Once(ctx, wait)
}
shutdown := make(chan struct{})
signals := make(chan os.Signal)
signal.Notify(signals, os.Interrupt, syscall.SIGHUP)
go func() {
select {
case sig := <-signals:
if sig == os.Interrupt {
close(shutdown)
if *fTest || *fTestWait != 0 {
wait := time.Duration(*fTestWait) * time.Second
return ag.Test(ctx, wait)
}
if sig == syscall.SIGHUP {
log.Printf("I! Reloading Telegraf config\n")
<-reload
reload <- true
close(shutdown)
}
case <-stop:
close(shutdown)
}
}()
log.Printf("I! Starting Telegraf (version %s)\n", version)
log.Printf("I! Loaded outputs: %s", strings.Join(c.OutputNames(), " "))
log.Printf("I! Loaded inputs: %s", strings.Join(c.InputNames(), " "))
log.Printf("I! Loaded aggregators: %s", strings.Join(c.AggregatorNames(), " "))
log.Printf("I! Loaded processors: %s", strings.Join(c.ProcessorNames(), " "))
log.Printf("I! Loaded outputs: %s", strings.Join(c.OutputNames(), " "))
log.Printf("I! Tags enabled: %s", c.ListTags())
if *fPidfile != "" {
@ -211,39 +204,35 @@ func reloadLoop(
}
}
ag.Run(shutdown)
}
return ag.Run(ctx)
}
func usageExit(rc int) {
fmt.Println(usage)
fmt.Println(internal.Usage)
os.Exit(rc)
}
type program struct {
inputFilters []string
outputFilters []string
aggregatorFilters []string
processorFilters []string
}
func formatFullVersion() string {
var parts = []string{"Telegraf"}
func (p *program) Start(s service.Service) error {
go p.run()
return nil
}
func (p *program) run() {
stop = make(chan struct{})
reloadLoop(
stop,
p.inputFilters,
p.outputFilters,
p.aggregatorFilters,
p.processorFilters,
)
}
func (p *program) Stop(s service.Service) error {
close(stop)
return nil
if version != "" {
parts = append(parts, version)
} else {
parts = append(parts, "unknown")
}
if branch != "" || commit != "" {
if branch == "" {
branch = "unknown"
}
if commit == "" {
commit = "unknown"
}
git := fmt.Sprintf("(git: %s %s)", branch, commit)
parts = append(parts, git)
}
return strings.Join(parts, " ")
}
func main() {
@ -251,7 +240,10 @@ func main() {
flag.Parse()
args := flag.Args()
inputFilters, outputFilters := []string{}, []string{}
sectionFilters, inputFilters, outputFilters := []string{}, []string{}, []string{}
if *fSectionFilters != "" {
sectionFilters = strings.Split(":"+strings.TrimSpace(*fSectionFilters)+":", ":")
}
if *fInputFilters != "" {
inputFilters = strings.Split(":"+strings.TrimSpace(*fInputFilters)+":", ":")
}
@ -267,13 +259,41 @@ func main() {
processorFilters = strings.Split(":"+strings.TrimSpace(*fProcessorFilters)+":", ":")
}
logger.SetupLogging(logger.LogConfig{})
// Load external plugins, if requested.
if *fPlugins != "" {
log.Printf("I! Loading external plugins from: %s", *fPlugins)
if err := goplugin.LoadExternalPlugins(*fPlugins); err != nil {
log.Fatal("E! " + err.Error())
}
}
if *pprofAddr != "" {
go func() {
pprofHostPort := *pprofAddr
parts := strings.Split(pprofHostPort, ":")
if len(parts) == 2 && parts[0] == "" {
pprofHostPort = fmt.Sprintf("localhost:%s", parts[1])
}
pprofHostPort = "http://" + pprofHostPort + "/debug/pprof"
log.Printf("I! Starting pprof HTTP server at: %s", pprofHostPort)
if err := http.ListenAndServe(*pprofAddr, nil); err != nil {
log.Fatal("E! " + err.Error())
}
}()
}
if len(args) > 0 {
switch args[0] {
case "version":
fmt.Printf("Telegraf v%s (git: %s %s)\n", version, branch, commit)
fmt.Println(formatFullVersion())
return
case "config":
config.PrintSampleConfig(
sectionFilters,
inputFilters,
outputFilters,
aggregatorFilters,
@ -286,22 +306,33 @@ func main() {
// switch for flags which just do something and exit immediately
switch {
case *fOutputList:
fmt.Println("Available Output Plugins:")
for k, _ := range outputs.Outputs {
fmt.Println("Available Output Plugins: ")
names := make([]string, 0, len(outputs.Outputs))
for k := range outputs.Outputs {
names = append(names, k)
}
sort.Strings(names)
for _, k := range names {
fmt.Printf(" %s\n", k)
}
return
case *fInputList:
fmt.Println("Available Input Plugins:")
for k, _ := range inputs.Inputs {
names := make([]string, 0, len(inputs.Inputs))
for k := range inputs.Inputs {
names = append(names, k)
}
sort.Strings(names)
for _, k := range names {
fmt.Printf(" %s\n", k)
}
return
case *fVersion:
fmt.Printf("Telegraf v%s (git: %s %s)\n", version, branch, commit)
fmt.Println(formatFullVersion())
return
case *fSampleConfig:
config.PrintSampleConfig(
sectionFilters,
inputFilters,
outputFilters,
aggregatorFilters,
@ -317,53 +348,20 @@ func main() {
return
}
if runtime.GOOS == "windows" {
svcConfig := &service.Config{
Name: "telegraf",
DisplayName: "Telegraf Data Collector Service",
Description: "Collects data using a series of plugins and publishes it to" +
"another series of plugins.",
Arguments: []string{"-config", "C:\\Program Files\\Telegraf\\telegraf.conf"},
shortVersion := version
if shortVersion == "" {
shortVersion = "unknown"
}
prg := &program{
inputFilters: inputFilters,
outputFilters: outputFilters,
aggregatorFilters: aggregatorFilters,
processorFilters: processorFilters,
// Configure version
if err := internal.SetVersion(shortVersion); err != nil {
log.Println("Telegraf version already configured to: " + internal.Version())
}
s, err := service.New(prg, svcConfig)
if err != nil {
log.Fatal("E! " + err.Error())
}
// Handle the -service flag here to prevent any issues with tooling that
// may not have an interactive session, e.g. installing from Ansible.
if *fService != "" {
if *fConfig != "" {
(*svcConfig).Arguments = []string{"-config", *fConfig}
}
if *fConfigDirectory != "" {
(*svcConfig).Arguments = append((*svcConfig).Arguments, "-config-directory", *fConfigDirectory)
}
err := service.Control(s, *fService)
if err != nil {
log.Fatal("E! " + err.Error())
}
os.Exit(0)
} else {
err = s.Run()
if err != nil {
log.Println("E! " + err.Error())
}
}
} else {
stop = make(chan struct{})
reloadLoop(
stop,
run(
inputFilters,
outputFilters,
aggregatorFilters,
processorFilters,
)
}
}

View File

@ -0,0 +1,13 @@
// +build !windows
package main
func run(inputFilters, outputFilters, aggregatorFilters, processorFilters []string) {
stop = make(chan struct{})
reloadLoop(
inputFilters,
outputFilters,
aggregatorFilters,
processorFilters,
)
}

View File

@ -0,0 +1,124 @@
// +build windows
package main
import (
"log"
"os"
"runtime"
"github.com/influxdata/telegraf/logger"
"github.com/kardianos/service"
)
func run(inputFilters, outputFilters, aggregatorFilters, processorFilters []string) {
if runtime.GOOS == "windows" && windowsRunAsService() {
runAsWindowsService(
inputFilters,
outputFilters,
aggregatorFilters,
processorFilters,
)
} else {
stop = make(chan struct{})
reloadLoop(
inputFilters,
outputFilters,
aggregatorFilters,
processorFilters,
)
}
}
type program struct {
inputFilters []string
outputFilters []string
aggregatorFilters []string
processorFilters []string
}
func (p *program) Start(s service.Service) error {
go p.run()
return nil
}
func (p *program) run() {
stop = make(chan struct{})
reloadLoop(
p.inputFilters,
p.outputFilters,
p.aggregatorFilters,
p.processorFilters,
)
}
func (p *program) Stop(s service.Service) error {
close(stop)
return nil
}
func runAsWindowsService(inputFilters, outputFilters, aggregatorFilters, processorFilters []string) {
programFiles := os.Getenv("ProgramFiles")
if programFiles == "" { // Should never happen
programFiles = "C:\\Program Files"
}
svcConfig := &service.Config{
Name: *fServiceName,
DisplayName: *fServiceDisplayName,
Description: "Collects data using a series of plugins and publishes it to " +
"another series of plugins.",
Arguments: []string{"--config", programFiles + "\\Telegraf\\telegraf.conf"},
}
prg := &program{
inputFilters: inputFilters,
outputFilters: outputFilters,
aggregatorFilters: aggregatorFilters,
processorFilters: processorFilters,
}
s, err := service.New(prg, svcConfig)
if err != nil {
log.Fatal("E! " + err.Error())
}
// Handle the --service flag here to prevent any issues with tooling that
// may not have an interactive session, e.g. installing from Ansible.
if *fService != "" {
if *fConfig != "" {
svcConfig.Arguments = []string{"--config", *fConfig}
}
if *fConfigDirectory != "" {
svcConfig.Arguments = append(svcConfig.Arguments, "--config-directory", *fConfigDirectory)
}
//set servicename to service cmd line, to have a custom name after relaunch as a service
svcConfig.Arguments = append(svcConfig.Arguments, "--service-name", *fServiceName)
err := service.Control(s, *fService)
if err != nil {
log.Fatal("E! " + err.Error())
}
os.Exit(0)
} else {
winlogger, err := s.Logger(nil)
if err == nil {
//When in service mode, register eventlog target andd setup default logging to eventlog
logger.RegisterEventLogger(winlogger)
logger.SetupLogging(logger.LogConfig{LogTarget: logger.LogTargetEventlog})
}
err = s.Run()
if err != nil {
log.Println("E! " + err.Error())
}
}
}
// Return true if Telegraf should create a Windows service.
func windowsRunAsService() bool {
if *fService != "" {
return true
}
if *fRunAsConsole {
return false
}
return !service.Interactive()
}

View File

@ -16,6 +16,7 @@ type CredentialConfig struct {
Profile string
Filename string
Token string
EndpointURL string
}
func (c *CredentialConfig) Credentials() client.ConfigProvider {
@ -29,6 +30,7 @@ func (c *CredentialConfig) Credentials() client.ConfigProvider {
func (c *CredentialConfig) rootCredentials() client.ConfigProvider {
config := &aws.Config{
Region: aws.String(c.Region),
Endpoint: &c.EndpointURL,
}
if c.AccessKey != "" || c.SecretKey != "" {
config.Credentials = credentials.NewStaticCredentials(c.AccessKey, c.SecretKey, c.Token)
@ -43,6 +45,7 @@ func (c *CredentialConfig) assumeCredentials() client.ConfigProvider {
rootCredentials := c.rootCredentials()
config := &aws.Config{
Region: aws.String(c.Region),
Endpoint: &c.EndpointURL,
}
config.Credentials = stscreds.NewCredentials(rootCredentials, c.RoleARN)
return session.New(config)

2234
config/config.go Normal file

File diff suppressed because it is too large Load Diff

View File

@ -5,14 +5,17 @@ import (
"testing"
"time"
"github.com/influxdata/telegraf/internal/models"
"github.com/influxdata/telegraf/internal"
"github.com/influxdata/telegraf/models"
"github.com/influxdata/telegraf/plugins/inputs"
"github.com/influxdata/telegraf/plugins/inputs/exec"
"github.com/influxdata/telegraf/plugins/inputs/http_listener_v2"
"github.com/influxdata/telegraf/plugins/inputs/memcached"
"github.com/influxdata/telegraf/plugins/inputs/procstat"
httpOut "github.com/influxdata/telegraf/plugins/outputs/http"
"github.com/influxdata/telegraf/plugins/parsers"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestConfig_LoadSingleInputWithEnvVars(t *testing.T) {
@ -28,17 +31,17 @@ func TestConfig_LoadSingleInputWithEnvVars(t *testing.T) {
filter := models.Filter{
NameDrop: []string{"metricname2"},
NamePass: []string{"metricname1"},
NamePass: []string{"metricname1", "ip_192.168.1.1_name"},
FieldDrop: []string{"other", "stuff"},
FieldPass: []string{"some", "strings"},
TagDrop: []models.TagFilter{
models.TagFilter{
{
Name: "badtag",
Filter: []string{"othertag"},
},
},
TagPass: []models.TagFilter{
models.TagFilter{
{
Name: "goodtag",
Filter: []string{"mytag"},
},
@ -71,13 +74,13 @@ func TestConfig_LoadSingleInput(t *testing.T) {
FieldDrop: []string{"other", "stuff"},
FieldPass: []string{"some", "strings"},
TagDrop: []models.TagFilter{
models.TagFilter{
{
Name: "badtag",
Filter: []string{"othertag"},
},
},
TagPass: []models.TagFilter{
models.TagFilter{
{
Name: "goodtag",
Filter: []string{"mytag"},
},
@ -117,13 +120,13 @@ func TestConfig_LoadDirectory(t *testing.T) {
FieldDrop: []string{"other", "stuff"},
FieldPass: []string{"some", "strings"},
TagDrop: []models.TagFilter{
models.TagFilter{
{
Name: "badtag",
Filter: []string{"othertag"},
},
},
TagPass: []models.TagFilter{
models.TagFilter{
{
Name: "goodtag",
Filter: []string{"mytag"},
},
@ -143,7 +146,11 @@ func TestConfig_LoadDirectory(t *testing.T) {
"Testdata did not produce correct memcached metadata.")
ex := inputs.Inputs["exec"]().(*exec.Exec)
p, err := parsers.NewJSONParser("exec", nil, nil)
p, err := parsers.NewParser(&parsers.Config{
MetricName: "exec",
DataFormat: "json",
JSONStrict: true,
})
assert.NoError(t, err)
ex.SetParser(p)
ex.Command = "/usr/bin/myothercollector --foo=bar"
@ -152,6 +159,11 @@ func TestConfig_LoadDirectory(t *testing.T) {
MeasurementSuffix: "_myothercollector",
}
eConfig.Tags = make(map[string]string)
exec := c.Inputs[1].Input.(*exec.Exec)
require.NotNil(t, exec.Log)
exec.Log = nil
assert.Equal(t, ex, c.Inputs[1].Input,
"Merged Testdata did not produce a correct exec struct.")
assert.Equal(t, eConfig, c.Inputs[1].Config,
@ -174,3 +186,74 @@ func TestConfig_LoadDirectory(t *testing.T) {
assert.Equal(t, pConfig, c.Inputs[3].Config,
"Merged Testdata did not produce correct procstat metadata.")
}
func TestConfig_LoadSpecialTypes(t *testing.T) {
c := NewConfig()
err := c.LoadConfig("./testdata/special_types.toml")
assert.NoError(t, err)
require.Equal(t, 1, len(c.Inputs))
inputHTTPListener, ok := c.Inputs[0].Input.(*http_listener_v2.HTTPListenerV2)
assert.Equal(t, true, ok)
// Tests telegraf duration parsing.
assert.Equal(t, internal.Duration{Duration: time.Second}, inputHTTPListener.WriteTimeout)
// Tests telegraf size parsing.
assert.Equal(t, internal.Size{Size: 1024 * 1024}, inputHTTPListener.MaxBodySize)
// Tests toml multiline basic strings.
assert.Equal(t, "/path/to/my/cert\n", inputHTTPListener.TLSCert)
}
func TestConfig_FieldNotDefined(t *testing.T) {
c := NewConfig()
err := c.LoadConfig("./testdata/invalid_field.toml")
require.Error(t, err, "invalid field name")
assert.Equal(t, "Error loading config file ./testdata/invalid_field.toml: Error parsing http_listener_v2, line 2: field corresponding to `not_a_field' is not defined in http_listener_v2.HTTPListenerV2", err.Error())
}
func TestConfig_WrongFieldType(t *testing.T) {
c := NewConfig()
err := c.LoadConfig("./testdata/wrong_field_type.toml")
require.Error(t, err, "invalid field type")
assert.Equal(t, "Error loading config file ./testdata/wrong_field_type.toml: Error parsing http_listener_v2, line 2: (http_listener_v2.HTTPListenerV2.Port) cannot unmarshal TOML string into int", err.Error())
c = NewConfig()
err = c.LoadConfig("./testdata/wrong_field_type2.toml")
require.Error(t, err, "invalid field type2")
assert.Equal(t, "Error loading config file ./testdata/wrong_field_type2.toml: Error parsing http_listener_v2, line 2: (http_listener_v2.HTTPListenerV2.Methods) cannot unmarshal TOML string into []string", err.Error())
}
func TestConfig_InlineTables(t *testing.T) {
// #4098
c := NewConfig()
err := c.LoadConfig("./testdata/inline_table.toml")
assert.NoError(t, err)
require.Equal(t, 2, len(c.Outputs))
outputHTTP, ok := c.Outputs[1].Output.(*httpOut.HTTP)
assert.Equal(t, true, ok)
assert.Equal(t, map[string]string{"Authorization": "Token $TOKEN", "Content-Type": "application/json"}, outputHTTP.Headers)
assert.Equal(t, []string{"org_id"}, c.Outputs[0].Config.Filter.TagInclude)
}
func TestConfig_SliceComment(t *testing.T) {
t.Skipf("Skipping until #3642 is resolved")
c := NewConfig()
err := c.LoadConfig("./testdata/slice_comment.toml")
assert.NoError(t, err)
require.Equal(t, 1, len(c.Outputs))
outputHTTP, ok := c.Outputs[0].Output.(*httpOut.HTTP)
assert.Equal(t, []string{"test"}, outputHTTP.Scopes)
assert.Equal(t, true, ok)
}
func TestConfig_BadOrdering(t *testing.T) {
// #3444: when not using inline tables, care has to be taken so subsequent configuration
// doesn't become part of the table. This is not a bug, but TOML syntax.
c := NewConfig()
err := c.LoadConfig("./testdata/non_slice_slice.toml")
require.Error(t, err, "bad ordering")
assert.Equal(t, "Error loading config file ./testdata/non_slice_slice.toml: Error parsing http array, line 4: cannot unmarshal TOML array into string (need slice)", err.Error())
}

7
config/testdata/inline_table.toml vendored Normal file
View File

@ -0,0 +1,7 @@
[[outputs.http]]
headers = { Authorization = "Token $TOKEN",Content-Type = "application/json" }
taginclude = ["org_id"]
[[outputs.http]]
headers = { Authorization = "Token $TOKEN",Content-Type = "application/json" }
taginclude = ["org_id"]

2
config/testdata/invalid_field.toml vendored Normal file
View File

@ -0,0 +1,2 @@
[[inputs.http_listener_v2]]
not_a_field = true

4
config/testdata/non_slice_slice.toml vendored Normal file
View File

@ -0,0 +1,4 @@
[[outputs.http]]
[outputs.http.headers]
Content-Type = "application/json"
taginclude = ["org_id"]

View File

@ -1,6 +1,6 @@
[[inputs.memcached]]
servers = ["$MY_TEST_SERVER"]
namepass = ["metricname1"]
namepass = ["metricname1", "ip_${MY_TEST_SERVER}_name"]
namedrop = ["metricname2"]
fieldpass = ["some", "strings"]
fielddrop = ["other", "stuff"]

5
config/testdata/slice_comment.toml vendored Normal file
View File

@ -0,0 +1,5 @@
[[outputs.http]]
scopes = [
# comment
"test" # comment
]

9
config/testdata/special_types.toml vendored Normal file
View File

@ -0,0 +1,9 @@
[[inputs.http_listener_v2]]
write_timeout = "1s"
max_body_size = "1MiB"
tls_cert = """
/path/to/my/cert
"""
tls_key = '''
/path/to/my/key
'''

View File

@ -60,7 +60,7 @@
# Kafka topic for producer messages
topic = "telegraf"
# Telegraf tag to use as a routing key
# ie, if this tag exists, it's value will be used as the routing key
# ie, if this tag exists, its value will be used as the routing key
routing_tag = "host"
@ -143,19 +143,31 @@
[[inputs.diskio]]
# no configuration
# read metrics from a Kafka topic
# read metrics from a Kafka 0.9+ topic
[[inputs.kafka_consumer]]
# topic(s) to consume
## kafka brokers
brokers = ["localhost:9092"]
## topic(s) to consume
topics = ["telegraf"]
## the name of the consumer group
consumer_group = "telegraf_metrics_consumers"
## Offset (must be either "oldest" or "newest")
offset = "oldest"
# read metrics from a Kafka legacy topic
[[inputs.kafka_consumer_legacy]]
## topic(s) to consume
topics = ["telegraf"]
# an array of Zookeeper connection strings
zookeeper_peers = ["localhost:2181"]
# the name of the consumer group
## the name of the consumer group
consumer_group = "telegraf_metrics_consumers"
# Maximum number of points to buffer between collection intervals
point_buffer = 100000
# Offset (must be either "oldest" or "newest")
## Offset (must be either "oldest" or "newest")
offset = "oldest"
# Read metrics from a LeoFS Server via SNMP
[[inputs.leofs]]
# An array of URI to gather stats about LeoFS.
@ -244,7 +256,7 @@
# specify address via a url matching:
# postgres://[pqgotest[:password]]@localhost[/dbname]?sslmode=[disable|verify-ca|verify-full]
# or a simple string:
# host=localhost user=pqotest password=... sslmode=... dbname=app_production
# host=localhost user=pqgotest password=... sslmode=... dbname=app_production
#
# All connection parameters are optional. By default, the host is localhost
# and the user is the currently running user. For localhost, we default

2
config/testdata/wrong_field_type.toml vendored Normal file
View File

@ -0,0 +1,2 @@
[[inputs.http_listener_v2]]
port = "80"

View File

@ -0,0 +1,2 @@
[[inputs.http_listener_v2]]
methods = "POST"

88
config/types.go Normal file
View File

@ -0,0 +1,88 @@
package config
import (
"bytes"
"strconv"
"time"
"github.com/alecthomas/units"
)
// Duration is a time.Duration
type Duration time.Duration
// Size is an int64
type Size int64
// Number is a float
type Number float64
// UnmarshalTOML parses the duration from the TOML config file
func (d Duration) UnmarshalTOML(b []byte) error {
var err error
b = bytes.Trim(b, `'`)
// see if we can directly convert it
dur, err := time.ParseDuration(string(b))
if err == nil {
d = Duration(dur)
return nil
}
// Parse string duration, ie, "1s"
if uq, err := strconv.Unquote(string(b)); err == nil && len(uq) > 0 {
dur, err := time.ParseDuration(uq)
if err == nil {
d = Duration(dur)
return nil
}
}
// First try parsing as integer seconds
sI, err := strconv.ParseInt(string(b), 10, 64)
if err == nil {
dur := time.Second * time.Duration(sI)
d = Duration(dur)
return nil
}
// Second try parsing as float seconds
sF, err := strconv.ParseFloat(string(b), 64)
if err == nil {
dur := time.Second * time.Duration(sF)
d = Duration(dur)
return nil
}
return nil
}
func (s Size) UnmarshalTOML(b []byte) error {
var err error
b = bytes.Trim(b, `'`)
val, err := strconv.ParseInt(string(b), 10, 64)
if err == nil {
s = Size(val)
return nil
}
uq, err := strconv.Unquote(string(b))
if err != nil {
return err
}
val, err = units.ParseStrictBytes(uq)
if err != nil {
return err
}
s = Size(val)
return nil
}
func (n Number) UnmarshalTOML(b []byte) error {
value, err := strconv.ParseFloat(string(b), 64)
if err != nil {
return err
}
n = Number(value)
return nil
}

102
docker-compose.yml Normal file
View File

@ -0,0 +1,102 @@
version: '3'
services:
aerospike:
image: aerospike/aerospike-server:3.9.0
ports:
- "3000:3000"
zookeeper:
image: wurstmeister/zookeeper
environment:
- JAVA_OPTS="-Xms256m -Xmx256m"
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
environment:
- KAFKA_ADVERTISED_HOST_NAME=localhost
- KAFKA_ADVERTISED_PORT=9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
- JAVA_OPTS="-Xms256m -Xmx256m"
ports:
- "9092:9092"
depends_on:
- zookeeper
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
environment:
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
- discovery.type=single-node
- xpack.security.enabled=false
ports:
- "9200:9200"
mysql:
image: mysql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
ports:
- "3306:3306"
memcached:
image: memcached
ports:
- "11211:11211"
pgbouncer:
image: mbentley/ubuntu-pgbouncer
environment:
- PG_ENV_POSTGRESQL_USER=pgbouncer
- PG_ENV_POSTGRESQL_PASS=pgbouncer
ports:
- "6432:6432"
postgres:
image: postgres:alpine
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"
rabbitmq:
image: rabbitmq:3-management
ports:
- "15672:15672"
- "5672:5672"
redis:
image: redis:alpine
ports:
- "6379:6379"
nsq:
image: nsqio/nsq
ports:
- "4150:4150"
command: "/nsqd"
mqtt:
image: ncarlier/mqtt
ports:
- "1883:1883"
riemann:
image: stealthly/docker-riemann
ports:
- "5555:5555"
nats:
image: nats
ports:
- "4222:4222"
openldap:
image: cobaugh/openldap-alpine
environment:
- SLAPD_CONFIG_ROOTDN="cn=manager,cn=config"
- SLAPD_CONFIG_ROOTPW="secret"
ports:
- "389:389"
- "636:636"
crate:
image: crate/crate
ports:
- "4200:4200"
- "4230:4230"
- "6543:5432"
command:
- crate
- -Cnetwork.host=0.0.0.0
- -Ctransport.host=localhost
environment:
- CRATE_HEAP_SIZE=128m

132
docs/AGGREGATORS.md Normal file
View File

@ -0,0 +1,132 @@
### Aggregator Plugins
This section is for developers who want to create a new aggregator plugin.
### Aggregator Plugin Guidelines
* A aggregator must conform to the [telegraf.Aggregator][] interface.
* Aggregators should call `aggregators.Add` in their `init` function to
register themselves. See below for a quick example.
* To be available within Telegraf itself, plugins must add themselves to the
`github.com/influxdata/telegraf/plugins/aggregators/all/all.go` file.
- The `SampleConfig` function should return valid toml that describes how the
plugin can be configured. This is included in `telegraf config`. Please
consult the [SampleConfig][] page for the latest style guidelines.
* The `Description` function should say in one line what this aggregator does.
* The Aggregator plugin will need to keep caches of metrics that have passed
through it. This should be done using the builtin `HashID()` function of
each metric.
* When the `Reset()` function is called, all caches should be cleared.
- Follow the recommended [CodeStyle][].
### Aggregator Plugin Example
```go
package min
// min.go
import (
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/aggregators"
)
type Min struct {
// caches for metric fields, names, and tags
fieldCache map[uint64]map[string]float64
nameCache map[uint64]string
tagCache map[uint64]map[string]string
}
func NewMin() telegraf.Aggregator {
m := &Min{}
m.Reset()
return m
}
var sampleConfig = `
## period is the flush & clear interval of the aggregator.
period = "30s"
## If true drop_original will drop the original metrics and
## only send aggregates.
drop_original = false
`
func (m *Min) Init() error {
return nil
}
func (m *Min) SampleConfig() string {
return sampleConfig
}
func (m *Min) Description() string {
return "Keep the aggregate min of each metric passing through."
}
func (m *Min) Add(in telegraf.Metric) {
id := in.HashID()
if _, ok := m.nameCache[id]; !ok {
// hit an uncached metric, create caches for first time:
m.nameCache[id] = in.Name()
m.tagCache[id] = in.Tags()
m.fieldCache[id] = make(map[string]float64)
for k, v := range in.Fields() {
if fv, ok := convert(v); ok {
m.fieldCache[id][k] = fv
}
}
} else {
for k, v := range in.Fields() {
if fv, ok := convert(v); ok {
if _, ok := m.fieldCache[id][k]; !ok {
// hit an uncached field of a cached metric
m.fieldCache[id][k] = fv
continue
}
if fv < m.fieldCache[id][k] {
// set new minimum
m.fieldCache[id][k] = fv
}
}
}
}
}
func (m *Min) Push(acc telegraf.Accumulator) {
for id, _ := range m.nameCache {
fields := map[string]interface{}{}
for k, v := range m.fieldCache[id] {
fields[k+"_min"] = v
}
acc.AddFields(m.nameCache[id], fields, m.tagCache[id])
}
}
func (m *Min) Reset() {
m.fieldCache = make(map[uint64]map[string]float64)
m.nameCache = make(map[uint64]string)
m.tagCache = make(map[uint64]map[string]string)
}
func convert(in interface{}) (float64, bool) {
switch v := in.(type) {
case float64:
return v, true
case int64:
return float64(v), true
default:
return 0, false
}
}
func init() {
aggregators.Add("min", func() telegraf.Aggregator {
return NewMin()
})
}
```
[telegraf.Aggregator]: https://godoc.org/github.com/influxdata/telegraf#Aggregator
[SampleConfig]: https://github.com/influxdata/telegraf/wiki/SampleConfig
[CodeStyle]: https://github.com/influxdata/telegraf/wiki/CodeStyle

View File

@ -39,13 +39,20 @@ metrics as they pass through Telegraf:
Both Aggregators and Processors analyze metrics as they pass through Telegraf.
**Processor** plugins process metrics as they pass through and immediately emit
Use [measurement filtering](CONFIGURATION.md#measurement-filtering)
to control which metrics are passed through a processor or aggregator. If a
metric is filtered out the metric bypasses the plugin and is passed downstream
to the next plugin.
### Processor
Processor plugins process metrics as they pass through and immediately emit
results based on the values they process. For example, this could be printing
all metrics or adding a tag to all metrics that pass through.
**Aggregator** plugins, on the other hand, are a bit more complicated. Aggregators
### Aggregator
Aggregator plugins, on the other hand, are a bit more complicated. Aggregators
are typically for emitting new _aggregate_ metrics, such as a running mean,
minimum, maximum, quantiles, or standard deviation. For this reason, all _aggregator_
minimum, maximum, or standard deviation. For this reason, all _aggregator_
plugins are configured with a `period`. The `period` is the size of the window
of metrics that each _aggregate_ represents. In other words, the emitted
_aggregate_ metric will be the aggregated value of the past `period` seconds.
@ -53,7 +60,8 @@ Since many users will only care about their aggregates and not every single metr
gathered, there is also a `drop_original` argument, which tells Telegraf to only
emit the aggregates and not the original metrics.
**NOTE** That since aggregators only aggregate metrics within their period, that
historical data is not supported. In other words, if your metric timestamp is more
than `now() - period` in the past, it will not be aggregated. If this is a feature
that you need, please comment on this [github issue](https://github.com/influxdata/telegraf/issues/1992)
Since aggregates are created for each measurement, field, and unique tag combination
the plugin receives, you can make use of `taginclude` to group
aggregates by specific tags only.
**Note:** Aggregator plugins only aggregate metrics within their periods (`now() - period`). Data with a timestamp earlier than `now() - period` cannot be included.

View File

@ -1,179 +1,462 @@
# Telegraf Configuration
# Configuration
You can see the latest config file with all available plugins here:
[telegraf.conf](https://github.com/influxdata/telegraf/blob/master/etc/telegraf.conf)
Telegraf's configuration file is written using [TOML][] and is composed of
three sections: [global tags][], [agent][] settings, and [plugins][].
## Generating a Configuration File
View the default [telegraf.conf][] config file with all available plugins.
A default Telegraf config file can be auto-generated by telegraf:
### Generating a Configuration File
```
A default config file can be generated by telegraf:
```sh
telegraf config > telegraf.conf
```
To generate a file with specific inputs and outputs, you can use the
--input-filter and --output-filter flags:
```
```sh
telegraf --input-filter cpu:mem:net:swap --output-filter influxdb:kafka config
```
## Environment Variables
### Configuration Loading
Environment variables can be used anywhere in the 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)
The location of the configuration file can be set via the `--config` command
line flag.
# Global Tags
When the `--config-directory` command line flag is used files ending with
`.conf` in the specified directory will also be included in the Telegraf
configuration.
Global tags can be specified in the `[global_tags]` section of the config file
in key="value" format. All metrics being gathered on this host will be tagged
with the tags specified here.
On most systems, the default locations are `/etc/telegraf/telegraf.conf` for
the main configuration file and `/etc/telegraf/telegraf.d` for the directory of
configuration files.
## Agent Configuration
### Environment Variables
Telegraf has a few options you can configure under the `[agent]` section of the
config.
Environment variables can be used anywhere in the config file, simply surround
them with `${}`. Replacement occurs before file parsing. For strings
the variable must be within quotes, e.g., `"${STR_VAR}"`, for numbers and booleans
they should be unquoted, e.g., `${INT_VAR}`, `${BOOL_VAR}`.
* **interval**: Default data collection interval for all inputs
* **round_interval**: Rounds collection interval to 'interval'
ie, if interval="10s" then always collect on :00, :10, :20, etc.
* **metric_batch_size**: Telegraf will send metrics to output in batch of at
most metric_batch_size metrics.
* **metric_buffer_limit**: Telegraf will cache metric_buffer_limit metrics
for each output, and will flush this buffer on a successful write.
This should be a multiple of metric_batch_size and could not be less
than 2 times metric_batch_size.
* **collection_jitter**: 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.
* **flush_interval**: Default data flushing interval for all outputs.
You should not set this below
interval. Maximum flush_interval will be flush_interval + flush_jitter
* **flush_jitter**: 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 flush_interval 10s means flushes will happen every 10-15s.
* **precision**: By default, precision will be set to the same timestamp order
as the collection interval, with the maximum being 1s. Precision will NOT
be used for service inputs, such as logparser and statsd. Valid values are
"ns", "us" (or "µs"), "ms", "s".
* **logfile**: Specify the log file name. The empty string means to log to stdout.
* **debug**: Run telegraf in debug mode.
* **quiet**: Run telegraf in quiet mode (error messages only).
* **hostname**: Override default hostname, if empty use os.Hostname().
* **omit_hostname**: If true, do no set the "host" tag in the telegraf agent.
When using the `.deb` or `.rpm` packages, you can define environment variables
in the `/etc/default/telegraf` file.
## Input Configuration
**Example**:
The following config parameters are available for all inputs:
`/etc/default/telegraf`:
```
USER="alice"
INFLUX_URL="http://localhost:8086"
INFLUX_SKIP_DATABASE_CREATION="true"
INFLUX_PASSWORD="monkey123"
```
* **interval**: How often to gather this metric. Normal plugins use a single
global interval, but if one particular input should be run less or more often,
you can configure that here.
* **name_override**: Override the base name of the measurement.
(Default is the name of the input).
* **name_prefix**: Specifies a prefix to attach to the measurement name.
* **name_suffix**: Specifies a suffix to attach to the measurement name.
* **tags**: A map of tags to apply to a specific input's measurements.
`/etc/telegraf.conf`:
```toml
[global_tags]
user = "${USER}"
## Output Configuration
[[inputs.mem]]
There are no generic configuration options available for all outputs.
[[outputs.influxdb]]
urls = ["${INFLUX_URL}"]
skip_database_creation = ${INFLUX_SKIP_DATABASE_CREATION}
password = "${INFLUX_PASSWORD}"
```
## Aggregator Configuration
The above files will produce the following effective configuration file to be
parsed:
```toml
[global_tags]
user = "alice"
The following config parameters are available for all aggregators:
[[outputs.influxdb]]
urls = "http://localhost:8086"
skip_database_creation = true
password = "monkey123"
```
* **period**: The period on which to flush & clear each aggregator. All metrics
that are sent with timestamps outside of this period will be ignored by the
aggregator.
* **delay**: The delay before each aggregator is flushed. This is to control
how long for aggregators to wait before receiving metrics from input plugins,
in the case that aggregators are flushing and inputs are gathering on the
same interval.
* **drop_original**: If true, the original metric will be dropped by the
aggregator and will not get sent to the output plugins.
* **name_override**: Override the base name of the measurement.
(Default is the name of the input).
* **name_prefix**: Specifies a prefix to attach to the measurement name.
* **name_suffix**: Specifies a suffix to attach to the measurement name.
* **tags**: A map of tags to apply to a specific input's measurements.
### Intervals
## Processor Configuration
Intervals are durations of time and can be specified for supporting settings by
combining an integer value and time unit as a string value. Valid time units are
`ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`.
```toml
[agent]
interval = "10s"
```
The following config parameters are available for all processors:
### Global Tags
* **order**: This is the order in which the processor(s) get executed. If this
is not specified then processor execution order will be random.
#### Measurement Filtering
Filters can be configured per input, output, processor, or aggregator,
see below for examples.
* **namepass**: An array of strings that is used to filter metrics generated by the
current input. Each string in the array is tested as a glob match against
measurement names and if it matches, the field is emitted.
* **namedrop**: The inverse of pass, if a measurement name matches, it is not emitted.
* **fieldpass**: An array of strings that is used to filter metrics generated by the
current input. Each string in the array is tested as a glob match against field names
and if it matches, the field is emitted. fieldpass is not available for outputs.
* **fielddrop**: The inverse of pass, if a field name matches, it is not emitted.
fielddrop is not available for outputs.
* **tagpass**: tag names and arrays of strings that are used to filter
measurements by the current input. Each string in the array is tested as a glob
match against the tag name, and if it matches the measurement is emitted.
* **tagdrop**: The inverse of tagpass. If a tag matches, the measurement is not
emitted. This is tested on measurements that have passed the tagpass test.
* **tagexclude**: tagexclude can be used to exclude a tag from measurement(s).
As opposed to tagdrop, which will drop an entire measurement based on it's
tags, tagexclude simply strips the given tag keys from the measurement. This
can be used on inputs & outputs, but it is _recommended_ to be used on inputs,
as it is more efficient to filter out tags at the ingestion point.
* **taginclude**: taginclude is the inverse of tagexclude. It will only include
the tag keys in the final measurement.
**NOTE** `tagpass` and `tagdrop` parameters must be defined at the _end_ of
the plugin definition, otherwise subsequent plugin config options will be
interpreted as part of the tagpass/tagdrop map.
#### Input Configuration Examples
This is a full working config that will output CPU data to an InfluxDB instance
at 192.168.59.103:8086, tagging measurements with dc="denver-1". It will output
measurements at a 10s interval and will collect per-cpu data, dropping any
fields which begin with `time_`.
Global tags can be specified in the `[global_tags]` table in key="value"
format. All metrics that are gathered will be tagged with the tags specified.
```toml
[global_tags]
dc = "denver-1"
dc = "us-east-1"
```
[agent]
interval = "10s"
### Agent
# OUTPUTS
[[outputs.influxdb]]
url = "http://192.168.59.103:8086" # required.
database = "telegraf" # required.
precision = "s"
The agent table configures Telegraf and the defaults used across all plugins.
- **interval**: Default data collection [interval][] for all inputs.
- **round_interval**: Rounds collection interval to [interval][]
ie, if interval="10s" then always collect on :00, :10, :20, etc.
- **metric_batch_size**:
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_buffer_limit**:
Maximum number of unwritten metrics per output. Increasing this value
allows for longer periods of output downtime without dropping metrics at the
cost of higher maximum memory usage.
- **collection_jitter**:
Collection jitter is used to jitter the collection by a random [interval][].
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.
- **flush_interval**:
Default flushing [interval][] for all outputs. Maximum flush_interval will be
flush_interval + flush_jitter.
- **flush_jitter**:
Default flush jitter for all outputs. This jitters 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.
- **precision**:
Collected metrics are rounded to the precision specified as an [interval][].
Precision will NOT be used for service inputs. It is up to each individual
service input to set the timestamp at the appropriate precision.
- **debug**:
Log at debug level.
- **quiet**:
Log only error level messages.
- **logtarget**:
Log target controls the destination for logs and can be one of "file",
"stderr" or, on Windows, "eventlog". When set to "file", the output file is
determined by the "logfile" setting.
- **logfile**:
Name of the file to be logged to when using the "file" logtarget. If set to
the empty string then logs are written to stderr.
- **logfile_rotation_interval**:
The logfile will be rotated after the time interval specified. When set to
0 no time based rotation is performed.
- **logfile_rotation_max_size**:
The logfile will be rotated when it becomes larger than the specified size.
When set to 0 no size based rotation is performed.
- **logfile_rotation_max_archives**:
Maximum number of rotated archives to keep, any older logs are deleted. If
set to -1, no archives are removed.
- **hostname**:
Override default hostname, if empty use os.Hostname()
- **omit_hostname**:
If set to true, do no set the "host" tag in the telegraf agent.
### Plugins
Telegraf plugins are divided into 4 types: [inputs][], [outputs][],
[processors][], and [aggregators][].
Unlike the `global_tags` and `agent` tables, any plugin can be defined
multiple times and each instance will run independently. This allows you to
have plugins defined with differing configurations as needed within a single
Telegraf process.
Each plugin has a unique set of configuration options, reference the
sample configuration for details. Additionally, several options are available
on any plugin depending on its type.
### Input Plugins
Input plugins gather and create metrics. They support both polling and event
driven operation.
Parameters that can be used with any input plugin:
- **alias**: Name an instance of a plugin.
- **interval**: How often to gather this metric. Normal plugins use a single
global interval, but if one particular input should be run less or more
often, you can configure that here.
- **name_override**: Override the base name of the measurement. (Default is
the name of the input).
- **name_prefix**: Specifies a prefix to attach to the measurement name.
- **name_suffix**: Specifies a suffix to attach to the measurement name.
- **tags**: A map of tags to apply to a specific input's measurements.
The [metric filtering][] parameters can be used to limit what metrics are
emitted from the input plugin.
#### Examples
Use the name_suffix parameter to emit measurements with the name `cpu_total`:
```toml
[[inputs.cpu]]
name_suffix = "_total"
percpu = false
totalcpu = true
```
Use the name_override parameter to emit measurements with the name `foobar`:
```toml
[[inputs.cpu]]
name_override = "foobar"
percpu = false
totalcpu = true
```
Emit measurements with two additional tags: `tag1=foo` and `tag2=bar`
> **NOTE**: With TOML, order matters. Parameters belong to the last defined
> table header, place `[inputs.cpu.tags]` table at the _end_ of the plugin
> definition.
```toml
[[inputs.cpu]]
percpu = false
totalcpu = true
[inputs.cpu.tags]
tag1 = "foo"
tag2 = "bar"
```
Utilize `name_override`, `name_prefix`, or `name_suffix` config options to
avoid measurement collisions when defining multiple plugins:
```toml
[[inputs.cpu]]
percpu = false
totalcpu = true
# INPUTS
[[inputs.cpu]]
percpu = true
totalcpu = false
# filter all fields beginning with 'time_'
fielddrop = ["time_*"]
name_override = "percpu_usage"
fielddrop = ["cpu_time*"]
```
#### Input Config: tagpass and tagdrop
### Output Plugins
**NOTE** `tagpass` and `tagdrop` parameters must be defined at the _end_ of
the plugin definition, otherwise subsequent plugin config options will be
interpreted as part of the tagpass/tagdrop map.
Output plugins write metrics to a location. Outputs commonly write to
databases, network services, and messaging systems.
Parameters that can be used with any output plugin:
- **alias**: Name an instance of a plugin.
- **flush_interval**: The maximum time between flushes. Use this setting to
override the agent `flush_interval` on a per plugin basis.
- **flush_jitter**: The amount of time to jitter the flush interval. Use this
setting to override the agent `flush_jitter` on a per plugin basis.
- **metric_batch_size**: The maximum number of metrics to send at once. Use
this setting to override the agent `metric_batch_size` on a per plugin basis.
- **metric_buffer_limit**: The maximum number of unsent metrics to buffer.
Use this setting to override the agent `metric_buffer_limit` on a per plugin
basis.
- **name_override**: Override the original name of the measurement.
- **name_prefix**: Specifies a prefix to attach to the measurement name.
- **name_suffix**: Specifies a suffix to attach to the measurement name.
The [metric filtering][] parameters can be used to limit what metrics are
emitted from the output plugin.
#### Examples
Override flush parameters for a single output:
```toml
[agent]
flush_interval = "10s"
flush_jitter = "5s"
metric_batch_size = 1000
[[outputs.influxdb]]
urls = [ "http://example.org:8086" ]
database = "telegraf"
[[outputs.file]]
files = [ "stdout" ]
flush_interval = "1s"
flush_jitter = "1s"
metric_batch_size = 10
```
### Processor Plugins
Processor plugins perform processing tasks on metrics and are commonly used to
rename or apply transformations to metrics. Processors are applied after the
input plugins and before any aggregator plugins.
Parameters that can be used with any processor plugin:
- **alias**: Name an instance of a plugin.
- **order**: The order in which the processor(s) are executed. If this is not
specified then processor execution order will be random.
The [metric filtering][] parameters can be used to limit what metrics are
handled by the processor. Excluded metrics are passed downstream to the next
processor.
#### Examples
If the order processors are applied matters you must set order on all involved
processors:
```toml
[[processors.rename]]
order = 1
[[processors.rename.replace]]
tag = "path"
dest = "resource"
[[processors.strings]]
order = 2
[[processors.strings.trim_prefix]]
tag = "resource"
prefix = "/api/"
```
### Aggregator Plugins
Aggregator plugins produce new metrics after examining metrics over a time
period, as the name suggests they are commonly used to produce new aggregates
such as mean/max/min metrics. Aggregators operate on metrics after any
processors have been applied.
Parameters that can be used with any aggregator plugin:
- **alias**: Name an instance of a plugin.
- **period**: The period on which to flush & clear each aggregator. All
metrics that are sent with timestamps outside of this period will be ignored
by the aggregator.
- **delay**: The delay before each aggregator is flushed. This is to control
how long for aggregators to wait before receiving metrics from input
plugins, in the case that aggregators are flushing and inputs are gathering
on the same interval.
- **grace**: The duration when the metrics will still be aggregated
by the plugin, even though they're outside of the aggregation period. This
is needed in a situation when the agent is expected to receive late metrics
and it's acceptable to roll them up into next aggregation period.
- **drop_original**: If true, the original metric will be dropped by the
aggregator and will not get sent to the output plugins.
- **name_override**: Override the base name of the measurement. (Default is
the name of the input).
- **name_prefix**: Specifies a prefix to attach to the measurement name.
- **name_suffix**: Specifies a suffix to attach to the measurement name.
- **tags**: A map of tags to apply to a specific input's measurements.
The [metric filtering][] parameters can be used to limit what metrics are
handled by the aggregator. Excluded metrics are passed downstream to the next
aggregator.
#### Examples
Collect and emit the min/max of the system load1 metric every 30s, dropping
the originals.
```toml
[[inputs.system]]
fieldpass = ["load1"] # collects system load1 metric.
[[aggregators.minmax]]
period = "30s" # send & clear the aggregate every 30s.
drop_original = true # drop the original metrics.
[[outputs.file]]
files = ["stdout"]
```
Collect and emit the min/max of the swap metrics every 30s, dropping the
originals. The aggregator will not be applied to the system load metrics due
to the `namepass` parameter.
```toml
[[inputs.swap]]
[[inputs.system]]
fieldpass = ["load1"] # collects system load1 metric.
[[aggregators.minmax]]
period = "30s" # send & clear the aggregate every 30s.
drop_original = true # drop the original metrics.
namepass = ["swap"] # only "pass" swap metrics through the aggregator.
[[outputs.file]]
files = ["stdout"]
```
<a id="measurement-filtering"></a>
### Metric Filtering
Metric filtering can be configured per plugin on any input, output, processor,
and aggregator plugin. Filters fall under two categories: Selectors and
Modifiers.
#### Selectors
Selector filters include or exclude entire metrics. When a metric is excluded
from a Input or an Output plugin, the metric is dropped. If a metric is
excluded from a Processor or Aggregator plugin, it is skips the plugin and is
sent onwards to the next stage of processing.
- **namepass**:
An array of glob pattern strings. Only metrics whose measurement name matches
a pattern in this list are emitted.
- **namedrop**:
The inverse of `namepass`. If a match is found the metric is discarded. This
is tested on metrics after they have passed the `namepass` test.
- **tagpass**:
A table mapping tag keys to arrays of glob pattern strings. Only metrics
that contain a tag key in the table and a tag value matching one of its
patterns is emitted.
- **tagdrop**:
The inverse of `tagpass`. If a match is found the metric is discarded. This
is tested on metrics after they have passed the `tagpass` test.
#### Modifiers
Modifier filters remove tags and fields from a metric. If all fields are
removed the metric is removed.
- **fieldpass**:
An array of glob pattern strings. Only fields whose field key matches a
pattern in this list are emitted.
- **fielddrop**:
The inverse of `fieldpass`. Fields with a field key matching one of the
patterns will be discarded from the metric. This is tested on metrics after
they have passed the `fieldpass` test.
- **taginclude**:
An array of glob pattern strings. Only tags with a tag key matching one of
the patterns are emitted. In contrast to `tagpass`, which will pass an entire
metric based on its tag, `taginclude` removes all non matching tags from the
metric. Any tag can be filtered including global tags and the agent `host`
tag.
- **tagexclude**:
The inverse of `taginclude`. Tags with a tag key matching one of the patterns
will be discarded from the metric. Any tag can be filtered including global
tags and the agent `host` tag.
#### Filtering Examples
##### Using tagpass and tagdrop:
```toml
[[inputs.cpu]]
percpu = true
@ -191,10 +474,22 @@ interpreted as part of the tagpass/tagdrop map.
fstype = [ "ext4", "xfs" ]
# Globs can also be used on the tag values
path = [ "/opt", "/home*" ]
[[inputs.win_perf_counters]]
[[inputs.win_perf_counters.object]]
ObjectName = "Network Interface"
Instances = ["*"]
Counters = [
"Bytes Received/sec",
"Bytes Sent/sec"
]
Measurement = "win_net"
# Don't send metrics where the Windows interface name (instance) begins with isatap or Local
[inputs.win_perf_counters.tagdrop]
instance = ["isatap*", "Local*"]
```
#### Input Config: fieldpass and fielddrop
##### Using fieldpass and fielddrop:
```toml
# Drop all metrics for guest & steal CPU usage
[[inputs.cpu]]
@ -207,8 +502,7 @@ interpreted as part of the tagpass/tagdrop map.
fieldpass = ["inodes*"]
```
#### Input Config: namepass and namedrop
##### Using namepass and namedrop:
```toml
# Drop all metrics about containers for kubelet
[[inputs.prometheus]]
@ -221,8 +515,7 @@ interpreted as part of the tagpass/tagdrop map.
namepass = ["rest_client_*"]
```
#### Input Config: taginclude and tagexclude
##### Using taginclude and tagexclude:
```toml
# Only include the "cpu" tag in the measurements for the cpu plugin.
[[inputs.cpu]]
@ -235,120 +528,65 @@ interpreted as part of the tagpass/tagdrop map.
tagexclude = ["fstype"]
```
#### Input config: prefix, suffix, and override
This plugin will emit measurements with the name `cpu_total`
```toml
[[inputs.cpu]]
name_suffix = "_total"
percpu = false
totalcpu = true
```
This will emit measurements with the name `foobar`
```toml
[[inputs.cpu]]
name_override = "foobar"
percpu = false
totalcpu = true
```
#### Input config: tags
This plugin will emit measurements with two additional tags: `tag1=foo` and
`tag2=bar`
NOTE: Order matters, the `[inputs.cpu.tags]` table must be at the _end_ of the
plugin definition.
```toml
[[inputs.cpu]]
percpu = false
totalcpu = true
[inputs.cpu.tags]
tag1 = "foo"
tag2 = "bar"
```
#### Multiple inputs of the same type
Additional inputs (or outputs) of the same type can be specified,
just define more instances in the config file. It is highly recommended that
you utilize `name_override`, `name_prefix`, or `name_suffix` config options
to avoid measurement collisions:
```toml
[[inputs.cpu]]
percpu = false
totalcpu = true
[[inputs.cpu]]
percpu = true
totalcpu = false
name_override = "percpu_usage"
fielddrop = ["cpu_time*"]
```
#### Output Configuration Examples:
##### Metrics can be routed to different outputs using the metric name and tags:
```toml
[[outputs.influxdb]]
urls = [ "http://localhost:8086" ]
database = "telegraf"
precision = "s"
# Drop all measurements that start with "aerospike"
namedrop = ["aerospike*"]
[[outputs.influxdb]]
urls = [ "http://localhost:8086" ]
database = "telegraf-aerospike-data"
precision = "s"
# Only accept aerospike data:
namepass = ["aerospike*"]
[[outputs.influxdb]]
urls = [ "http://localhost:8086" ]
database = "telegraf-cpu0-data"
precision = "s"
# Only store measurements where the tag "cpu" matches the value "cpu0"
[outputs.influxdb.tagpass]
cpu = ["cpu0"]
```
#### Aggregator Configuration Examples:
##### Routing metrics to different outputs based on the input.
This will collect and emit the min/max of the system load1 metric every
30s, dropping the originals.
Metrics are tagged with `influxdb_database` in the input, which is then used to
select the output. The tag is removed in the outputs before writing.
```toml
[[inputs.system]]
fieldpass = ["load1"] # collects system load1 metric.
[[outputs.influxdb]]
urls = ["http://influxdb.example.com"]
database = "db_default"
[outputs.influxdb.tagdrop]
influxdb_database = ["*"]
[[aggregators.minmax]]
period = "30s" # send & clear the aggregate every 30s.
drop_original = true # drop the original metrics.
[[outputs.influxdb]]
urls = ["http://influxdb.example.com"]
database = "db_other"
tagexclude = ["influxdb_database"]
[outputs.influxdb.tagpass]
influxdb_database = ["other"]
[[outputs.file]]
files = ["stdout"]
[[inputs.disk]]
[inputs.disk.tags]
influxdb_database = "other"
```
This will collect and emit the min/max of the swap metrics every
30s, dropping the originals. The aggregator will not be applied
to the system load metrics due to the `namepass` parameter.
### Transport Layer Security (TLS)
```toml
[[inputs.swap]]
Reference the detailed [TLS][] documentation.
[[inputs.system]]
fieldpass = ["load1"] # collects system load1 metric.
[[aggregators.minmax]]
period = "30s" # send & clear the aggregate every 30s.
drop_original = true # drop the original metrics.
namepass = ["swap"] # only "pass" swap metrics through the aggregator.
[[outputs.file]]
files = ["stdout"]
```
[TOML]: https://github.com/toml-lang/toml#toml
[global tags]: #global-tags
[interval]: #intervals
[agent]: #agent
[plugins]: #plugins
[inputs]: #input-plugins
[outputs]: #output-plugins
[processors]: #processor-plugins
[aggregators]: #aggregator-plugins
[metric filtering]: #metric-filtering
[telegraf.conf]: /etc/telegraf.conf
[TLS]: /docs/TLS.md

View File

@ -1,35 +1,24 @@
# Telegraf Input Data Formats
# Input Data Formats
Telegraf is able to parse the following input data formats into metrics:
Telegraf contains many general purpose plugins that support parsing input data
using a configurable parser into [metrics][]. This allows, for example, the
`kafka_consumer` input plugin to process messages in either InfluxDB Line
Protocol or in JSON format.
1. [InfluxDB Line Protocol](https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md#influx)
1. [JSON](https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md#json)
1. [Graphite](https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md#graphite)
1. [Value](https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md#value), ie: 45 or "booyah"
1. [Nagios](https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md#nagios) (exec input only)
- [InfluxDB Line Protocol](/plugins/parsers/influx)
- [Collectd](/plugins/parsers/collectd)
- [CSV](/plugins/parsers/csv)
- [Dropwizard](/plugins/parsers/dropwizard)
- [Graphite](/plugins/parsers/graphite)
- [Grok](/plugins/parsers/grok)
- [JSON](/plugins/parsers/json)
- [Logfmt](/plugins/parsers/logfmt)
- [Nagios](/plugins/parsers/nagios)
- [Value](/plugins/parsers/value), ie: 45 or "booyah"
- [Wavefront](/plugins/parsers/wavefront)
Telegraf metrics, like InfluxDB
[points](https://docs.influxdata.com/influxdb/v0.10/write_protocols/line/),
are a combination of four basic parts:
1. Measurement Name
1. Tags
1. Fields
1. Timestamp
These four parts are easily defined when using InfluxDB line-protocol as a
data format. But there are other data formats that users may want to use which
require more advanced configuration to create usable Telegraf metrics.
Plugins such as `exec` and `kafka_consumer` parse textual data. Up until now,
these plugins were statically configured to parse just a single
data format. `exec` mostly only supported parsing JSON, and `kafka_consumer` only
supported data in InfluxDB line-protocol.
But now we are normalizing the parsing of various data formats across all
plugins that can support it. You will be able to identify a plugin that supports
different data formats by the presence of a `data_format` config option, for
example, in the exec plugin:
Any input plugin containing the `data_format` option can use it to select the
desired parser:
```toml
[[inputs.exec]]
@ -40,401 +29,10 @@ example, in the exec plugin:
name_suffix = "_mycollector"
## Data format to consume.
## Each data format has it's own unique set of configuration options, read
## 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 = "json"
## Additional configuration options go here
```
Each data_format has an additional set of configuration options available, which
I'll go over below.
# Influx:
There are no additional configuration options for InfluxDB line-protocol. The
metrics are parsed directly into Telegraf metrics.
#### Influx Configuration:
```toml
[[inputs.exec]]
## Commands array
commands = ["/tmp/test.sh", "/usr/bin/mycollector --foo=bar"]
## measurement name suffix (for separating different commands)
name_suffix = "_mycollector"
## Data format to consume.
## Each data format has it's 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 = "influx"
```
# JSON:
The JSON data format flattens JSON into metric _fields_.
NOTE: Only numerical values are converted to fields, and they are converted
into a float. strings are ignored unless specified as a tag_key (see below).
So for example, this JSON:
```json
{
"a": 5,
"b": {
"c": 6
},
"ignored": "I'm a string"
}
```
Would get translated into _fields_ of a measurement:
```
myjsonmetric a=5,b_c=6
```
The _measurement_ _name_ is usually the name of the plugin,
but can be overridden using the `name_override` config option.
#### JSON Configuration:
The JSON data format supports specifying "tag keys". If specified, keys
will be searched for in the root-level of the JSON blob. If the key(s) exist,
they will be applied as tags to the Telegraf metrics.
For example, if you had this configuration:
```toml
[[inputs.exec]]
## Commands array
commands = ["/tmp/test.sh", "/usr/bin/mycollector --foo=bar"]
## measurement name suffix (for separating different commands)
name_suffix = "_mycollector"
## Data format to consume.
## Each data format has it's 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 = "json"
## List of tag names to extract from top-level of JSON server response
tag_keys = [
"my_tag_1",
"my_tag_2"
]
```
with this JSON output from a command:
```json
{
"a": 5,
"b": {
"c": 6
},
"my_tag_1": "foo"
}
```
Your Telegraf metrics would get tagged with "my_tag_1"
```
exec_mycollector,my_tag_1=foo a=5,b_c=6
```
If the JSON data is an array, then each element of the array is parsed with the configured settings.
Each resulting metric will be output with the same timestamp.
For example, if the following configuration:
```toml
[[inputs.exec]]
## Commands array
commands = ["/usr/bin/mycollector --foo=bar"]
## measurement name suffix (for separating different commands)
name_suffix = "_mycollector"
## Data format to consume.
## Each data format has it's 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 = "json"
## List of tag names to extract from top-level of JSON server response
tag_keys = [
"my_tag_1",
"my_tag_2"
]
```
with this JSON output from a command:
```json
[
{
"a": 5,
"b": {
"c": 6
},
"my_tag_1": "foo",
"my_tag_2": "baz"
},
{
"a": 7,
"b": {
"c": 8
},
"my_tag_1": "bar",
"my_tag_2": "baz"
}
]
```
Your Telegraf metrics would get tagged with "my_tag_1" and "my_tag_2"
```
exec_mycollector,my_tag_1=foo,my_tag_2=baz a=5,b_c=6
exec_mycollector,my_tag_1=bar,my_tag_2=baz a=7,b_c=8
```
# Value:
The "value" data format translates single values into Telegraf metrics. This
is done by assigning a measurement name and setting a single field ("value")
as the parsed metric.
#### Value Configuration:
You **must** tell Telegraf what type of metric to collect by using the
`data_type` configuration option. Available options are:
1. integer
2. float or long
3. string
4. boolean
**Note:** It is also recommended that you set `name_override` to a measurement
name that makes sense for your metric, otherwise it will just be set to the
name of the plugin.
```toml
[[inputs.exec]]
## Commands array
commands = ["cat /proc/sys/kernel/random/entropy_avail"]
## override the default metric name of "exec"
name_override = "entropy_available"
## Data format to consume.
## Each data format has it's 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 = "value"
data_type = "integer" # required
```
# Graphite:
The Graphite data format translates graphite _dot_ buckets directly into
telegraf measurement names, with a single value field, and without any tags.
By default, the separator is left as ".", but this can be changed using the
"separator" argument. For more advanced options,
Telegraf supports specifying "templates" to translate
graphite buckets into Telegraf metrics.
Templates are of the form:
```
"host.mytag.mytag.measurement.measurement.field*"
```
Where the following keywords exist:
1. `measurement`: specifies that this section of the graphite bucket corresponds
to the measurement name. This can be specified multiple times.
2. `field`: specifies that this section of the graphite bucket corresponds
to the field name. This can be specified multiple times.
3. `measurement*`: specifies that all remaining elements of the graphite bucket
correspond to the measurement name.
4. `field*`: specifies that all remaining elements of the graphite bucket
correspond to the field name.
Any part of the template that is not a keyword is treated as a tag key. This
can also be specified multiple times.
NOTE: `field*` cannot be used in conjunction with `measurement*`!
#### Measurement & Tag Templates:
The most basic template is to specify a single transformation to apply to all
incoming metrics. So the following template:
```toml
templates = [
"region.region.measurement*"
]
```
would result in the following Graphite -> Telegraf transformation.
```
us.west.cpu.load 100
=> cpu.load,region=us.west value=100
```
Multiple templates can also be specified, but these should be differentiated
using _filters_ (see below for more details)
```toml
templates = [
"*.*.* region.region.measurement", # <- all 3-part measurements will match this one.
"*.*.*.* region.region.host.measurement", # <- all 4-part measurements will match this one.
]
```
#### Field Templates:
The field keyword tells Telegraf to give the metric that field name.
So the following template:
```toml
separator = "_"
templates = [
"measurement.measurement.field.field.region"
]
```
would result in the following Graphite -> Telegraf transformation.
```
cpu.usage.idle.percent.eu-east 100
=> cpu_usage,region=eu-east idle_percent=100
```
The field key can also be derived from all remaining elements of the graphite
bucket by specifying `field*`:
```toml
separator = "_"
templates = [
"measurement.measurement.region.field*"
]
```
which would result in the following Graphite -> Telegraf transformation.
```
cpu.usage.eu-east.idle.percentage 100
=> cpu_usage,region=eu-east idle_percentage=100
```
#### Filter Templates:
Users can also filter the template(s) to use based on the name of the bucket,
using glob matching, like so:
```toml
templates = [
"cpu.* measurement.measurement.region",
"mem.* measurement.measurement.host"
]
```
which would result in the following transformation:
```
cpu.load.eu-east 100
=> cpu_load,region=eu-east value=100
mem.cached.localhost 256
=> mem_cached,host=localhost value=256
```
#### Adding Tags:
Additional tags can be added to a metric that don't exist on the received metric.
You can add additional tags by specifying them after the pattern.
Tags have the same format as the line protocol.
Multiple tags are separated by commas.
```toml
templates = [
"measurement.measurement.field.region datacenter=1a"
]
```
would result in the following Graphite -> Telegraf transformation.
```
cpu.usage.idle.eu-east 100
=> cpu_usage,region=eu-east,datacenter=1a idle=100
```
There are many more options available,
[More details can be found here](https://github.com/influxdata/influxdb/tree/master/services/graphite#templates)
#### Graphite Configuration:
```toml
[[inputs.exec]]
## Commands array
commands = ["/tmp/test.sh", "/usr/bin/mycollector --foo=bar"]
## measurement name suffix (for separating different commands)
name_suffix = "_mycollector"
## Data format to consume.
## Each data format has it's 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 = "graphite"
## This string will be used to join the matched values.
separator = "_"
## Each template line requires a template pattern. It can have an optional
## filter before the template and separated by spaces. It can also have optional extra
## tags following the template. Multiple tags should be separated by commas and no spaces
## similar to the line protocol format. There can be only one default template.
## Templates support below format:
## 1. filter + template
## 2. filter + template + extra tag(s)
## 3. filter + template with field key
## 4. default template
templates = [
"*.app env.service.resource.measurement",
"stats.* .host.measurement* region=eu-east,agent=sensu",
"stats2.* .host.measurement.field",
"measurement*"
]
```
# Nagios:
There are no additional configuration options for Nagios line-protocol. The
metrics are parsed directly into Telegraf metrics.
Note: Nagios Input Data Formats is only supported in `exec` input plugin.
#### Nagios Configuration:
```toml
[[inputs.exec]]
## Commands array
commands = ["/usr/lib/nagios/plugins/check_load", "-w 5,6,7 -c 7,8,9"]
## measurement name suffix (for separating different commands)
name_suffix = "_mycollector"
## Data format to consume.
## Each data format has it's 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 = "nagios"
```
[metrics]: /docs/METRICS.md

View File

@ -1,34 +1,19 @@
# Telegraf Output Data Formats
# Output Data Formats
Telegraf is able to serialize metrics into the following output data formats:
In addition to output specific data formats, Telegraf supports a set of
standard data formats that may be selected from when configuring many output
plugins.
1. [InfluxDB Line Protocol](https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#influx)
1. [JSON](https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#json)
1. [Graphite](https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md#graphite)
1. [InfluxDB Line Protocol](/plugins/serializers/influx)
1. [Carbon2](/plugins/serializers/carbon2)
1. [Graphite](/plugins/serializers/graphite)
1. [JSON](/plugins/serializers/json)
1. [Prometheus](/plugins/serializers/prometheus)
1. [SplunkMetric](/plugins/serializers/splunkmetric)
1. [Wavefront](/plugins/serializers/wavefront)
Telegraf metrics, like InfluxDB
[points](https://docs.influxdata.com/influxdb/v0.10/write_protocols/line/),
are a combination of four basic parts:
1. Measurement Name
1. Tags
1. Fields
1. Timestamp
In InfluxDB line protocol, these 4 parts are easily defined in textual form:
```
measurement_name[,tag1=val1,...] field1=val1[,field2=val2,...] [timestamp]
```
For Telegraf outputs that write textual data (such as `kafka`, `mqtt`, and `file`),
InfluxDB line protocol was originally the only available output format. But now
we are normalizing telegraf metric "serializers" into a
[plugin-like interface](https://github.com/influxdata/telegraf/tree/master/plugins/serializers)
across all output plugins that can support it.
You will be able to identify a plugin that supports different data formats
by the presence of a `data_format`
config option, for example, in the `file` output plugin:
You will be able to identify the plugins with support by the presence of a
`data_format` config option, for example, in the `file` output plugin:
```toml
[[outputs.file]]
@ -36,115 +21,8 @@ config option, for example, in the `file` output plugin:
files = ["stdout"]
## Data format to output.
## Each data format has it's own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
data_format = "influx"
## Additional configuration options go here
```
Each data_format has an additional set of configuration options available, which
I'll go over below.
# Influx:
There are no additional configuration options for InfluxDB line-protocol. The
metrics are serialized directly into InfluxDB line-protocol.
### Influx Configuration:
```toml
[[outputs.file]]
## Files to write to, "stdout" is a specially handled file.
files = ["stdout", "/tmp/metrics.out"]
## Data format to output.
## Each data format has it's own unique set of configuration options, read
## 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_OUTPUT.md
data_format = "influx"
```
# Graphite:
The Graphite data format translates Telegraf metrics into _dot_ buckets. A
template can be specified for the output of Telegraf metrics into Graphite
buckets. The default template is:
```
template = "host.tags.measurement.field"
```
In the above template, we have four parts:
1. _host_ is a tag key. This can be any tag key that is in the Telegraf
metric(s). If the key doesn't exist, it will be ignored. If it does exist, the
tag value will be filled in.
1. _tags_ is a special keyword that outputs all remaining tag values, separated
by dots and in alphabetical order (by tag key). These will be filled after all
tag keys are filled.
1. _measurement_ is a special keyword that outputs the measurement name.
1. _field_ is a special keyword that outputs the field name.
Which means the following influx metric -> graphite conversion would happen:
```
cpu,cpu=cpu-total,dc=us-east-1,host=tars usage_idle=98.09,usage_user=0.89 1455320660004257758
=>
tars.cpu-total.us-east-1.cpu.usage_user 0.89 1455320690
tars.cpu-total.us-east-1.cpu.usage_idle 98.09 1455320690
```
### Graphite Configuration:
```toml
[[outputs.file]]
## Files to write to, "stdout" is a specially handled file.
files = ["stdout", "/tmp/metrics.out"]
## Data format to output.
## Each data format has it's own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
data_format = "graphite"
# prefix each graphite bucket
prefix = "telegraf"
# graphite template
template = "host.tags.measurement.field"
```
# JSON:
The JSON data format serialized Telegraf metrics in json format. The format is:
```json
{
"fields":{
"field_1":30,
"field_2":4,
"field_N":59,
"n_images":660
},
"name":"docker",
"tags":{
"host":"raynor"
},
"timestamp":1458229140
}
```
### JSON Configuration:
```toml
[[outputs.file]]
## Files to write to, "stdout" is a specially handled file.
files = ["stdout", "/tmp/metrics.out"]
## Data format to output.
## Each data format has it's own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
data_format = "json"
```

76
docs/FAQ.md Normal file
View File

@ -0,0 +1,76 @@
# Frequently Asked Questions
### Q: How can I monitor the Docker Engine Host from within a container?
You will need to setup several volume mounts as well as some environment
variables:
```
docker run --name telegraf
-v /:/hostfs:ro
-v /etc:/hostfs/etc:ro
-v /proc:/hostfs/proc:ro
-v /sys:/hostfs/sys:ro
-v /var:/hostfs/var:ro
-v /run:/hostfs/run:ro
-e HOST_ETC=/hostfs/etc
-e HOST_PROC=/hostfs/proc
-e HOST_SYS=/hostfs/sys
-e HOST_VAR=/hostfs/var
-e HOST_RUN=/hostfs/run
-e HOST_MOUNT_PREFIX=/hostfs
telegraf
```
### Q: Why do I get a "no such host" error resolving hostnames that other
programs can resolve?
Go uses a pure Go resolver by default for [name resolution](https://golang.org/pkg/net/#hdr-Name_Resolution).
This resolver behaves differently than the C library functions but is more
efficient when used with the Go runtime.
If you encounter problems or want to use more advanced name resolution methods
that are unsupported by the pure Go resolver, you can switch to the cgo
resolver.
If running manually set:
```
export GODEBUG=netdns=cgo
```
If running as a service add the environment variable to `/etc/default/telegraf`:
```
GODEBUG=netdns=cgo
```
### Q: How can I manage series cardinality?
High [series cardinality][], when not properly managed, can cause high load on
your database. Telegraf attempts to avoid creating series with high
cardinality, but some monitoring workloads such as tracking containers are are
inherently high cardinality. These workloads can still be monitored, but care
must be taken to manage cardinality growth.
You can use the following techniques to avoid cardinality issues:
- Use [metric filtering][] options to exclude unneeded measurements and tags.
- Write to a database with an appropriate [retention policy][].
- Limit series cardinality in your database using the
[max-series-per-database][] and [max-values-per-tag][] settings.
- Consider using the [Time Series Index][tsi].
- Monitor your databases using the [show cardinality][] commands.
- Consult the [InfluxDB documentation][influx docs] for the most up-to-date techniques.
[series cardinality]: https://docs.influxdata.com/influxdb/v1.7/concepts/glossary/#series-cardinality
[metric filtering]: https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#metric-filtering
[retention policy]: https://docs.influxdata.com/influxdb/latest/guides/downsampling_and_retention/
[max-series-per-database]: https://docs.influxdata.com/influxdb/latest/administration/config/#max-series-per-database-1000000
[max-values-per-tag]: https://docs.influxdata.com/influxdb/latest/administration/config/#max-values-per-tag-100000
[tsi]: https://docs.influxdata.com/influxdb/latest/concepts/time-series-index/
[show cardinality]: https://docs.influxdata.com/influxdb/latest/query_language/spec/#show-cardinality
[influx docs]: https://docs.influxdata.com/influxdb/latest/
### Q: When will the next version be released?
The latest release date estimate can be viewed on the
[milestones](https://github.com/influxdata/telegraf/milestones) page.

149
docs/INPUTS.md Normal file
View File

@ -0,0 +1,149 @@
### Input Plugins
This section is for developers who want to create new collection inputs.
Telegraf is entirely plugin driven. This interface allows for operators to
pick and chose what is gathered and makes it easy for developers
to create new ways of generating metrics.
Plugin authorship is kept as simple as possible to promote people to develop
and submit new inputs.
### Input Plugin Guidelines
- A plugin must conform to the [telegraf.Input][] interface.
- Input Plugins should call `inputs.Add` in their `init` function to register
themselves. See below for a quick example.
- Input Plugins must be added to the
`github.com/influxdata/telegraf/plugins/inputs/all/all.go` file.
- The `SampleConfig` function should return valid toml that describes how the
plugin can be configured. This is included in `telegraf config`. Please
consult the [SampleConfig][] page for the latest style
guidelines.
- The `Description` function should say in one line what this plugin does.
- Follow the recommended [CodeStyle][].
Let's say you've written a plugin that emits metrics about processes on the
current host.
### Input Plugin Example
```go
package simple
// simple.go
import (
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
)
type Simple struct {
Ok bool `toml:"ok"`
}
func (s *Simple) Description() string {
return "a demo plugin"
}
func (s *Simple) SampleConfig() string {
return `
## Indicate if everything is fine
ok = true
`
}
func (s *Simple) Init() error {
return nil
}
func (s *Simple) Gather(acc telegraf.Accumulator) error {
if s.Ok {
acc.AddFields("state", map[string]interface{}{"value": "pretty good"}, nil)
} else {
acc.AddFields("state", map[string]interface{}{"value": "not great"}, nil)
}
return nil
}
func init() {
inputs.Add("simple", func() telegraf.Input { return &Simple{} })
}
```
### Development
* Run `make static` followed by `make plugin-[pluginName]` to spin up a docker
dev environment using docker-compose.
* ***[Optional]*** When developing a plugin, add a `dev` directory with a
`docker-compose.yml` and `telegraf.conf` as well as any other supporting
files, where sensible.
### Typed Metrics
In addition the the `AddFields` function, the accumulator also supports
functions to add typed metrics: `AddGauge`, `AddCounter`, etc. Metric types
are ignored by the InfluxDB output, but can be used for other outputs, such as
[prometheus][prom metric types].
### Data Formats
Some input plugins, such as the [exec][] plugin, can accept any supported
[input data formats][].
In order to enable this, you must specify a `SetParser(parser parsers.Parser)`
function on the plugin object (see the exec plugin for an example), as well as
defining `parser` as a field of the object.
You can then utilize the parser internally in your plugin, parsing data as you
see fit. Telegraf's configuration layer will take care of instantiating and
creating the `Parser` object.
Add the following to the `SampleConfig()`:
```toml
## Data format to consume.
## 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 = "influx"
```
### Service Input Plugins
This section is for developers who want to create new "service" collection
inputs. A service plugin differs from a regular plugin in that it operates a
background service while Telegraf is running. One example would be the
`statsd` plugin, which operates a statsd server.
Service Input Plugins are substantially more complicated than a regular
plugin, as they will require threads and locks to verify data integrity.
Service Input Plugins should be avoided unless there is no way to create their
behavior with a regular plugin.
To create a Service Input implement the [telegraf.ServiceInput][] interface.
### Metric Tracking
Metric Tracking provides a system to be notified when metrics have been
successfully written to their outputs or otherwise discarded. This allows
inputs to be created that function as reliable queue consumers.
To get started with metric tracking begin by calling `WithTracking` on the
[telegraf.Accumulator][]. Add metrics using the `AddTrackingMetricGroup`
function on the returned [telegraf.TrackingAccumulator][] and store the
`TrackingID`. The `Delivered()` channel will return a type with information
about the final delivery status of the metric group.
Check the [amqp_consumer][] for an example implementation.
[exec]: https://github.com/influxdata/telegraf/tree/master/plugins/inputs/exec
[amqp_consumer]: https://github.com/influxdata/telegraf/tree/master/plugins/inputs/amqp_consumer
[prom metric types]: https://prometheus.io/docs/concepts/metric_types/
[input data formats]: https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
[SampleConfig]: https://github.com/influxdata/telegraf/wiki/SampleConfig
[CodeStyle]: https://github.com/influxdata/telegraf/wiki/CodeStyle
[telegraf.Input]: https://godoc.org/github.com/influxdata/telegraf#Input
[telegraf.ServiceInput]: https://godoc.org/github.com/influxdata/telegraf#ServiceInput
[telegraf.Accumulator]: https://godoc.org/github.com/influxdata/telegraf#Accumulator
[telegraf.TrackingAccumulator]: https://godoc.org/github.com/influxdata/telegraf#Accumulator

View File

@ -1,33 +1,172 @@
# List
- github.com/Shopify/sarama [MIT LICENSE](https://github.com/Shopify/sarama/blob/master/MIT-LICENSE)
- github.com/Sirupsen/logrus [MIT LICENSE](https://github.com/Sirupsen/logrus/blob/master/LICENSE)
- github.com/armon/go-metrics [MIT LICENSE](https://github.com/armon/go-metrics/blob/master/LICENSE)
- github.com/boltdb/bolt [MIT LICENSE](https://github.com/boltdb/bolt/blob/master/LICENSE)
- github.com/cenkalti/backoff [MIT LICENSE](https://github.com/cenkalti/backoff/blob/master/LICENSE)
- github.com/dancannon/gorethink [APACHE LICENSE](https://github.com/dancannon/gorethink/blob/master/LICENSE)
- github.com/eapache/go-resiliency [MIT LICENSE](https://github.com/eapache/go-resiliency/blob/master/LICENSE)
- github.com/eapache/queue [MIT LICENSE](https://github.com/eapache/queue/blob/master/LICENSE)
- github.com/fsouza/go-dockerclient [BSD LICENSE](https://github.com/fsouza/go-dockerclient/blob/master/LICENSE)
- github.com/go-sql-driver/mysql [MPL LICENSE](https://github.com/go-sql-driver/mysql/blob/master/LICENSE)
- github.com/gogo/protobuf [BSD LICENSE](https://github.com/gogo/protobuf/blob/master/LICENSE)
- github.com/golang/protobuf [BSD LICENSE](https://github.com/golang/protobuf/blob/master/LICENSE)
- github.com/golang/snappy [BSD LICENSE](https://github.com/golang/snappy/blob/master/LICENSE)
- github.com/hashicorp/go-msgpack [BSD LICENSE](https://github.com/hashicorp/go-msgpack/blob/master/LICENSE)
- github.com/hashicorp/raft [MPL LICENSE](https://github.com/hashicorp/raft/blob/master/LICENSE)
- github.com/hashicorp/raft-boltdb [MPL LICENSE](https://github.com/hashicorp/raft-boltdb/blob/master/LICENSE)
- github.com/kardianos/service [ZLIB LICENSE](https://github.com/kardianos/service/blob/master/LICENSE) (License not named but matches word for word with ZLib)
- github.com/kballard/go-shellquote [MIT LICENSE](https://github.com/kballard/go-shellquote/blob/master/LICENSE)
- github.com/lib/pq [MIT LICENSE](https://github.com/lib/pq/blob/master/LICENSE.md)
- github.com/matttproud/golang_protobuf_extensions [APACHE LICENSE](https://github.com/matttproud/golang_protobuf_extensions/blob/master/LICENSE)
- github.com/naoina/go-stringutil [MIT LICENSE](https://github.com/naoina/go-stringutil/blob/master/LICENSE)
- github.com/naoina/toml [MIT LICENSE](https://github.com/naoina/toml/blob/master/LICENSE)
- github.com/prometheus/client_golang [APACHE LICENSE](https://github.com/prometheus/client_golang/blob/master/LICENSE)
- github.com/samuel/go-zookeeper [BSD LICENSE](https://github.com/samuel/go-zookeeper/blob/master/LICENSE)
- github.com/stretchr/objx [MIT LICENSE](github.com/stretchr/objx)
- github.com/stretchr/testify [MIT LICENSE](https://github.com/stretchr/testify/blob/master/LICENCE.txt)
- github.com/wvanbergen/kafka [MIT LICENSE](https://github.com/wvanbergen/kafka/blob/master/LICENSE)
- github.com/wvanbergen/kazoo-go [MIT LICENSE](https://github.com/wvanbergen/kazoo-go/blob/master/MIT-LICENSE)
- gopkg.in/dancannon/gorethink.v1 [APACHE LICENSE](https://github.com/dancannon/gorethink/blob/v1.1.2/LICENSE)
- gopkg.in/mgo.v2 [BSD LICENSE](https://github.com/go-mgo/mgo/blob/v2/LICENSE)
- golang.org/x/crypto/ [BSD LICENSE](https://github.com/golang/crypto/blob/master/LICENSE)
# Licenses of dependencies
When distributed in a binary form, Telegraf may contain portions of the
following works:
- cloud.google.com/go [Apache License 2.0](https://github.com/googleapis/google-cloud-go/blob/master/LICENSE)
- code.cloudfoundry.org/clock [Apache License 2.0](https://github.com/cloudfoundry/clock/blob/master/LICENSE)
- collectd.org [MIT License](https://git.octo.it/?p=collectd.git;a=blob;f=COPYING;hb=HEAD)
- github.com/Azure/azure-amqp-common-go [MIT License](https://github.com/Azure/azure-amqp-common-go/blob/master/LICENSE)
- github.com/Azure/azure-event-hubs-go [MIT License](https://github.com/Azure/azure-event-hubs-go/blob/master/LICENSE)
- github.com/Azure/azure-pipeline-go [MIT License](https://github.com/Azure/azure-pipeline-go/blob/master/LICENSE)
- github.com/Azure/azure-sdk-for-go [Apache License 2.0](https://github.com/Azure/azure-sdk-for-go/blob/master/LICENSE)
- github.com/Azure/azure-storage-queue-go [MIT License](https://github.com/Azure/azure-storage-queue-go/blob/master/LICENSE)
- github.com/Azure/go-amqp [MIT License](https://github.com/Azure/go-amqp/blob/master/LICENSE)
- github.com/Azure/go-autorest [Apache License 2.0](https://github.com/Azure/go-autorest/blob/master/LICENSE)
- github.com/Mellanox/rdmamap [Apache License 2.0](https://github.com/Mellanox/rdmamap/blob/master/LICENSE)
- github.com/Microsoft/ApplicationInsights-Go [MIT License](https://github.com/Microsoft/ApplicationInsights-Go/blob/master/LICENSE)
- github.com/Microsoft/go-winio [MIT License](https://github.com/Microsoft/go-winio/blob/master/LICENSE)
- github.com/Shopify/sarama [MIT License](https://github.com/Shopify/sarama/blob/master/LICENSE)
- github.com/StackExchange/wmi [MIT License](https://github.com/StackExchange/wmi/blob/master/LICENSE)
- github.com/aerospike/aerospike-client-go [Apache License 2.0](https://github.com/aerospike/aerospike-client-go/blob/master/LICENSE)
- github.com/alecthomas/units [MIT License](https://github.com/alecthomas/units/blob/master/COPYING)
- github.com/amir/raidman [The Unlicense](https://github.com/amir/raidman/blob/master/UNLICENSE)
- github.com/apache/thrift [Apache License 2.0](https://github.com/apache/thrift/blob/master/LICENSE)
- github.com/aristanetworks/glog [Apache License 2.0](https://github.com/aristanetworks/glog/blob/master/LICENSE)
- github.com/aristanetworks/goarista [Apache License 2.0](https://github.com/aristanetworks/goarista/blob/master/COPYING)
- github.com/aws/aws-sdk-go [Apache License 2.0](https://github.com/aws/aws-sdk-go/blob/master/LICENSE.txt)
- github.com/benbjohnson/clock [MIT License](https://github.com/benbjohnson/clock/blob/master/LICENSE)
- github.com/beorn7/perks [MIT License](https://github.com/beorn7/perks/blob/master/LICENSE)
- github.com/caio/go-tdigest [MIT License](https://github.com/caio/go-tdigest/blob/master/LICENSE)
- github.com/cenkalti/backoff [MIT License](https://github.com/cenkalti/backoff/blob/master/LICENSE)
- github.com/cespare/xxhash [MIT License](https://github.com/cespare/xxhash/blob/master/LICENSE.txt)
- github.com/cisco-ie/nx-telemetry-proto [Apache License 2.0](https://github.com/cisco-ie/nx-telemetry-proto/blob/master/LICENSE)
- github.com/couchbase/go-couchbase [MIT License](https://github.com/couchbase/go-couchbase/blob/master/LICENSE)
- github.com/couchbase/gomemcached [MIT License](https://github.com/couchbase/gomemcached/blob/master/LICENSE)
- github.com/couchbase/goutils [COUCHBASE INC. COMMUNITY EDITION LICENSE](https://github.com/couchbase/goutils/blob/master/LICENSE.md)
- github.com/davecgh/go-spew [ISC License](https://github.com/davecgh/go-spew/blob/master/LICENSE)
- github.com/denisenkom/go-mssqldb [BSD 3-Clause "New" or "Revised" License](https://github.com/denisenkom/go-mssqldb/blob/master/LICENSE.txt)
- github.com/devigned/tab [MIT License](https://github.com/devigned/tab/blob/master/LICENSE)
- github.com/dgrijalva/jwt-go [MIT License](https://github.com/dgrijalva/jwt-go/blob/master/LICENSE)
- github.com/dimchansky/utfbom [Apache License 2.0](https://github.com/dimchansky/utfbom/blob/master/LICENSE)
- github.com/docker/distribution [Apache License 2.0](https://github.com/docker/distribution/blob/master/LICENSE)
- github.com/docker/docker [Apache License 2.0](https://github.com/docker/docker/blob/master/LICENSE)
- github.com/docker/go-connections [Apache License 2.0](https://github.com/docker/go-connections/blob/master/LICENSE)
- github.com/docker/go-units [Apache License 2.0](https://github.com/docker/go-units/blob/master/LICENSE)
- github.com/docker/libnetwork [Apache License 2.0](https://github.com/docker/libnetwork/blob/master/LICENSE)
- github.com/eapache/go-resiliency [MIT License](https://github.com/eapache/go-resiliency/blob/master/LICENSE)
- github.com/eapache/go-xerial-snappy [MIT License](https://github.com/eapache/go-xerial-snappy/blob/master/LICENSE)
- github.com/eapache/queue [MIT License](https://github.com/eapache/queue/blob/master/LICENSE)
- github.com/eclipse/paho.mqtt.golang [Eclipse Public License - v 1.0](https://github.com/eclipse/paho.mqtt.golang/blob/master/LICENSE)
- github.com/ericchiang/k8s [Apache License 2.0](https://github.com/ericchiang/k8s/blob/master/LICENSE)
- github.com/ghodss/yaml [MIT License](https://github.com/ghodss/yaml/blob/master/LICENSE)
- github.com/glinton/ping [MIT License](https://github.com/glinton/ping/blob/master/LICENSE)
- github.com/go-logfmt/logfmt [MIT License](https://github.com/go-logfmt/logfmt/blob/master/LICENSE)
- github.com/go-ole/go-ole [MIT License](https://github.com/go-ole/go-ole/blob/master/LICENSE)
- github.com/go-redis/redis [BSD 2-Clause "Simplified" License](https://github.com/go-redis/redis/blob/master/LICENSE)
- github.com/go-sql-driver/mysql [Mozilla Public License 2.0](https://github.com/go-sql-driver/mysql/blob/master/LICENSE)
- github.com/goburrow/modbus [BSD 3-Clause "New" or "Revised" License](https://github.com/goburrow/modbus/blob/master/LICENSE)
- github.com/goburrow/serial [MIT License](https://github.com/goburrow/serial/LICENSE)
- github.com/gobwas/glob [MIT License](https://github.com/gobwas/glob/blob/master/LICENSE)
- github.com/gofrs/uuid [MIT License](https://github.com/gofrs/uuid/blob/master/LICENSE)
- github.com/gogo/protobuf [BSD 3-Clause Clear License](https://github.com/gogo/protobuf/blob/master/LICENSE)
- github.com/golang/geo [Apache License 2.0](https://github.com/golang/geo/blob/master/LICENSE)
- github.com/golang/groupcache [Apache License 2.0](https://github.com/golang/groupcache/blob/master/LICENSE)
- github.com/golang/mock [Apache License 2.0](https://github.com/golang/mock/blob/master/LICENSE)
- github.com/golang/protobuf [BSD 3-Clause "New" or "Revised" License](https://github.com/golang/protobuf/blob/master/LICENSE)
- github.com/golang/snappy [BSD 3-Clause "New" or "Revised" License](https://github.com/golang/snappy/blob/master/LICENSE)
- github.com/google/go-cmp [BSD 3-Clause "New" or "Revised" License](https://github.com/google/go-cmp/blob/master/LICENSE)
- github.com/google/go-github [BSD 3-Clause "New" or "Revised" License](https://github.com/google/go-github/blob/master/LICENSE)
- github.com/google/go-querystring [BSD 3-Clause "New" or "Revised" License](https://github.com/google/go-querystring/blob/master/LICENSE)
- github.com/googleapis/gax-go [BSD 3-Clause "New" or "Revised" License](https://github.com/googleapis/gax-go/blob/master/LICENSE)
- github.com/gorilla/mux [BSD 3-Clause "New" or "Revised" License](https://github.com/gorilla/mux/blob/master/LICENSE)
- github.com/hailocab/go-hostpool [MIT License](https://github.com/hailocab/go-hostpool/blob/master/LICENSE)
- github.com/harlow/kinesis-consumer [MIT License](https://github.com/harlow/kinesis-consumer/blob/master/MIT-LICENSE)
- github.com/hashicorp/consul [Mozilla Public License 2.0](https://github.com/hashicorp/consul/blob/master/LICENSE)
- github.com/hashicorp/go-cleanhttp [Mozilla Public License 2.0](https://github.com/hashicorp/go-cleanhttp/blob/master/LICENSE)
- github.com/hashicorp/go-rootcerts [Mozilla Public License 2.0](https://github.com/hashicorp/go-rootcerts/blob/master/LICENSE)
- github.com/hashicorp/go-uuid [Mozilla Public License 2.0](https://github.com/hashicorp/go-uuid/LICENSE)
- github.com/hashicorp/serf [Mozilla Public License 2.0](https://github.com/hashicorp/serf/blob/master/LICENSE)
- github.com/influxdata/go-syslog [MIT License](https://github.com/influxdata/go-syslog/blob/develop/LICENSE)
- github.com/influxdata/tail [MIT License](https://github.com/influxdata/tail/blob/master/LICENSE.txt)
- github.com/influxdata/toml [MIT License](https://github.com/influxdata/toml/blob/master/LICENSE)
- github.com/influxdata/wlog [MIT License](https://github.com/influxdata/wlog/blob/master/LICENSE)
- github.com/jackc/pgx [MIT License](https://github.com/jackc/pgx/blob/master/LICENSE)
- github.com/jcmturner/gofork [BSD 3-Clause "New" or "Revised" License](https://github.com/jcmturner/gofork/blob/master/LICENSE)
- github.com/jmespath/go-jmespath [Apache License 2.0](https://github.com/jmespath/go-jmespath/blob/master/LICENSE)
- github.com/jpillora/backoff [MIT License](https://github.com/jpillora/backoff/blob/master/LICENSE)
- github.com/kardianos/service [zlib License](https://github.com/kardianos/service/blob/master/LICENSE)
- github.com/karrick/godirwalk [BSD 2-Clause "Simplified" License](https://github.com/karrick/godirwalk/blob/master/LICENSE)
- github.com/kballard/go-shellquote [MIT License](https://github.com/kballard/go-shellquote/blob/master/LICENSE)
- github.com/klauspost/compress [BSD 3-Clause Clear License](https://github.com/klauspost/compress/blob/master/LICENSE)
- github.com/konsorten/go-windows-terminal-sequences [MIT License](https://github.com/konsorten/go-windows-terminal-sequences/blob/master/LICENSE)
- github.com/kubernetes/apimachinery [Apache License 2.0](https://github.com/kubernetes/apimachinery/blob/master/LICENSE)
- github.com/leodido/ragel-machinery [MIT License](https://github.com/leodido/ragel-machinery/blob/develop/LICENSE)
- github.com/mailru/easyjson [MIT License](https://github.com/mailru/easyjson/blob/master/LICENSE)
- github.com/matttproud/golang_protobuf_extensions [Apache License 2.0](https://github.com/matttproud/golang_protobuf_extensions/blob/master/LICENSE)
- github.com/mdlayher/apcupsd [MIT License](https://github.com/mdlayher/apcupsd/blob/master/LICENSE.md)
- github.com/mdlayher/genetlink [MIT License](https://github.com/mdlayher/genetlink/blob/master/LICENSE.md)
- github.com/mdlayher/netlink [MIT License](https://github.com/mdlayher/netlink/blob/master/LICENSE.md)
- github.com/miekg/dns [BSD 3-Clause Clear License](https://github.com/miekg/dns/blob/master/LICENSE)
- github.com/mitchellh/go-homedir [MIT License](https://github.com/mitchellh/go-homedir/blob/master/LICENSE)
- github.com/mitchellh/mapstructure [MIT License](https://github.com/mitchellh/mapstructure/blob/master/LICENSE)
- github.com/multiplay/go-ts3 [BSD 2-Clause "Simplified" License](https://github.com/multiplay/go-ts3/blob/master/LICENSE)
- github.com/naoina/go-stringutil [MIT License](https://github.com/naoina/go-stringutil/blob/master/LICENSE)
- github.com/nats-io/jwt [Apache License 2.0](https://github.com/nats-io/jwt/blob/master/LICENSE)
- github.com/nats-io/nats-server [Apache License 2.0](https://github.com/nats-io/nats-server/blob/master/LICENSE)
- github.com/nats-io/nats.go [Apache License 2.0](https://github.com/nats-io/nats.go/blob/master/LICENSE)
- github.com/nats-io/nkeys [Apache License 2.0](https://github.com/nats-io/nkeys/blob/master/LICENSE)
- github.com/nats-io/nuid [Apache License 2.0](https://github.com/nats-io/nuid/blob/master/LICENSE)
- github.com/newrelic/newrelic-telemetry-sdk-go [Apache License 2.0](https://github.com/newrelic/newrelic-telemetry-sdk-go/blob/master/LICENSE.md)
- github.com/nsqio/go-nsq [MIT License](https://github.com/nsqio/go-nsq/blob/master/LICENSE)
- github.com/openconfig/gnmi [Apache License 2.0](https://github.com/openconfig/gnmi/blob/master/LICENSE)
- github.com/opencontainers/go-digest [Apache License 2.0](https://github.com/opencontainers/go-digest/blob/master/LICENSE)
- github.com/opencontainers/image-spec [Apache License 2.0](https://github.com/opencontainers/image-spec/blob/master/LICENSE)
- github.com/openzipkin/zipkin-go-opentracing [MIT License](https://github.com/openzipkin/zipkin-go-opentracing/blob/master/LICENSE)
- github.com/pierrec/lz4 [BSD 3-Clause "New" or "Revised" License](https://github.com/pierrec/lz4/blob/master/LICENSE)
- github.com/pkg/errors [BSD 2-Clause "Simplified" License](https://github.com/pkg/errors/blob/master/LICENSE)
- github.com/pmezard/go-difflib [BSD 3-Clause Clear License](https://github.com/pmezard/go-difflib/blob/master/LICENSE)
- github.com/prometheus/client_golang [Apache License 2.0](https://github.com/prometheus/client_golang/blob/master/LICENSE)
- github.com/prometheus/client_model [Apache License 2.0](https://github.com/prometheus/client_model/blob/master/LICENSE)
- github.com/prometheus/common [Apache License 2.0](https://github.com/prometheus/common/blob/master/LICENSE)
- github.com/prometheus/procfs [Apache License 2.0](https://github.com/prometheus/procfs/blob/master/LICENSE)
- github.com/rcrowley/go-metrics [MIT License](https://github.com/rcrowley/go-metrics/blob/master/LICENSE)
- github.com/safchain/ethtool [Apache License 2.0](https://github.com/safchain/ethtool/blob/master/LICENSE)
- github.com/samuel/go-zookeeper [BSD 3-Clause Clear License](https://github.com/samuel/go-zookeeper/blob/master/LICENSE)
- github.com/shirou/gopsutil [BSD 3-Clause Clear License](https://github.com/shirou/gopsutil/blob/master/LICENSE)
- github.com/sirupsen/logrus [MIT License](https://github.com/sirupsen/logrus/blob/master/LICENSE)
- github.com/soniah/gosnmp [BSD 2-Clause "Simplified" License](https://github.com/soniah/gosnmp/blob/master/LICENSE)
- github.com/streadway/amqp [BSD 2-Clause "Simplified" License](https://github.com/streadway/amqp/blob/master/LICENSE)
- github.com/stretchr/objx [MIT License](https://github.com/stretchr/objx/blob/master/LICENSE)
- github.com/stretchr/testify [custom -- permissive](https://github.com/stretchr/testify/blob/master/LICENSE)
- github.com/tidwall/gjson [MIT License](https://github.com/tidwall/gjson/blob/master/LICENSE)
- github.com/tidwall/match [MIT License](https://github.com/tidwall/match/blob/master/LICENSE)
- github.com/tidwall/pretty [MIT License](https://github.com/tidwall/pretty/blob/master/LICENSE)
- github.com/vishvananda/netlink [Apache License 2.0](https://github.com/vishvananda/netlink/blob/master/LICENSE)
- github.com/vishvananda/netns [Apache License 2.0](https://github.com/vishvananda/netns/blob/master/LICENSE)
- github.com/vjeantet/grok [Apache License 2.0](https://github.com/vjeantet/grok/blob/master/LICENSE)
- github.com/vmware/govmomi [Apache License 2.0](https://github.com/vmware/govmomi/blob/master/LICENSE.txt)
- github.com/wavefronthq/wavefront-sdk-go [Apache License 2.0](https://github.com/wavefrontHQ/wavefront-sdk-go/blob/master/LICENSE)
- github.com/wvanbergen/kafka [MIT License](https://github.com/wvanbergen/kafka/blob/master/LICENSE)
- github.com/wvanbergen/kazoo-go [MIT License](https://github.com/wvanbergen/kazoo-go/blob/master/MIT-LICENSE)
- github.com/yuin/gopher-lua [MIT License](https://github.com/yuin/gopher-lua/blob/master/LICENSE)
- go.opencensus.io [Apache License 2.0](https://github.com/census-instrumentation/opencensus-go/blob/master/LICENSE)
- golang.org/x/crypto [BSD 3-Clause Clear License](https://github.com/golang/crypto/blob/master/LICENSE)
- golang.org/x/net [BSD 3-Clause Clear License](https://github.com/golang/net/blob/master/LICENSE)
- golang.org/x/oauth2 [BSD 3-Clause "New" or "Revised" License](https://github.com/golang/oauth2/blob/master/LICENSE)
- golang.org/x/sync [BSD 3-Clause "New" or "Revised" License](https://github.com/golang/sync/blob/master/LICENSE)
- golang.org/x/sys [BSD 3-Clause Clear License](https://github.com/golang/sys/blob/master/LICENSE)
- golang.org/x/text [BSD 3-Clause Clear License](https://github.com/golang/text/blob/master/LICENSE)
- golang.org/x/time [BSD 3-Clause Clear License](https://github.com/golang/time/blob/master/LICENSE)
- golang.zx2c4.com/wireguard [MIT License](https://github.com/WireGuard/wgctrl-go/blob/master/LICENSE.md)
- golang.zx2c4.com/wireguard/wgctrl [MIT License](https://github.com/WireGuard/wgctrl-go/blob/master/LICENSE.md)
- google.golang.org/api [BSD 3-Clause "New" or "Revised" License](https://github.com/googleapis/google-api-go-client/blob/master/LICENSE)
- google.golang.org/genproto [Apache License 2.0](https://github.com/google/go-genproto/blob/master/LICENSE)
- google.golang.org/grpc [Apache License 2.0](https://github.com/grpc/grpc-go/blob/master/LICENSE)
- gopkg.in/asn1-ber.v1 [MIT License](https://github.com/go-asn1-ber/asn1-ber/blob/v1.3/LICENSE)
- gopkg.in/fatih/pool.v2 [MIT License](https://github.com/fatih/pool/blob/v2.0.0/LICENSE)
- gopkg.in/fsnotify.v1 [BSD 3-Clause "New" or "Revised" License](https://github.com/fsnotify/fsnotify/blob/v1.4.7/LICENSE)
- gopkg.in/gorethink/gorethink.v3 [Apache License 2.0](https://github.com/rethinkdb/rethinkdb-go/blob/v3.0.5/LICENSE)
- gopkg.in/inf.v0 [BSD 3-Clause "New" or "Revised" License](https://github.com/go-inf/inf/blob/v0.9.1/LICENSE)
- gopkg.in/jcmturner/aescts.v1 [Apache License 2.0](https://github.com/jcmturner/aescts/blob/v1.0.1/LICENSE)
- gopkg.in/jcmturner/dnsutils.v1 [Apache License 2.0](https://github.com/jcmturner/dnsutils/blob/v1.0.1/LICENSE)
- gopkg.in/jcmturner/gokrb5.v7 [Apache License 2.0](https://github.com/jcmturner/gokrb5/tree/v7.5.0/LICENSE)
- gopkg.in/jcmturner/rpc.v1 [Apache License 2.0](https://github.com/jcmturner/rpc/blob/v1.1.0/LICENSE)
- gopkg.in/ldap.v3 [MIT License](https://github.com/go-ldap/ldap/blob/v3.1.7/LICENSE)
- gopkg.in/mgo.v2 [BSD 2-Clause "Simplified" License](https://github.com/go-mgo/mgo/blob/v2/LICENSE)
- gopkg.in/olivere/elastic.v5 [MIT License](https://github.com/olivere/elastic/blob/v5.0.76/LICENSE)
- gopkg.in/tomb.v1 [BSD 3-Clause Clear License](https://github.com/go-tomb/tomb/blob/v1/LICENSE)
- gopkg.in/yaml.v2 [Apache License 2.0](https://github.com/go-yaml/yaml/blob/v2.2.2/LICENSE)
## telegraf used and modified code from these projects
- github.com/DataDog/datadog-agent [Apache License 2.0](https://github.com/DataDog/datadog-agent/LICENSE)

22
docs/METRICS.md Normal file
View File

@ -0,0 +1,22 @@
# Metrics
Telegraf metrics are the internal representation used to model data during
processing. Metrics are closely based on InfluxDB's data model and contain
four main components:
- **Measurement Name**: Description and namespace for the metric.
- **Tags**: Key/Value string pairs and usually used to identify the
metric.
- **Fields**: Key/Value pairs that are typed and usually contain the
metric data.
- **Timestamp**: Date and time associated with the fields.
This metric type exists only in memory and must be converted to a concrete
representation in order to be transmitted or viewed. To achieve this we
provide several [output data formats][] sometimes referred to as
*serializers*. Our default serializer converts to [InfluxDB Line
Protocol][line protocol] which provides a high performance and one-to-one
direct mapping from Telegraf metrics.
[output data formats]: /docs/DATA_FORMATS_OUTPUT.md
[line protocol]: /plugins/serializers/influx

114
docs/OUTPUTS.md Normal file
View File

@ -0,0 +1,114 @@
### Output Plugins
This section is for developers who want to create a new output sink. Outputs
are created in a similar manner as collection plugins, and their interface has
similar constructs.
### Output Plugin Guidelines
- An output must conform to the [telegraf.Output][] interface.
- Outputs should call `outputs.Add` in their `init` function to register
themselves. See below for a quick example.
- To be available within Telegraf itself, plugins must add themselves to the
`github.com/influxdata/telegraf/plugins/outputs/all/all.go` file.
- The `SampleConfig` function should return valid toml that describes how the
plugin can be configured. This is included in `telegraf config`. Please
consult the [SampleConfig][] page for the latest style guidelines.
- The `Description` function should say in one line what this output does.
- Follow the recommended [CodeStyle][].
### Output Plugin Example
```go
package simpleoutput
// simpleoutput.go
import (
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/outputs"
)
type Simple struct {
Ok bool `toml:"ok"`
}
func (s *Simple) Description() string {
return "a demo output"
}
func (s *Simple) SampleConfig() string {
return `
ok = true
`
}
func (s *Simple) Init() error {
return nil
}
func (s *Simple) Connect() error {
// Make a connection to the URL here
return nil
}
func (s *Simple) Close() error {
// Close connection to the URL here
return nil
}
func (s *Simple) Write(metrics []telegraf.Metric) error {
for _, metric := range metrics {
// write `metric` to the output sink here
}
return nil
}
func init() {
outputs.Add("simpleoutput", func() telegraf.Output { return &Simple{} })
}
```
## Data Formats
Some output plugins, such as the [file][] plugin, can write in any supported
[output data formats][].
In order to enable this, you must specify a
`SetSerializer(serializer serializers.Serializer)`
function on the plugin object (see the file plugin for an example), as well as
defining `serializer` as a field of the object.
You can then utilize the serializer internally in your plugin, serializing data
before it's written. Telegraf's configuration layer will take care of
instantiating and creating the `Serializer` object.
You should also add the following to your `SampleConfig()`:
```toml
## Data format to output.
## 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_OUTPUT.md
data_format = "influx"
```
## Flushing Metrics to Outputs
Metrics are flushed to outputs when any of the following events happen:
- `flush_interval + rand(flush_jitter)` has elapsed since start or the last flush interval
- At least `metric_batch_size` count of metrics are waiting in the buffer
- The telegraf process has received a SIGUSR1 signal
Note that if the flush takes longer than the `agent.interval` to write the metrics
to the output, you'll see a message saying the output `did not complete within its
flush interval`. This may mean your output is not keeping up with the flow of metrics,
and you may want to look into enabling compression, reducing the size of your metrics,
or investigate other reasons why the writes might be taking longer than expected.
[file]: https://github.com/influxdata/telegraf/tree/master/plugins/inputs/file
[output data formats]: https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
[SampleConfig]: https://github.com/influxdata/telegraf/wiki/SampleConfig
[CodeStyle]: https://github.com/influxdata/telegraf/wiki/CodeStyle
[telegraf.Output]: https://godoc.org/github.com/influxdata/telegraf#Output

69
docs/PROCESSORS.md Normal file
View File

@ -0,0 +1,69 @@
### Processor Plugins
This section is for developers who want to create a new processor plugin.
### Processor Plugin Guidelines
* A processor must conform to the [telegraf.Processor][] interface.
* Processors should call `processors.Add` in their `init` function to register
themselves. See below for a quick example.
* To be available within Telegraf itself, plugins must add themselves to the
`github.com/influxdata/telegraf/plugins/processors/all/all.go` file.
* The `SampleConfig` function should return valid toml that describes how the
processor can be configured. This is include in the output of `telegraf
config`.
- The `SampleConfig` function should return valid toml that describes how the
plugin can be configured. This is included in `telegraf config`. Please
consult the [SampleConfig][] page for the latest style guidelines.
* The `Description` function should say in one line what this processor does.
- Follow the recommended [CodeStyle][].
### Processor Plugin Example
```go
package printer
// printer.go
import (
"fmt"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/processors"
)
type Printer struct {
}
var sampleConfig = `
`
func (p *Printer) SampleConfig() string {
return sampleConfig
}
func (p *Printer) Description() string {
return "Print all metrics that pass through this filter."
}
func (p *Printer) Init() error {
return nil
}
func (p *Printer) Apply(in ...telegraf.Metric) []telegraf.Metric {
for _, metric := range in {
fmt.Println(metric.String())
}
return in
}
func init() {
processors.Add("printer", func() telegraf.Processor {
return &Printer{}
})
}
```
[SampleConfig]: https://github.com/influxdata/telegraf/wiki/SampleConfig
[CodeStyle]: https://github.com/influxdata/telegraf/wiki/CodeStyle
[telegraf.Processor]: https://godoc.org/github.com/influxdata/telegraf#Processor

24
docs/PROFILING.md Normal file
View File

@ -0,0 +1,24 @@
# Telegraf profiling
Telegraf uses the standard package `net/http/pprof`. This package serves via its HTTP server runtime profiling data in the format expected by the pprof visualization tool.
By default, the profiling is turned off.
To enable profiling you need to specify address to config parameter `pprof-addr`, for example:
```
telegraf --config telegraf.conf --pprof-addr localhost:6060
```
There are several paths to get different profiling information:
To look at the heap profile:
`go tool pprof http://localhost:6060/debug/pprof/heap`
or to look at a 30-second CPU profile:
`go tool pprof http://localhost:6060/debug/pprof/profile?seconds=30`
To view all available profiles, open `http://localhost:6060/debug/pprof/` in your browser.

21
docs/README.md Normal file
View File

@ -0,0 +1,21 @@
# Telegraf
- Concepts
- [Metrics][metrics]
- [Input Data Formats][parsers]
- [Output Data Formats][serializers]
- [Aggregators & Processors][aggproc]
- Administration
- [Configuration][conf]
- [Profiling][profiling]
- [Windows Service][winsvc]
- [FAQ][faq]
[conf]: /docs/CONFIGURATION.md
[metrics]: /docs/METRICS.md
[parsers]: /docs/DATA_FORMATS_INPUT.md
[serializers]: /docs/DATA_FORMATS_OUTPUT.md
[aggproc]: /docs/AGGREGATORS_AND_PROCESSORS.md
[profiling]: /docs/PROFILING.md
[winsvc]: /docs/WINDOWS_SERVICE.md
[faq]: /docs/FAQ.md

135
docs/TEMPLATE_PATTERN.md Normal file
View File

@ -0,0 +1,135 @@
# Template Patterns
Template patterns are a mini language that describes how a dot delimited
string should be mapped to and from [metrics][].
A template has the form:
```
"host.mytag.mytag.measurement.measurement.field*"
```
Where the following keywords can be set:
1. `measurement`: specifies that this section of the graphite bucket corresponds
to the measurement name. This can be specified multiple times.
2. `field`: specifies that this section of the graphite bucket corresponds
to the field name. This can be specified multiple times.
3. `measurement*`: specifies that all remaining elements of the graphite bucket
correspond to the measurement name.
4. `field*`: specifies that all remaining elements of the graphite bucket
correspond to the field name.
Any part of the template that is not a keyword is treated as a tag key. This
can also be specified multiple times.
**NOTE:** `field*` cannot be used in conjunction with `measurement*`.
### Examples
#### Measurement & Tag Templates
The most basic template is to specify a single transformation to apply to all
incoming metrics. So the following template:
```toml
templates = [
"region.region.measurement*"
]
```
would result in the following Graphite -> Telegraf transformation.
```
us.west.cpu.load 100
=> cpu.load,region=us.west value=100
```
Multiple templates can also be specified, but these should be differentiated
using _filters_ (see below for more details)
```toml
templates = [
"*.*.* region.region.measurement", # <- all 3-part measurements will match this one.
"*.*.*.* region.region.host.measurement", # <- all 4-part measurements will match this one.
]
```
#### Field Templates
The field keyword tells Telegraf to give the metric that field name.
So the following template:
```toml
separator = "_"
templates = [
"measurement.measurement.field.field.region"
]
```
would result in the following Graphite -> Telegraf transformation.
```
cpu.usage.idle.percent.eu-east 100
=> cpu_usage,region=eu-east idle_percent=100
```
The field key can also be derived from all remaining elements of the graphite
bucket by specifying `field*`:
```toml
separator = "_"
templates = [
"measurement.measurement.region.field*"
]
```
which would result in the following Graphite -> Telegraf transformation.
```
cpu.usage.eu-east.idle.percentage 100
=> cpu_usage,region=eu-east idle_percentage=100
```
#### Filter Templates
Users can also filter the template(s) to use based on the name of the bucket,
using glob matching, like so:
```toml
templates = [
"cpu.* measurement.measurement.region",
"mem.* measurement.measurement.host"
]
```
which would result in the following transformation:
```
cpu.load.eu-east 100
=> cpu_load,region=eu-east value=100
mem.cached.localhost 256
=> mem_cached,host=localhost value=256
```
#### Adding Tags
Additional tags can be added to a metric that don't exist on the received metric.
You can add additional tags by specifying them after the pattern.
Tags have the same format as the line protocol.
Multiple tags are separated by commas.
```toml
templates = [
"measurement.measurement.field.region datacenter=1a"
]
```
would result in the following Graphite -> Telegraf transformation.
```
cpu.usage.idle.eu-east 100
=> cpu_usage,region=eu-east,datacenter=1a idle=100
```
[metrics]: /docs/METRICS.md

105
docs/TLS.md Normal file
View File

@ -0,0 +1,105 @@
# Transport Layer Security
There is an ongoing effort to standardize TLS options across plugins. When
possible, plugins will provide the standard settings described below. With the
exception of the advanced configuration available TLS settings will be
documented in the sample configuration.
### Client Configuration
For client TLS support we have the following options:
```toml
## Root certificates for verifying server certificates encoded in PEM format.
# tls_ca = "/etc/telegraf/ca.pem"
## The public and private keypairs for the client encoded in PEM format. May
## contain intermediate certificates.
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
## Skip TLS verification.
# insecure_skip_verify = false
```
### Server Configuration
The server TLS configuration provides support for TLS mutual authentication:
```toml
## Set one or more allowed client CA certificate file names to
## enable mutually authenticated TLS connections.
# tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
## Add service certificate and key.
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
```
#### Advanced Configuration
For plugins using the standard server configuration you can also set several
advanced settings. These options are not included in the sample configuration
for the interest of brevity.
```toml
## Define list of allowed ciphers suites. If not defined the default ciphers
## supported by Go will be used.
## ex: tls_cipher_suites = [
## "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305",
## "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305",
## "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
## "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
## "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
## "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
## "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256",
## "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA",
## "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256",
## "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA",
## "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA",
## "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA",
## "TLS_RSA_WITH_AES_128_GCM_SHA256",
## "TLS_RSA_WITH_AES_256_GCM_SHA384",
## "TLS_RSA_WITH_AES_128_CBC_SHA256",
## "TLS_RSA_WITH_AES_128_CBC_SHA",
## "TLS_RSA_WITH_AES_256_CBC_SHA"
## ]
# tls_cipher_suites = []
## Minimum TLS version that is acceptable.
# tls_min_version = "TLS10"
## Maximum SSL/TLS version that is acceptable.
# tls_max_version = "TLS13"
```
Cipher suites for use with `tls_cipher_suites`:
- `TLS_RSA_WITH_RC4_128_SHA`
- `TLS_RSA_WITH_3DES_EDE_CBC_SHA`
- `TLS_RSA_WITH_AES_128_CBC_SHA`
- `TLS_RSA_WITH_AES_256_CBC_SHA`
- `TLS_RSA_WITH_AES_128_CBC_SHA256`
- `TLS_RSA_WITH_AES_128_GCM_SHA256`
- `TLS_RSA_WITH_AES_256_GCM_SHA384`
- `TLS_ECDHE_ECDSA_WITH_RC4_128_SHA`
- `TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA`
- `TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA`
- `TLS_ECDHE_RSA_WITH_RC4_128_SHA`
- `TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA`
- `TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA`
- `TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA`
- `TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256`
- `TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256`
- `TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256`
- `TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256`
- `TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384`
- `TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384`
- `TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305`
- `TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305`
- `TLS_AES_128_GCM_SHA256`
- `TLS_AES_256_GCM_SHA384`
- `TLS_CHACHA20_POLY1305_SHA256`
TLS versions for use with `tls_min_version` or `tls_max_version`:
- `TLS10`
- `TLS11`
- `TLS12`
- `TLS13`

View File

@ -5,7 +5,7 @@ the general steps to set it up.
1. Obtain the telegraf windows distribution
2. Create the directory `C:\Program Files\Telegraf` (if you install in a different
location simply specify the `-config` parameter with the desired location)
location simply specify the `--config` parameter with the desired location)
3. Place the telegraf.exe and the telegraf.conf config file into `C:\Program Files\Telegraf`
4. To install the service into the Windows Service Manager, run the following in PowerShell as an administrator (If necessary, you can wrap any spaces in the file paths in double quotes ""):
@ -26,6 +26,15 @@ the general steps to set it up.
> net start telegraf
```
## Config Directory
You can also specify a `--config-directory` for the service to use:
1. Create a directory for config snippets: `C:\Program Files\Telegraf\telegraf.d`
2. Include the `--config-directory` option when registering the service:
```
> C:\"Program Files"\Telegraf\telegraf.exe --service install --config C:\"Program Files"\Telegraf\telegraf.conf --config-directory C:\"Program Files"\Telegraf\telegraf.d
```
## Other supported operations
Telegraf can manage its own service through the --service flag:
@ -37,3 +46,26 @@ Telegraf can manage its own service through the --service flag:
| `telegraf.exe --service start` | Start the telegraf service |
| `telegraf.exe --service stop` | Stop the telegraf service |
## Install multiple services
Running multiple instances of Telegraf is seldom needed, as you can run
multiple instances of each plugin and route metric flow using the metric
filtering options. However, if you do need to run multiple telegraf instances
on a single system, you can install the service with the `--service-name` and
`--service-display-name` flags to give the services unique names:
```
> C:\"Program Files"\Telegraf\telegraf.exe --service install --service-name telegraf-1 --service-display-name "Telegraf 1"
> C:\"Program Files"\Telegraf\telegraf.exe --service install --service-name telegraf-2 --service-display-name "Telegraf 2"
```
## Troubleshooting
When Telegraf runs as a Windows service, Telegraf logs messages to Windows events log before configuration file with logging settings is loaded.
Check event log for an error reported by `telegraf` service in case of Telegraf service reports failure on its start: Event Viewer->Windows Logs->Application
**Troubleshooting common error #1067**
When installing as service in Windows, always double check to specify full path of the config file, otherwise windows service will fail to start
--config "C:\Program Files\Telegraf\telegraf.conf"

File diff suppressed because it is too large Load Diff

View File

@ -1,18 +1,26 @@
# Telegraf configuration
# Telegraf Configuration
#
# Telegraf is entirely plugin driven. All metrics are gathered from the
# declared inputs, and sent to the declared outputs.
#
# Plugins must be declared in here to be active.
# To deactivate a plugin, comment out the name and any variables.
#
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config
# file would generate.
#
# Environment variables can be used anywhere in this config file, simply surround
# 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]
@ -22,11 +30,15 @@
## ie, if interval="10s" then always collect on :00, :10, :20, etc.
round_interval = true
## Telegraf will cache metric_buffer_limit metrics for each output, and will
## flush this buffer on a successful write.
metric_buffer_limit = 1000
## Flush the buffer whenever full, regardless of flush_interval.
flush_buffer_when_full = 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
## Maximum number of unwritten metrics per output. Increasing this value
## allows for longer periods of output downtime without dropping metrics at the
## cost of higher maximum memory usage.
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.
@ -34,58 +46,197 @@
## 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
## Default flushing interval for all outputs. 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"
## Logging configuration:
## Run telegraf in debug mode
debug = false
## Run telegraf in quiet mode
quiet = false
## Specify the log file name. The empty string means to log to stdout.
logfile = "/Program Files/Telegraf/telegraf.log"
## 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 = ""
## Log at debug level.
# debug = false
## Log only error level messages.
# quiet = false
## Log target controls the destination for logs and can be one of "file",
## "stderr" or, on Windows, "eventlog". When set to "file", the output file
## is determined by the "logfile" setting.
# logtarget = "file"
## Name of the file to be logged to when using the "file" logtarget. If set to
## the empty string then logs are written to stderr.
# logfile = ""
## The logfile will be rotated after the time interval specified. When set
## to 0 no time based rotation is performed. Logs are rotated only when
## written to, if there is no log activity rotation may be delayed.
# logfile_rotation_interval = "0d"
## The logfile will be rotated when it becomes larger than the specified
## size. When set to 0 no size based rotation is performed.
# logfile_rotation_max_size = "0MB"
## Maximum number of rotated archives to keep, any older logs are deleted.
## If set to -1, no archives are removed.
# logfile_rotation_max_archives = 5
## 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
###############################################################################
# OUTPUTS #
# OUTPUT PLUGINS #
###############################################################################
# Configuration for influxdb server to send metrics to
# Configuration for sending metrics to InfluxDB
[[outputs.influxdb]]
# The full HTTP or UDP endpoint URL for your InfluxDB instance.
# Multiple urls can be specified but it is assumed that they are part of the same
# cluster, this means that only ONE of the urls will be written to each interval.
# urls = ["udp://localhost:8089"] # UDP endpoint example
urls = ["http://localhost:8086"] # required
# The target database for metrics (telegraf will create it if not exists)
database = "telegraf" # required
# Precision of writes, valid values are "ns", "us" (or "µs"), "ms", "s", "m", "h".
# note: using second precision greatly helps InfluxDB compression
precision = "s"
## The full HTTP or UDP URL for your InfluxDB instance.
##
## Multiple URLs can be specified for a single cluster, only ONE of the
## urls will be written to each interval.
# urls = ["unix:///var/run/influxdb.sock"]
# urls = ["udp://127.0.0.1:8089"]
# urls = ["http://127.0.0.1:8086"]
## Write timeout (for the InfluxDB client), formatted as a string.
## If not provided, will default to 5s. 0s means no timeout (not recommended).
timeout = "5s"
## The target database for metrics; will be created as needed.
## For UDP url endpoint database needs to be configured on server side.
# database = "telegraf"
## The value of this tag will be used to determine the database. If this
## tag is not set the 'database' option is used as the default.
# database_tag = ""
## If true, the 'database_tag' will not be included in the written metric.
# exclude_database_tag = false
## If true, no CREATE DATABASE queries will be sent. Set to true when using
## Telegraf with a user without permissions to create databases or when the
## database already exists.
# skip_database_creation = false
## Name of existing retention policy to write to. Empty string writes to
## the default retention policy. Only takes effect when using HTTP.
# retention_policy = ""
## The value of this tag will be used to determine the retention policy. If this
## tag is not set the 'retention_policy' option is used as the default.
# retention_policy_tag = ""
## If true, the 'retention_policy_tag' will not be included in the written metric.
# exclude_retention_policy_tag = false
## Write consistency (clusters only), can be: "any", "one", "quorum", "all".
## Only takes effect when using HTTP.
# write_consistency = "any"
## Timeout for HTTP messages.
# timeout = "5s"
## HTTP Basic Auth
# username = "telegraf"
# password = "metricsmetricsmetricsmetrics"
# Set the user agent for HTTP POSTs (can be useful for log differentiation)
## HTTP User-Agent
# user_agent = "telegraf"
# Set UDP payload size, defaults to InfluxDB UDP Client default (512 bytes)
# udp_payload = 512
## UDP payload size is the maximum packet size to send.
# udp_payload = "512B"
## Optional TLS Config for use on HTTP connections.
# tls_ca = "/etc/telegraf/ca.pem"
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
## Use TLS but skip chain & host verification
# insecure_skip_verify = false
## HTTP Proxy override, if unset values the standard proxy environment
## variables are consulted to determine which proxy, if any, should be used.
# http_proxy = "http://corporate.proxy:3128"
## Additional HTTP headers
# http_headers = {"X-Special-Header" = "Special-Value"}
## HTTP Content-Encoding for write request body, can be set to "gzip" to
## compress body or "identity" to apply no encoding.
# content_encoding = "identity"
## When true, Telegraf will output unsigned integers as unsigned values,
## i.e.: "42u". You will need a version of InfluxDB supporting unsigned
## integer values. Enabling this option will result in field type errors if
## existing data has been written.
# influx_uint_support = false
# # Configuration for sending metrics to InfluxDB
# [[outputs.influxdb_v2]]
# ## The URLs of the InfluxDB cluster nodes.
# ##
# ## Multiple URLs can be specified for a single cluster, only ONE of the
# ## urls will be written to each interval.
# ## ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"]
# urls = ["http://127.0.0.1:9999"]
#
# ## Token for authentication.
# token = ""
#
# ## Organization is the name of the organization you wish to write to; must exist.
# organization = ""
#
# ## Destination bucket to write into.
# bucket = ""
#
# ## The value of this tag will be used to determine the bucket. If this
# ## tag is not set the 'bucket' option is used as the default.
# # bucket_tag = ""
#
# ## If true, the bucket tag will not be added to the metric.
# # exclude_bucket_tag = false
#
# ## Timeout for HTTP messages.
# # timeout = "5s"
#
# ## Additional HTTP headers
# # http_headers = {"X-Special-Header" = "Special-Value"}
#
# ## HTTP Proxy override, if unset values the standard proxy environment
# ## variables are consulted to determine which proxy, if any, should be used.
# # http_proxy = "http://corporate.proxy:3128"
#
# ## HTTP User-Agent
# # user_agent = "telegraf"
#
# ## Content-Encoding for write request body, can be set to "gzip" to
# ## compress body or "identity" to apply no encoding.
# # content_encoding = "gzip"
#
# ## Enable or disable uint support for writing uints influxdb 2.0.
# # influx_uint_support = false
#
# ## Optional TLS Config for use on HTTP connections.
# # tls_ca = "/etc/telegraf/ca.pem"
# # tls_cert = "/etc/telegraf/cert.pem"
# # tls_key = "/etc/telegraf/key.pem"
# ## Use TLS but skip chain & host verification
# # insecure_skip_verify = false
###############################################################################
# INPUTS #
# INPUT PLUGINS #
###############################################################################
# Windows Performance Counters plugin.
# These are the recommended method of monitoring system metrics on windows,
# as the regular system plugins (inputs.cpu, inputs.mem, etc.) rely on WMI,
@ -117,10 +268,11 @@
Instances = ["*"]
Counters = [
"% Idle Time",
"% Disk Time","% Disk Read Time",
"% Disk Time",
"% Disk Read Time",
"% Disk Write Time",
"Current Disk Queue Length",
"% Free Space",
"Current Disk Queue Length",
"Free Megabytes",
]
Measurement = "win_disk"
@ -186,7 +338,6 @@
"Standby Cache Reserve Bytes",
"Standby Cache Normal Priority Bytes",
"Standby Cache Core Bytes",
]
# Use 6 x - to remove the Instance bit from the query.
Instances = ["------"]
@ -204,44 +355,31 @@
Instances = ["_Total"]
Measurement = "win_swap"
[[inputs.win_perf_counters.object]]
ObjectName = "Network Interface"
Instances = ["*"]
Counters = [
"Bytes Sent/sec",
"Bytes Received/sec",
"Packets Sent/sec",
"Packets Received/sec",
"Packets Received Discarded",
"Packets Received Errors",
"Packets Outbound Discarded",
"Packets Outbound Errors",
]
# Windows system plugins using WMI (disabled by default, using
# win_perf_counters over WMI is recommended)
# # Read metrics about cpu usage
# [[inputs.cpu]]
# ## Whether to report per-cpu stats or not
# percpu = true
# ## Whether to report total system cpu stats or not
# totalcpu = true
# ## Comment this line if you want the raw CPU time metrics
# fielddrop = ["time_*"]
# ## If true, collect raw CPU time metrics.
# collect_cpu_time = false
# ## If true, compute and report the sum of all non-idle CPU states.
# report_active = false
# # Read metrics about disk usage by mount point
# [[inputs.disk]]
# ## By default, telegraf gather stats for all mountpoints.
# ## Setting mountpoints will restrict the stats to the specified mountpoints.
# ## mount_points=["/"]
# ## By default stats will be gathered for all mount points.
# ## Set mount_points will restrict the stats to only the specified mount points.
# # mount_points = ["/"]
#
# ## Ignore some mountpoints by filesystem type. For example (dev)tmpfs (usually
# ## present on /run, /var/run, /dev/shm or /dev).
# # ignore_fs = ["tmpfs", "devtmpfs"]
# ## Ignore mount points by filesystem type.
# ignore_fs = ["tmpfs", "devtmpfs", "devfs", "overlay", "aufs", "squashfs"]
# # Read metrics about disk IO by device
@ -249,9 +387,26 @@
# ## By default, telegraf will gather stats for all devices including
# ## disk partitions.
# ## Setting devices will restrict the stats to the specified devices.
# ## devices = ["sda", "sdb"]
# ## Uncomment the following line if you do not need disk serial numbers.
# ## skip_serial_number = true
# # devices = ["sda", "sdb", "vd*"]
# ## Uncomment the following line if you need disk serial numbers.
# # skip_serial_number = false
# #
# ## On systems which support it, device metadata can be added in the form of
# ## tags.
# ## Currently only Linux is supported via udev properties. You can view
# ## available properties for a device by running:
# ## 'udevadm info -q property -n /dev/sda'
# # device_tags = ["ID_FS_TYPE", "ID_FS_USAGE"]
# #
# ## Using the same metadata source as device_tags, you can also customize the
# ## name of the device via templates.
# ## The 'name_templates' parameter is a list of templates to try and apply to
# ## the device. The template may contain variables in the form of '$PROPERTY' or
# ## '${PROPERTY}'. The first template which does not contain any variables not
# ## present for the device is used as the device name tag.
# ## The typical use case is for LVM volumes, to get the VG/LV name instead of
# ## the near-meaningless DM-0 name.
# # name_templates = ["$ID_FS_LABEL","$DM_VG_NAME/$DM_LV_NAME"]
# # Read metrics about memory usage
@ -262,4 +417,3 @@
# # Read metrics about swap memory usage
# [[inputs.swap]]
# # no configuration

View File

@ -77,3 +77,40 @@ func compileFilterNoGlob(filters []string) Filter {
}
return &out
}
type IncludeExcludeFilter struct {
include Filter
exclude Filter
}
func NewIncludeExcludeFilter(
include []string,
exclude []string,
) (Filter, error) {
in, err := Compile(include)
if err != nil {
return nil, err
}
ex, err := Compile(exclude)
if err != nil {
return nil, err
}
return &IncludeExcludeFilter{in, ex}, nil
}
func (f *IncludeExcludeFilter) Match(s string) bool {
if f.include != nil {
if !f.include.Match(s) {
return false
}
}
if f.exclude != nil {
if f.exclude.Match(s) {
return false
}
}
return true
}

View File

@ -37,6 +37,24 @@ func TestCompile(t *testing.T) {
assert.True(t, f.Match("network"))
}
func TestIncludeExclude(t *testing.T) {
tags := []string{}
labels := []string{"best", "com_influxdata", "timeseries", "com_influxdata_telegraf", "ever"}
filter, err := NewIncludeExcludeFilter([]string{}, []string{"com_influx*"})
if err != nil {
t.Fatalf("Failed to create include/exclude filter - %v", err)
}
for i := range labels {
if filter.Match(labels[i]) {
tags = append(tags, labels[i])
}
}
assert.Equal(t, []string{"best", "timeseries", "ever"}, tags)
}
var benchbool bool
func BenchmarkFilterSingleNoGlobFalse(b *testing.B) {

161
go.mod Normal file
View File

@ -0,0 +1,161 @@
module github.com/influxdata/telegraf
go 1.12
require (
cloud.google.com/go v0.53.0
cloud.google.com/go/datastore v1.1.0 // indirect
cloud.google.com/go/pubsub v1.2.0
code.cloudfoundry.org/clock v1.0.0 // indirect
collectd.org v0.3.0
github.com/Azure/azure-event-hubs-go/v3 v3.2.0
github.com/Azure/azure-storage-queue-go v0.0.0-20181215014128-6ed74e755687
github.com/Azure/go-autorest/autorest v0.9.3
github.com/Azure/go-autorest/autorest/azure/auth v0.4.2
github.com/BurntSushi/toml v0.3.1
github.com/ChimeraCoder/anaconda v2.0.0+incompatible
github.com/ChimeraCoder/tokenbucket v0.0.0-20131201223612-c5a927568de7 // indirect
github.com/Mellanox/rdmamap v0.0.0-20191106181932-7c3c4763a6ee
github.com/Microsoft/ApplicationInsights-Go v0.4.2
github.com/Microsoft/go-winio v0.4.9 // indirect
github.com/Shopify/sarama v1.24.1
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6
github.com/aerospike/aerospike-client-go v1.27.0
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4
github.com/amir/raidman v0.0.0-20170415203553-1ccc43bfb9c9
github.com/apache/thrift v0.12.0
github.com/aristanetworks/glog v0.0.0-20191112221043-67e8567f59f3 // indirect
github.com/aristanetworks/goarista v0.0.0-20190325233358-a123909ec740
github.com/armon/go-metrics v0.3.0 // indirect
github.com/aws/aws-sdk-go v1.30.9
github.com/azr/backoff v0.0.0-20160115115103-53511d3c7330 // indirect
github.com/benbjohnson/clock v1.0.2
github.com/bitly/go-hostpool v0.1.0 // indirect
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect
github.com/caio/go-tdigest v2.3.0+incompatible // indirect
github.com/cenkalti/backoff v2.0.0+incompatible // indirect
github.com/cisco-ie/nx-telemetry-proto v0.0.0-20190531143454-82441e232cf6
github.com/cockroachdb/apd v1.1.0 // indirect
github.com/couchbase/go-couchbase v0.0.0-20180501122049-16db1f1fe037
github.com/couchbase/gomemcached v0.0.0-20180502221210-0da75df14530 // indirect
github.com/couchbase/goutils v0.0.0-20180530154633-e865a1461c8a // indirect
github.com/denisenkom/go-mssqldb v0.0.0-20190707035753-2be1aa521ff4
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/docker/distribution v2.6.0-rc.1.0.20170726174610-edc3ab29cdff+incompatible // indirect
github.com/docker/docker v1.4.2-0.20180327123150-ed7b6428c133
github.com/docker/go-connections v0.3.0 // indirect
github.com/docker/go-units v0.3.3 // indirect
github.com/docker/libnetwork v0.8.0-dev.2.0.20181012153825-d7b61745d166
github.com/dustin/go-jsonpointer v0.0.0-20160814072949-ba0abeacc3dc // indirect
github.com/dustin/gojson v0.0.0-20160307161227-2e71ec9dd5ad // indirect
github.com/eclipse/paho.mqtt.golang v1.2.0
github.com/ericchiang/k8s v1.2.0
github.com/garyburd/go-oauth v0.0.0-20180319155456-bca2e7f09a17 // indirect
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32
github.com/glinton/ping v0.1.4-0.20200311211934-5ac87da8cd96
github.com/go-logfmt/logfmt v0.4.0
github.com/go-ole/go-ole v1.2.1 // indirect
github.com/go-redis/redis v6.12.0+incompatible
github.com/go-sql-driver/mysql v1.5.0
github.com/goburrow/modbus v0.1.0
github.com/goburrow/serial v0.1.0 // indirect
github.com/gobwas/glob v0.2.3
github.com/gofrs/uuid v2.1.0+incompatible
github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d
github.com/golang/geo v0.0.0-20190916061304-5b978397cfec
github.com/golang/protobuf v1.3.5
github.com/google/go-cmp v0.4.0
github.com/google/go-github v17.0.0+incompatible
github.com/google/go-querystring v1.0.0 // indirect
github.com/gorilla/mux v1.6.2
github.com/gotestyourself/gotestyourself v2.2.0+incompatible // indirect
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
github.com/harlow/kinesis-consumer v0.3.1-0.20181230152818-2f58b136fee0
github.com/hashicorp/consul v1.2.1
github.com/hashicorp/go-msgpack v0.5.5 // indirect
github.com/hashicorp/go-rootcerts v0.0.0-20160503143440-6bb64b370b90 // indirect
github.com/hashicorp/memberlist v0.1.5 // indirect
github.com/hashicorp/serf v0.8.1 // indirect
github.com/influxdata/go-syslog/v2 v2.0.1
github.com/influxdata/tail v1.0.1-0.20180327235535-c43482518d41
github.com/influxdata/toml v0.0.0-20190415235208-270119a8ce65
github.com/influxdata/wlog v0.0.0-20160411224016-7c63b0a71ef8
github.com/jackc/fake v0.0.0-20150926172116-812a484cc733 // indirect
github.com/jackc/pgx v3.6.0+incompatible
github.com/jcmturner/gofork v1.0.0 // indirect
github.com/kardianos/service v1.0.0
github.com/karrick/godirwalk v1.12.0
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
github.com/klauspost/compress v1.9.2 // indirect
github.com/kubernetes/apimachinery v0.0.0-20190119020841-d41becfba9ee
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/leesper/go_rng v0.0.0-20190531154944-a612b043e353 // indirect
github.com/lib/pq v1.3.0 // indirect
github.com/mailru/easyjson v0.0.0-20180717111219-efc7eb8984d6 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1
github.com/mdlayher/apcupsd v0.0.0-20190314144147-eb3dd99a75fe
github.com/miekg/dns v1.0.14
github.com/mitchellh/go-testing-interface v1.0.0 // indirect
github.com/mmcdole/gofeed v1.0.0
github.com/multiplay/go-ts3 v1.0.0
github.com/naoina/go-stringutil v0.1.0 // indirect
github.com/nats-io/nats-server/v2 v2.1.4
github.com/nats-io/nats.go v1.9.1
github.com/newrelic/newrelic-telemetry-sdk-go v0.2.0
github.com/nsqio/go-nsq v1.0.7
github.com/openconfig/gnmi v0.0.0-20180912164834-33a1865c3029
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
github.com/opencontainers/image-spec v1.0.1 // indirect
github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492 // indirect
github.com/opentracing/opentracing-go v1.0.2 // indirect
github.com/openzipkin/zipkin-go-opentracing v0.3.4
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.5.1
github.com/prometheus/client_model v0.2.0
github.com/prometheus/common v0.9.1
github.com/safchain/ethtool v0.0.0-20200218184317-f459e2d13664
github.com/samuel/go-zookeeper v0.0.0-20180130194729-c4fab1ac1bec // indirect
github.com/satori/go.uuid v1.2.1-0.20181028125025-b2ce2384e17b // indirect
github.com/shirou/gopsutil v2.20.2+incompatible
github.com/shopspring/decimal v0.0.0-20200105231215-408a2507e114 // indirect
github.com/sirupsen/logrus v1.4.2
github.com/soniah/gosnmp v1.25.0
github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8
github.com/stretchr/testify v1.5.1
github.com/tbrandon/mbserver v0.0.0-20170611213546-993e1772cc62
github.com/tedsuo/ifrit v0.0.0-20191009134036-9a97d0632f00 // indirect
github.com/tidwall/gjson v1.3.0
github.com/vishvananda/netlink v0.0.0-20171020171820-b2de5d10e38e // indirect
github.com/vishvananda/netns v0.0.0-20180720170159-13995c7128cc // indirect
github.com/vjeantet/grok v1.0.0
github.com/vmware/govmomi v0.19.0
github.com/wavefronthq/wavefront-sdk-go v0.9.2
github.com/wvanbergen/kafka v0.0.0-20171203153745-e2edea948ddf
github.com/wvanbergen/kazoo-go v0.0.0-20180202103751-f72d8611297a // indirect
github.com/yuin/gopher-lua v0.0.0-20180630135845-46796da1b0b4 // indirect
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6 // indirect
golang.org/x/lint v0.0.0-20200302205851-738671d3881b // indirect
golang.org/x/net v0.0.0-20200301022130-244492dfa37a
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a // indirect
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4
golang.org/x/tools v0.0.0-20200317043434-63da46f3035e // indirect
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20200205215550-e35592f146e4
gonum.org/v1/gonum v0.6.2 // indirect
google.golang.org/api v0.20.0
google.golang.org/genproto v0.0.0-20200317114155-1f3552e48f24
google.golang.org/grpc v1.28.0
gopkg.in/fatih/pool.v2 v2.0.0 // indirect
gopkg.in/gorethink/gorethink.v3 v3.0.5
gopkg.in/jcmturner/gokrb5.v7 v7.3.0 // indirect
gopkg.in/ldap.v3 v3.1.0
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce
gopkg.in/olivere/elastic.v5 v5.0.70
gopkg.in/yaml.v2 v2.2.5
gotest.tools v2.2.0+incompatible // indirect
honnef.co/go/tools v0.0.1-2020.1.3 // indirect
k8s.io/apimachinery v0.17.1 // indirect
)
// replaced due to https://github.com/satori/go.uuid/issues/73
replace github.com/satori/go.uuid => github.com/gofrs/uuid v3.2.0+incompatible

915
go.sum Normal file
View File

@ -0,0 +1,915 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.37.4 h1:glPeL3BQJsbF6aIIYfZizMwc5LTYz250bDMjttbBGAU=
cloud.google.com/go v0.37.4/go.mod h1:NHPJ89PdicEuT9hdPXMROBD91xc5uRDxsMtSB16k7hw=
cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To=
cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4=
cloud.google.com/go v0.53.0 h1:MZQCQQaRwOrAcuKjiHWHrgKykt4fZyuwF2dtiG3fGW8=
cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M=
cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
cloud.google.com/go/bigquery v1.4.0 h1:xE3CPsOgttP4ACBePh79zTKALtXwn/Edhcr16R5hMWU=
cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
cloud.google.com/go/datastore v1.1.0 h1:/May9ojXjRkPBNVrq+oWLqmWCkr4OU5uRY29bu0mRyQ=
cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk=
cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw=
cloud.google.com/go/pubsub v1.2.0 h1:Lpy6hKgdcl7a3WGSfJIFmxmcdjSpP6OmBEfcOv1Y680=
cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA=
cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
cloud.google.com/go/storage v1.5.0 h1:RPUcBvDeYgQFMfQu1eBMq6piD1SXmLH+vK3qjewZPus=
cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos=
code.cloudfoundry.org/clock v1.0.0 h1:kFXWQM4bxYvdBw2X8BbBeXwQNgfoWv1vqAk2ZZyBN2o=
code.cloudfoundry.org/clock v1.0.0/go.mod h1:QD9Lzhd/ux6eNQVUDVRJX/RKTigpewimNYBi7ivZKY8=
collectd.org v0.3.0 h1:iNBHGw1VvPJxH2B6RiFWFZ+vsjo1lCdRszBeOuwGi00=
collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
gitea.statsd.de/dom/telegraf v0.10.1 h1:RZNof67areTIGhj1hZW1cAZ/4Dbz7HyKVAZ5dTphbuw=
github.com/Azure/azure-amqp-common-go/v3 v3.0.0 h1:j9tjcwhypb/jek3raNrwlCIl7iKQYOug7CLpSyBBodc=
github.com/Azure/azure-amqp-common-go/v3 v3.0.0/go.mod h1:SY08giD/XbhTz07tJdpw1SoxQXHPN30+DI3Z04SYqyg=
github.com/Azure/azure-event-hubs-go/v3 v3.2.0 h1:CQlxKH5a4NX1ZmbdqXUPRwuNGh2XvtgmhkZvkEuWzhs=
github.com/Azure/azure-event-hubs-go/v3 v3.2.0/go.mod h1:BPIIJNH/l/fVHYq3Rm6eg4clbrULrQ3q7+icmqHyyLc=
github.com/Azure/azure-pipeline-go v0.1.8/go.mod h1:XA1kFWRVhSK+KNFiOhfv83Fv8L9achrP7OxIzeTn1Yg=
github.com/Azure/azure-pipeline-go v0.1.9 h1:u7JFb9fFTE6Y/j8ae2VK33ePrRqJqoCM/IWkQdAZ+rg=
github.com/Azure/azure-pipeline-go v0.1.9/go.mod h1:XA1kFWRVhSK+KNFiOhfv83Fv8L9achrP7OxIzeTn1Yg=
github.com/Azure/azure-sdk-for-go v37.1.0+incompatible h1:aFlw3lP7ZHQi4m1kWCpcwYtczhDkGhDoRaMTaxcOf68=
github.com/Azure/azure-sdk-for-go v37.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/azure-storage-blob-go v0.6.0/go.mod h1:oGfmITT1V6x//CswqY2gtAHND+xIP64/qL7a5QJix0Y=
github.com/Azure/azure-storage-queue-go v0.0.0-20181215014128-6ed74e755687 h1:7MiZ6Th+YTmwUdrKmFg5OMsGYz7IdQwjqL0RPxkhhOQ=
github.com/Azure/azure-storage-queue-go v0.0.0-20181215014128-6ed74e755687/go.mod h1:K6am8mT+5iFXgingS9LUc7TmbsW6XBw3nxaRyaMyWc8=
github.com/Azure/go-amqp v0.12.6 h1:34yItuwhA/nusvq2sPSNPQxZLCf/CtaogYH8n578mnY=
github.com/Azure/go-amqp v0.12.6/go.mod h1:qApuH6OFTSKZFmCOxccvAv5rLizBQf4v8pRmG138DPo=
github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI=
github.com/Azure/go-autorest/autorest v0.9.3 h1:OZEIaBbMdUE/Js+BQKlpO81XlISgipr6yDJ+PSwsgi4=
github.com/Azure/go-autorest/autorest v0.9.3/go.mod h1:GsRuLYvwzLjjjRoWEIyMUaYq8GNUx2nRB378IPt/1p0=
github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0=
github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc=
github.com/Azure/go-autorest/autorest/adal v0.8.1 h1:pZdL8o72rK+avFWl+p9nE8RWi1JInZrWJYlnpfXJwHk=
github.com/Azure/go-autorest/autorest/adal v0.8.1/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q=
github.com/Azure/go-autorest/autorest/azure/auth v0.4.2 h1:iM6UAvjR97ZIeR93qTcwpKNMpV+/FTWjwEbuPD495Tk=
github.com/Azure/go-autorest/autorest/azure/auth v0.4.2/go.mod h1:90gmfKdlmKgfjUpnCEpOJzsUEjrWDSLwHIG73tSXddM=
github.com/Azure/go-autorest/autorest/azure/cli v0.3.1 h1:LXl088ZQlP0SBppGFsRZonW6hSvwgL5gRByMbvUbx8U=
github.com/Azure/go-autorest/autorest/azure/cli v0.3.1/go.mod h1:ZG5p860J94/0kI9mNJVoIoLgXcirM2gF5i2kWloofxw=
github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA=
github.com/Azure/go-autorest/autorest/date v0.2.0 h1:yW+Zlqf26583pE43KhfnhFcdmSWlm5Ew6bxipnr/tbM=
github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g=
github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
github.com/Azure/go-autorest/autorest/mocks v0.3.0 h1:qJumjCaCudz+OcqE9/XtEPfvtOjOmKaui4EOpFI6zZc=
github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM=
github.com/Azure/go-autorest/autorest/to v0.3.0 h1:zebkZaadz7+wIQYgC7GXaz3Wb28yKYfVkkBKwc38VF8=
github.com/Azure/go-autorest/autorest/to v0.3.0/go.mod h1:MgwOyqaIuKdG4TL/2ywSsIWKAfJfgHDo8ObuUk3t5sA=
github.com/Azure/go-autorest/autorest/validation v0.2.0 h1:15vMO4y76dehZSq7pAaOLQxC6dZYsSrj2GQpflyM/L4=
github.com/Azure/go-autorest/autorest/validation v0.2.0/go.mod h1:3EEqHnBxQGHXRYq3HT1WyXAvT7LLY3tl70hw6tQIbjI=
github.com/Azure/go-autorest/logger v0.1.0 h1:ruG4BSDXONFRrZZJ2GUXDiUyVpayPmb1GnWeHDdaNKY=
github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc=
github.com/Azure/go-autorest/tracing v0.5.0 h1:TRn4WjSnkcSy5AEG3pnbtFSwNtwzjr4VYyQflFE619k=
github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk=
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/ChimeraCoder/anaconda v1.0.0 h1:B7KZV+CE2iwbC15sh+rh5vaWs4+XJx1XC4iHvHtsZrQ=
github.com/ChimeraCoder/anaconda v2.0.0+incompatible h1:F0eD7CHXieZ+VLboCD5UAqCeAzJZxcr90zSCcuJopJs=
github.com/ChimeraCoder/anaconda v2.0.0+incompatible/go.mod h1:TCt3MijIq3Qqo9SBtuW/rrM4x7rDfWqYWHj8T7hLcLg=
github.com/ChimeraCoder/tokenbucket v0.0.0-20131201223612-c5a927568de7 h1:r+EmXjfPosKO4wfiMLe1XQictsIlhErTufbWUsjOTZs=
github.com/ChimeraCoder/tokenbucket v0.0.0-20131201223612-c5a927568de7/go.mod h1:b2EuEMLSG9q3bZ95ql1+8oVqzzrTNSiOQqSXWFBzxeI=
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
github.com/Mellanox/rdmamap v0.0.0-20191106181932-7c3c4763a6ee h1:atI/FFjXh6hIVlPE1Jup9m8N4B9q/OSbMUe2EBahs+w=
github.com/Mellanox/rdmamap v0.0.0-20191106181932-7c3c4763a6ee/go.mod h1:jDA6v0TUYrFEIAE5uGJ29LQOeONIgMdP4Rkqb8HUnPM=
github.com/Microsoft/ApplicationInsights-Go v0.4.2 h1:HIZoGXMiKNwAtMAgCSSX35j9mP+DjGF9ezfBvxMDLLg=
github.com/Microsoft/ApplicationInsights-Go v0.4.2/go.mod h1:CukZ/G66zxXtI+h/VcVn3eVVDGDHfXM2zVILF7bMmsg=
github.com/Microsoft/go-winio v0.4.9 h1:3RbgqgGVqmcpbOiwrjbVtDHLlJBGF6aE+yHmNtBNsFQ=
github.com/Microsoft/go-winio v0.4.9/go.mod h1:VhR8bwka0BXejwEJY73c50VrPtXAaKcyvVC4A4RozmA=
github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ=
github.com/PuerkitoBio/goquery v1.5.0 h1:uGvmFXOA73IKluu/F84Xd1tt/z07GYm8X49XKHP7EJk=
github.com/PuerkitoBio/goquery v1.5.0/go.mod h1:qD2PgZ9lccMbQlc7eEOjaeRlFQON7xY8kdmcsrnKqMg=
github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
github.com/Shopify/sarama v1.24.1 h1:svn9vfN3R1Hz21WR2Gj0VW9ehaDGkiOS+VqlIcZOkMI=
github.com/Shopify/sarama v1.24.1/go.mod h1:fGP8eQ6PugKEI0iUETYYtnP6d1pH/bdDMTel1X5ajsU=
github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc=
github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 h1:fLjPD/aNc3UIOA6tDi6QXUemppXK3P9BI7mr2hd6gx8=
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg=
github.com/aerospike/aerospike-client-go v1.27.0 h1:VC6/Wqqm3Qlp4/utM7Zts3cv4A2HPn8rVFp/XZKTWgE=
github.com/aerospike/aerospike-client-go v1.27.0/go.mod h1:zj8LBEnWBDOVEIJt8LvaRvDG5ARAoa5dBeHaB472NRc=
github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf h1:qet1QNfXsQxTZqLG4oE62mJzwPIB8+Tee4RNCL9ulrY=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4 h1:Hs82Z41s6SdL1CELW+XaDYmOH4hkBN4/N9og/AsOv7E=
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/amir/raidman v0.0.0-20170415203553-1ccc43bfb9c9 h1:FXrPTd8Rdlc94dKccl7KPmdmIbVh/OjelJ8/vgMRzcQ=
github.com/amir/raidman v0.0.0-20170415203553-1ccc43bfb9c9/go.mod h1:eliMa/PW+RDr2QLWRmLH1R1ZA4RInpmvOzDDXtaIZkc=
github.com/andybalholm/cascadia v1.0.0 h1:hOCXnnZ5A+3eVDX8pvgl4kofXv2ELss0bKcqRySc45o=
github.com/andybalholm/cascadia v1.0.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y=
github.com/apache/thrift v0.12.0 h1:pODnxUFNcjP9UTLZGTdeh+j16A8lJbRvD3rOtrk/7bs=
github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
github.com/aristanetworks/glog v0.0.0-20191112221043-67e8567f59f3 h1:Bmjk+DjIi3tTAU0wxGaFbfjGUqlxxSXARq9A96Kgoos=
github.com/aristanetworks/glog v0.0.0-20191112221043-67e8567f59f3/go.mod h1:KASm+qXFKs/xjSoWn30NrWBBvdTTQq+UjkhjEJHfSFA=
github.com/aristanetworks/goarista v0.0.0-20190325233358-a123909ec740 h1:FD4/ikKOFxwP8muWDypbmBWc634+YcAs3eBrYAmRdZY=
github.com/aristanetworks/goarista v0.0.0-20190325233358-a123909ec740/go.mod h1:D/tb0zPVXnP7fmsLZjtdUhSsumbK/ij54UXjjVgMGxQ=
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
github.com/armon/go-metrics v0.3.0 h1:B7AQgHi8QSEi4uHu7Sbsga+IJDU+CENgjxoo81vDUqU=
github.com/armon/go-metrics v0.3.0/go.mod h1:zXjbSimjXTd7vOpY8B0/2LpvNvDoXBuplAD+gJD3GYs=
github.com/aws/aws-sdk-go v1.30.9 h1:DntpBUKkchINPDbhEzDRin1eEn1TG9TZFlzWPf0i8to=
github.com/aws/aws-sdk-go v1.30.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
github.com/azr/backoff v0.0.0-20160115115103-53511d3c7330 h1:ekDALXAVvY/Ub1UtNta3inKQwZ/jMB/zpOtD8rAYh78=
github.com/azr/backoff v0.0.0-20160115115103-53511d3c7330/go.mod h1:nH+k0SvAt3HeiYyOlJpLLv1HG1p7KWP7qU9QPp2/pCo=
github.com/benbjohnson/clock v1.0.2 h1:Z0CN0Yb4ig9sGPXkvAQcGJfnrrMQ5QYLCMPRi9iD7YE=
github.com/benbjohnson/clock v1.0.2/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 h1:xJ4a3vCFaGF/jqvzLMYoU8P317H5OQ+Via4RmuPwCS0=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/bitly/go-hostpool v0.1.0 h1:XKmsF6k5el6xHG3WPJ8U0Ku/ye7njX7W81Ng7O2ioR0=
github.com/bitly/go-hostpool v0.1.0/go.mod h1:4gOCgp6+NZnVqlKyZ/iBZFTAJKembaVENUpMkpg42fw=
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 h1:DDGfHa7BWjL4YnC6+E63dPcxHo2sUxDIu8g3QgEJdRY=
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4=
github.com/caio/go-tdigest v2.3.0+incompatible h1:zP6nR0nTSUzlSqqr7F/LhslPlSZX/fZeGmgmwj2cxxY=
github.com/caio/go-tdigest v2.3.0+incompatible/go.mod h1:sHQM/ubZStBUmF1WbB8FAm8q9GjDajLC5T7ydxE3JHI=
github.com/cenkalti/backoff v2.0.0+incompatible h1:5IIPUHhlnUZbcHQsQou5k1Tn58nJkeJL9U+ig5CHJbY=
github.com/cenkalti/backoff v2.0.0+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag=
github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I=
github.com/cisco-ie/nx-telemetry-proto v0.0.0-20190531143454-82441e232cf6 h1:57RI0wFkG/smvVTcz7F43+R0k+Hvci3jAVQF9lyMoOo=
github.com/cisco-ie/nx-telemetry-proto v0.0.0-20190531143454-82441e232cf6/go.mod h1:ugEfq4B8T8ciw/h5mCkgdiDRFS4CkqqhH2dymDB4knc=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I=
github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ=
github.com/codegangsta/cli v1.20.0/go.mod h1:/qJNoX69yVSKu5o4jLyXAENLRyk1uhi7zkbQ3slBdOA=
github.com/couchbase/go-couchbase v0.0.0-20180501122049-16db1f1fe037 h1:Dbz60fpCq04vRxVVVJLbQuL0G7pRt0Gyo2BkozFc4SQ=
github.com/couchbase/go-couchbase v0.0.0-20180501122049-16db1f1fe037/go.mod h1:TWI8EKQMs5u5jLKW/tsb9VwauIrMIxQG1r5fMsswK5U=
github.com/couchbase/gomemcached v0.0.0-20180502221210-0da75df14530 h1:F8nmbiuX+gCz9xvWMi6Ak8HQntB4ATFXP46gaxifbp4=
github.com/couchbase/gomemcached v0.0.0-20180502221210-0da75df14530/go.mod h1:srVSlQLB8iXBVXHgnqemxUXqN6FCvClgCMPCsjBDR7c=
github.com/couchbase/goutils v0.0.0-20180530154633-e865a1461c8a h1:Y5XsLCEhtEI8qbD9RP3Qlv5FXdTDHxZM9UPUnMRgBp8=
github.com/couchbase/goutils v0.0.0-20180530154633-e865a1461c8a/go.mod h1:BQwMFlJzDjFDG3DJUdU0KORxn88UlsOULuxLExMh3Hs=
github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/denisenkom/go-mssqldb v0.0.0-20190707035753-2be1aa521ff4 h1:YcpmyvADGYw5LqMnHqSkyIELsHCGF6PkrmM31V8rF7o=
github.com/denisenkom/go-mssqldb v0.0.0-20190707035753-2be1aa521ff4/go.mod h1:zAg7JM8CkOJ43xKXIj7eRO9kmWm/TW578qo+oDO6tuM=
github.com/devigned/tab v0.1.1 h1:3mD6Kb1mUOYeLpJvTVSDwSg5ZsfSxfvxGRTxRsJsITA=
github.com/devigned/tab v0.1.1/go.mod h1:XG9mPq0dFghrYvoBF3xdRrJzSTX1b7IQrvaL9mzjeJY=
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/dimchansky/utfbom v1.1.0 h1:FcM3g+nofKgUteL8dm/UpdRXNC9KmADgTpLKsu0TRo4=
github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8=
github.com/docker/distribution v2.6.0-rc.1.0.20170726174610-edc3ab29cdff+incompatible h1:357nGVUC8gSpeSc2Axup8HfrfTLLUfWfCsCUhiQSKIg=
github.com/docker/distribution v2.6.0-rc.1.0.20170726174610-edc3ab29cdff+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
github.com/docker/docker v1.4.2-0.20180327123150-ed7b6428c133 h1:Kus8nU6ctI/u/l86ljUJl6GpUtmO7gtD/krn4u5dr0M=
github.com/docker/docker v1.4.2-0.20180327123150-ed7b6428c133/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
github.com/docker/go-connections v0.3.0 h1:3lOnM9cSzgGwx8VfK/NGOW5fLQ0GjIlCkaktF+n1M6o=
github.com/docker/go-connections v0.3.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
github.com/docker/go-units v0.3.3 h1:Xk8S3Xj5sLGlG5g67hJmYMmUgXv5N4PhkjJHHqrwnTk=
github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/docker/libnetwork v0.8.0-dev.2.0.20181012153825-d7b61745d166 h1:KgEcrKF0NWi9GT/OvDp9ioXZIrHRbP8S5o+sot9gznQ=
github.com/docker/libnetwork v0.8.0-dev.2.0.20181012153825-d7b61745d166/go.mod h1:93m0aTqz6z+g32wla4l4WxTrdtvBRmVzYRkYvasA5Z8=
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=
github.com/dustin/go-jsonpointer v0.0.0-20160814072949-ba0abeacc3dc h1:tP7tkU+vIsEOKiK+l/NSLN4uUtkyuxc6hgYpQeCWAeI=
github.com/dustin/go-jsonpointer v0.0.0-20160814072949-ba0abeacc3dc/go.mod h1:ORH5Qp2bskd9NzSfKqAF7tKfONsEkCarTE5ESr/RVBw=
github.com/dustin/gojson v0.0.0-20160307161227-2e71ec9dd5ad h1:Qk76DOWdOp+GlyDKBAG3Klr9cn7N+LcYc82AZ2S7+cA=
github.com/dustin/gojson v0.0.0-20160307161227-2e71ec9dd5ad/go.mod h1:mPKfmRa823oBIgl2r20LeMSpTAteW5j7FLkc0vjmzyQ=
github.com/eapache/go-resiliency v1.1.0 h1:1NtRmCAqadE2FN4ZcN6g90TP3uk8cg9rn9eNK2197aU=
github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs=
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 h1:YEetp8/yCZMuEPMUDHG0CW/brkkEp8mzqk2+ODEitlw=
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU=
github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc=
github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I=
github.com/eclipse/paho.mqtt.golang v1.2.0 h1:1F8mhG9+aO5/xpdtFkW4SxOJB67ukuDC3t2y2qayIX0=
github.com/eclipse/paho.mqtt.golang v1.2.0/go.mod h1:H9keYFcgq3Qr5OUJm/JZI/i6U7joQ8SYLhZwfeOo6Ts=
github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/ericchiang/k8s v1.2.0 h1:vxrMwEzY43oxu8aZyD/7b1s8tsBM+xoUoxjWECWFbPI=
github.com/ericchiang/k8s v1.2.0/go.mod h1:/OmBgSq2cd9IANnsGHGlEz27nwMZV2YxlpXuQtU3Bz4=
github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=
github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=
github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g=
github.com/frankban/quicktest v1.4.1 h1:Wv2VwvNn73pAdFIVUQRXYDFp31lXKbqblIXo/Q5GPSg=
github.com/frankban/quicktest v1.4.1/go.mod h1:36zfPVQyHxymz4cH7wlDmVwDrJuljRB60qkgn7rorfQ=
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/garyburd/go-oauth v0.0.0-20180319155456-bca2e7f09a17 h1:GOfMz6cRgTJ9jWV0qAezv642OhPnKEG7gtUjJSdStHE=
github.com/garyburd/go-oauth v0.0.0-20180319155456-bca2e7f09a17/go.mod h1:HfkOCN6fkKKaPSAeNq/er3xObxTW4VLeY6UUK895gLQ=
github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32 h1:Mn26/9ZMNWSw9C9ERFA1PUxfmGpolnw2v0bKOREu5ew=
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32/go.mod h1:GIjDIg/heH5DOkXY3YJ/wNhfHsQHoXGjl8G8amsYQ1I=
github.com/glinton/ping v0.1.4-0.20200311211934-5ac87da8cd96 h1:YpooqMW354GG47PXNBiaCv6yCQizyP3MXD9NUPrCEQ8=
github.com/glinton/ping v0.1.4-0.20200311211934-5ac87da8cd96/go.mod h1:uY+1eqFUyotrQxF1wYFNtMeHp/swbYRsoGzfcPZ8x3o=
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
github.com/go-logfmt/logfmt v0.4.0 h1:MP4Eh7ZCb31lleYCFuwm0oe4/YGak+5l1vA2NOE80nA=
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas=
github.com/go-ole/go-ole v1.2.1 h1:2lOsA72HgjxAuMlKpFiCbHTvu44PIVkZ5hqm3RSdI/E=
github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8=
github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0=
github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg=
github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc=
github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I=
github.com/go-redis/redis v6.12.0+incompatible h1:s+64XI+z/RXqGHz2fQSgRJOEwqqSXeX3dliF7iVkMbE=
github.com/go-redis/redis v6.12.0+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA=
github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs=
github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/goburrow/modbus v0.1.0 h1:DejRZY73nEM6+bt5JSP6IsFolJ9dVcqxsYbpLbeW/ro=
github.com/goburrow/modbus v0.1.0/go.mod h1:Kx552D5rLIS8E7TyUwQ/UdHEqvX5T8tyiGBTlzMcZBg=
github.com/goburrow/serial v0.1.0 h1:v2T1SQa/dlUqQiYIT8+Cu7YolfqAi3K96UmhwYyuSrA=
github.com/goburrow/serial v0.1.0/go.mod h1:sAiqG0nRVswsm1C97xsttiYCzSLBmUZ/VSlVLZJ8haA=
github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y=
github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8=
github.com/gofrs/uuid v2.1.0+incompatible h1:8oEj3gioPmmDAOLQUZdnW+h4FZu9aSE/SQIas1E9pzA=
github.com/gofrs/uuid v2.1.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/gofrs/uuid v3.2.0+incompatible h1:y12jRkkFxsd7GpqdSZ+/KCs/fJbqpEXSGd4+jfEaewE=
github.com/gofrs/uuid v3.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d h1:3PaI8p3seN09VjbTYC/QWlUZdZ1qS1zGjy7LH2Wt07I=
github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
github.com/golang/geo v0.0.0-20190916061304-5b978397cfec h1:lJwO/92dFXWeXOZdoGXgptLmNLwynMSHUmU6besqtiw=
github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY=
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
github.com/golang/protobuf v0.0.0-20161109072736-4bd1920723d7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs=
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
github.com/golang/protobuf v1.3.5 h1:F768QJ1E9tib+q5Sc8MkdJi1RxLTbRcTf8LJV56aRls=
github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/golang/snappy v0.0.1 h1:Qgr9rKW7uDUkrbSmQeiDsGa8SjGyCOGtuasMWwvp2P4=
github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c h1:964Od4U6p2jUkFxvCydnIczKteheJEzHRToSGK3Bnlw=
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo=
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=
github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-github v17.0.0+incompatible h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4rEjNlfyDHW9dolSY=
github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ=
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
github.com/google/gofuzz v0.0.0-20161122191042-44d81051d367/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI=
github.com/google/gofuzz v1.0.0 h1:A8PeW59pxE9IoFRqBp37U+mSNaQoZ46F1f0f863XSXw=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no=
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/googleapis/gax-go/v2 v2.0.4 h1:hU4mGcQI4DaAYW+IbTun+2qEZVFxK0ySjQLTbS0VQKc=
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM=
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY=
github.com/gorilla/context v1.1.1 h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8=
github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg=
github.com/gorilla/mux v1.6.2 h1:Pgr17XVTNXAk3q/r4CpKzC5xBM/qW1uVLV+IhRZpIIk=
github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
github.com/gotestyourself/gotestyourself v2.2.0+incompatible h1:AQwinXlbQR2HvPjQZOmDhRqsv5mZf+Jb1RnSLxcqZcI=
github.com/gotestyourself/gotestyourself v2.2.0+incompatible/go.mod h1:zZKM6oeNM8k+FRljX1mnzVYeS8wiGgQyvST1/GafPbY=
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed h1:5upAirOpQc1Q53c0bnx2ufif5kANL7bfZWcc6VJWJd8=
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed/go.mod h1:tMWxXQ9wFIaZeTI9F+hmhFiGpFmhOHzyShyFUhRm0H4=
github.com/harlow/kinesis-consumer v0.3.1-0.20181230152818-2f58b136fee0 h1:U0KvGD9CJIl1nbgu9yLsfWxMT6WqL8fG0IBB7RvOZZQ=
github.com/harlow/kinesis-consumer v0.3.1-0.20181230152818-2f58b136fee0/go.mod h1:dk23l2BruuUzRP8wbybQbPn3J7sZga2QHICCeaEy5rQ=
github.com/hashicorp/consul v1.2.1 h1:66MuuTfV4aOXTQM7cjAIKUWFOITSk4XZlMhE09ymVbg=
github.com/hashicorp/consul v1.2.1/go.mod h1:mFrjN1mfidgJfYP1xrJCF+AfRhr6Eaqhb2+sfyn/OOI=
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
github.com/hashicorp/go-cleanhttp v0.5.0 h1:wvCrVc9TjDls6+YGAF2hAifE1E5U1+b4tH6KdvN3Gig=
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
github.com/hashicorp/go-immutable-radix v1.0.0 h1:AKDB1HM5PWEA7i4nhcpwOrO2byshxBjXVn/J/3+z5/0=
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
github.com/hashicorp/go-msgpack v0.5.5 h1:i9R9JSrqIz0QVLz3sz+i3YJdT7TTSLcfLLzJi9aZTuI=
github.com/hashicorp/go-msgpack v0.5.5/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o=
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
github.com/hashicorp/go-rootcerts v0.0.0-20160503143440-6bb64b370b90 h1:VBj0QYQ0u2MCJzBfeYXGexnAl17GsH1yidnoxCqqD9E=
github.com/hashicorp/go-rootcerts v0.0.0-20160503143440-6bb64b370b90/go.mod h1:o4zcYY1e0GEZI6eSEr+43QDYmuGglw1qSO6qdHUHCgg=
github.com/hashicorp/go-sockaddr v1.0.0 h1:GeH6tui99pF4NJgfnhp+L6+FfobzVW3Ah46sLo0ICXs=
github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU=
github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE=
github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU=
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/memberlist v0.1.5 h1:AYBsgJOW9gab/toO5tEB8lWetVgDKZycqkebJ8xxpqM=
github.com/hashicorp/memberlist v0.1.5/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
github.com/hashicorp/serf v0.8.1 h1:mYs6SMzu72+90OcPa5wr3nfznA4Dw9UyR791ZFNOIf4=
github.com/hashicorp/serf v0.8.1/go.mod h1:h/Ru6tmZazX7WO/GDmwdpS975F019L4t5ng5IgwbNrE=
github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/influxdata/go-syslog/v2 v2.0.1 h1:l44S4l4Q8MhGQcoOxJpbo+QQYxJqp0vdgIVHh4+DO0s=
github.com/influxdata/go-syslog/v2 v2.0.1/go.mod h1:hjvie1UTaD5E1fTnDmxaCw8RRDrT4Ve+XHr5O2dKSCo=
github.com/influxdata/tail v1.0.1-0.20180327235535-c43482518d41 h1:HxQo1NpNXQDpvEBzthbQLmePvTLFTa5GzSFUjL03aEs=
github.com/influxdata/tail v1.0.1-0.20180327235535-c43482518d41/go.mod h1:xTFF2SILpIYc5N+Srb0d5qpx7d+f733nBrbasb13DtQ=
github.com/influxdata/toml v0.0.0-20190415235208-270119a8ce65 h1:vvyMtD5LTJc1W9sQKjDkAWdcg0478CszSdzlHtiAXCY=
github.com/influxdata/toml v0.0.0-20190415235208-270119a8ce65/go.mod h1:zApaNFpP/bTpQItGZNNUMISDMDAnTXu9UqJ4yT3ocz8=
github.com/influxdata/wlog v0.0.0-20160411224016-7c63b0a71ef8 h1:W2IgzRCb0L9VzMujq/QuTaZUKcH8096jWwP519mHN6Q=
github.com/influxdata/wlog v0.0.0-20160411224016-7c63b0a71ef8/go.mod h1:/2NMgWB1DHM1ti/gqhOlg+LJeBVk6FqR5aVGYY0hlwI=
github.com/jackc/fake v0.0.0-20150926172116-812a484cc733 h1:vr3AYkKovP8uR8AvSGGUK1IDqRa5lAAvEkZG1LKaCRc=
github.com/jackc/fake v0.0.0-20150926172116-812a484cc733/go.mod h1:WrMFNQdiFJ80sQsxDoMokWK1W5TQtxBFNpzWTD84ibQ=
github.com/jackc/pgx v3.6.0+incompatible h1:bJeo4JdVbDAW8KB2m8XkFeo8CPipREoG37BwEoKGz+Q=
github.com/jackc/pgx v3.6.0+incompatible/go.mod h1:0ZGrqGqkRlliWnWB4zKnWtjbSWbGkVEFm4TeybAXq+I=
github.com/jcmturner/gofork v0.0.0-20190328161633-dc7c13fece03/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o=
github.com/jcmturner/gofork v1.0.0 h1:J7uCkflzTEhUZ64xqKnkDxq3kzc96ajM1Gli5ktUem8=
github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o=
github.com/jmespath/go-jmespath v0.3.0 h1:OS12ieG61fsCg5+qLJ+SsW9NicxNkg3b25OyT2yCeUc=
github.com/jmespath/go-jmespath v0.3.0/go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik=
github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc=
github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg=
github.com/jpillora/backoff v0.0.0-20180909062703-3050d21c67d7 h1:K//n/AqR5HjG3qxbrBCL4vJPW0MVFSs9CPK1OOJdRME=
github.com/jpillora/backoff v0.0.0-20180909062703-3050d21c67d7/go.mod h1:2iMrUgbbvHEiQClaW2NsSzMyGHqN+rDFqY705q49KG0=
github.com/jsimonetti/rtnetlink v0.0.0-20190606172950-9527aa82566a/go.mod h1:Oz+70psSo5OFh8DBl0Zv2ACw7Esh6pPUphlvZG9x7uw=
github.com/jsimonetti/rtnetlink v0.0.0-20200117123717-f846d4f6c1f4 h1:nwOc1YaOrYJ37sEBrtWZrdqzK22hiJs3GpDmP3sR2Yw=
github.com/jsimonetti/rtnetlink v0.0.0-20200117123717-f846d4f6c1f4/go.mod h1:WGuG/smIU4J/54PblvSbh+xvCZmpJnFgr3ds6Z55XMQ=
github.com/json-iterator/go v0.0.0-20180612202835-f2b4162afba3/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
github.com/jstemmer/go-junit-report v0.9.1 h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o=
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes=
github.com/kardianos/service v1.0.0 h1:HgQS3mFfOlyntWX8Oke98JcJLqt1DBcHR4kxShpYef0=
github.com/kardianos/service v1.0.0/go.mod h1:8CzDhVuCuugtsHyZoTvsOBuvonN/UDBvl0kH+BUxvbo=
github.com/karrick/godirwalk v1.12.0 h1:nkS4xxsjiZMvVlazd0mFyiwD4BR9f3m6LXGhM2TUx3Y=
github.com/karrick/godirwalk v1.12.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaRPx4tDPEn4=
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
github.com/klauspost/compress v1.9.2 h1:LfVyl+ZlLlLDeQ/d2AqfGIIH4qEDu0Ed2S5GyhCWIWY=
github.com/klauspost/compress v1.9.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY=
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kubernetes/apimachinery v0.0.0-20190119020841-d41becfba9ee h1:MB75LRhfeLER2RF7neSVpYuX/lL8aPi3yPtv5vdOJmk=
github.com/kubernetes/apimachinery v0.0.0-20190119020841-d41becfba9ee/go.mod h1:Pe/YBTPc3vqoMkbuIWPH8CF9ehINdvNyS0dP3J6HC0s=
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/leesper/go_rng v0.0.0-20190531154944-a612b043e353 h1:X/79QL0b4YJVO5+OsPH9rF2u428CIrGL/jLmPsoOQQ4=
github.com/leesper/go_rng v0.0.0-20190531154944-a612b043e353/go.mod h1:N0SVk0uhy+E1PZ3C9ctsPRlvOPAFPkCNlcPBDkt0N3U=
github.com/leodido/ragel-machinery v0.0.0-20181214104525-299bdde78165 h1:bCiVCRCs1Heq84lurVinUPy19keqGEe4jh5vtK37jcg=
github.com/leodido/ragel-machinery v0.0.0-20181214104525-299bdde78165/go.mod h1:WZxr2/6a/Ar9bMDc2rN/LJrE/hF6bXE4LPyDSIxwAfg=
github.com/lib/pq v1.3.0 h1:/qkRGz8zljWiDcFvgpwUpwIAPu3r07TDvs3Rws+o/pU=
github.com/lib/pq v1.3.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
github.com/mailru/easyjson v0.0.0-20180717111219-efc7eb8984d6 h1:8/+Y8SKf0xCZ8cCTfnrMdY7HNzlEjPAt3bPjalNb6CA=
github.com/mailru/easyjson v0.0.0-20180717111219-efc7eb8984d6/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
github.com/mdlayher/apcupsd v0.0.0-20190314144147-eb3dd99a75fe h1:yMrL+YorbzaBpj/h3BbLMP+qeslPZYMbzcpHFBNy1Yk=
github.com/mdlayher/apcupsd v0.0.0-20190314144147-eb3dd99a75fe/go.mod h1:y3mw3VG+t0m20OMqpG8RQqw8cDXvShVb+L8Z8FEnebw=
github.com/mdlayher/genetlink v1.0.0 h1:OoHN1OdyEIkScEmRgxLEe2M9U8ClMytqA5niynLtfj0=
github.com/mdlayher/genetlink v1.0.0/go.mod h1:0rJ0h4itni50A86M2kHcgS85ttZazNt7a8H2a2cw0Gc=
github.com/mdlayher/netlink v0.0.0-20190409211403-11939a169225/go.mod h1:eQB3mZE4aiYnlUsyGGCOpPETfdQq4Jhsgf1fk3cwQaA=
github.com/mdlayher/netlink v1.0.0/go.mod h1:KxeJAFOFLG6AjpyDkQ/iIhxygIUKD+vcwqcnu43w/+M=
github.com/mdlayher/netlink v1.1.0 h1:mpdLgm+brq10nI9zM1BpX1kpDbh3NLl3RSnVq6ZSkfg=
github.com/mdlayher/netlink v1.1.0/go.mod h1:H4WCitaheIsdF9yOYu8CFmCgQthAPIWZmcKp9uZHgmY=
github.com/miekg/dns v1.0.14 h1:9jZdLNd/P4+SfEJ0TNyxYpsK8N4GtfylBLqtbYN1sbA=
github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
github.com/mikioh/ipaddr v0.0.0-20190404000644-d465c8ab6721 h1:RlZweED6sbSArvlE924+mUcZuXKLBHA35U7LN621Bws=
github.com/mikioh/ipaddr v0.0.0-20190404000644-d465c8ab6721/go.mod h1:Ickgr2WtCLZ2MDGd4Gr0geeCH5HybhRJbonOgQpvSxc=
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
github.com/mitchellh/go-testing-interface v1.0.0 h1:fzU/JVNcaqHQEcVFAKeR41fkiLdIPrefOvVG1VZ96U0=
github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE=
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
github.com/mmcdole/gofeed v1.0.0 h1:PHqwr8fsEm8xarj9s53XeEAFYhRM3E9Ib7Ie766/LTE=
github.com/mmcdole/gofeed v1.0.0/go.mod h1:tkVcyzS3qVMlQrQxJoEH1hkTiuo9a8emDzkMi7TZBu0=
github.com/mmcdole/goxpp v0.0.0-20181012175147-0068e33feabf h1:sWGE2v+hO0Nd4yFU/S/mDBM5plIU8v/Qhfz41hkDIAI=
github.com/mmcdole/goxpp v0.0.0-20181012175147-0068e33feabf/go.mod h1:pasqhqstspkosTneA62Nc+2p9SOBBYAPbnmRRWPQ0V8=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v0.0.0-20180320133207-05fbef0ca5da/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/multiplay/go-ts3 v1.0.0 h1:loxtEFqvYtpoGh1jOqEt6aDzctYuQsi3vb3dMpvWiWw=
github.com/multiplay/go-ts3 v1.0.0/go.mod h1:14S6cS3fLNT3xOytrA/DkRyAFNuQLMLEqOYAsf87IbQ=
github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
github.com/naoina/go-stringutil v0.1.0 h1:rCUeRUHjBjGTSHl0VC00jUPLz8/F9dDzYI70Hzifhks=
github.com/naoina/go-stringutil v0.1.0/go.mod h1:XJ2SJL9jCtBh+P9q5btrd/Ylo8XwT/h1USek5+NqSA0=
github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg=
github.com/nats-io/jwt v0.3.2 h1:+RB5hMpXUUA2dfxuhBTEkMOrYmM+gKIZYS1KjSostMI=
github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU=
github.com/nats-io/nats-server/v2 v2.1.4 h1:BILRnsJ2Yb/fefiFbBWADpViGF69uh4sxe8poVDQ06g=
github.com/nats-io/nats-server/v2 v2.1.4/go.mod h1:Jw1Z28soD/QasIA2uWjXyM9El1jly3YwyFOuR8tH1rg=
github.com/nats-io/nats.go v1.9.1 h1:ik3HbLhZ0YABLto7iX80pZLPw/6dx3T+++MZJwLnMrQ=
github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w=
github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w=
github.com/nats-io/nkeys v0.1.3 h1:6JrEfig+HzTH85yxzhSVbjHRJv9cn0p6n3IngIcM5/k=
github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w=
github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
github.com/newrelic/newrelic-telemetry-sdk-go v0.2.0 h1:W8+lNIfAldCScGiikToSprbf3DCaMXk0VIM9l73BIpY=
github.com/newrelic/newrelic-telemetry-sdk-go v0.2.0/go.mod h1:G9MqE/cHGv3Hx3qpYhfuyFUsGx2DpVcGi1iJIqTg+JQ=
github.com/nsqio/go-nsq v1.0.7 h1:O0pIZJYTf+x7cZBA0UMY8WxFG79lYTURmWzAAh48ljY=
github.com/nsqio/go-nsq v1.0.7/go.mod h1:XP5zaUs3pqf+Q71EqUJs3HYfBIqfK6G83WQMdNN+Ito=
github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.10.1 h1:q/mM8GF/n0shIN8SaAZ0V+jnLPzen6WIVZdiwrRlMlo=
github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/onsi/gomega v1.7.0 h1:XPnZz8VVBHjVsy1vzJmRwIcSwiUO+JFfrv/xGiigmME=
github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/openconfig/gnmi v0.0.0-20180912164834-33a1865c3029 h1:lXQqyLroROhwR2Yq/kXbLzVecgmVeZh2TFLg6OxCd+w=
github.com/openconfig/gnmi v0.0.0-20180912164834-33a1865c3029/go.mod h1:t+O9It+LKzfOAhKTT5O0ehDix+MTqbtT0T9t+7zzOvc=
github.com/opencontainers/go-digest v1.0.0-rc1 h1:WzifXhOVOEOuFYOJAW6aQqW0TooG2iki3E3Ii+WN7gQ=
github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
github.com/opencontainers/image-spec v1.0.1 h1:JMemWkRwHx4Zj+fVxWoMCFm/8sYGGrUVojFA6h/TRcI=
github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492 h1:lM6RxxfUMrYL/f8bWEUqdXrANWtrL7Nndbm9iFN0DlU=
github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis=
github.com/opentracing/opentracing-go v1.0.2 h1:3jA2P6O1F9UOrWVpwrIo17pu01KWvNWg4X946/Y5Zwg=
github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw=
github.com/openzipkin/zipkin-go-opentracing v0.3.4 h1:x/pBv/5VJNWkcHF1G9xqhug8Iw7X1y1zOMzDmyuvP2g=
github.com/openzipkin/zipkin-go-opentracing v0.3.4/go.mod h1:js2AbwmHW0YD9DwIw2JhQWmbfFi/UnWyYwdVhqbCDOE=
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY=
github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
github.com/pierrec/lz4 v2.2.6+incompatible h1:6aCX4/YZ9v8q69hTyiR7dNLnTA3fgtKHVVW5BCd5Znw=
github.com/pierrec/lz4 v2.2.6+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
github.com/prometheus/client_golang v0.9.2/go.mod h1:OsXs2jCmiKlQ1lTBmv21f2mNfw4xf/QclQDMrYNZzcM=
github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829 h1:D+CiwcpGTW6pL6bv6KI3KbyEyCKyS+1JWS2h8PNDnGA=
github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs=
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
github.com/prometheus/client_golang v1.5.1 h1:bdHYieyGlH+6OLEk2YQha8THib30KP0/yD0YH9m6xcA=
github.com/prometheus/client_golang v1.5.1/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU=
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f h1:BVwpUVJDADN2ufcGik7W992pyps0wZ888b/y9GXcLTU=
github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM=
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M=
github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/prometheus/common v0.0.0-20181126121408-4724e9255275/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro=
github.com/prometheus/common v0.2.0 h1:kUZDBDTdBVBYBj5Tmh2NZLlF60mfjA27rM34b+cVwNU=
github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
github.com/prometheus/common v0.9.1 h1:KOMtN28tlbam3/7ZKEYKHhKoJZYYj3gMH4uc62x7X7U=
github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4=
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1 h1:/K3IL0Z1quvmJ7X0A1AwNEK7CRkVK3YwfOU/QAL4WGg=
github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
github.com/prometheus/procfs v0.0.8 h1:+fpWZdT24pJBiqJdAwYBjPSk+5YmQzYNPYzQsdzLkt8=
github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A=
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a h1:9ZKAASQSHhDYGoxY8uLVpewe1GDZ2vu2Tr/vTdVAkFQ=
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/safchain/ethtool v0.0.0-20200218184317-f459e2d13664 h1:gvolwzuDhul9qK6/oHqxCHD5TEYfsWNBGidOeG6kvpk=
github.com/safchain/ethtool v0.0.0-20200218184317-f459e2d13664/go.mod h1:Z0q5wiBQGYcxhMZ6gUqHn6pYNLypFAvaL3UvgZLR0U4=
github.com/samuel/go-zookeeper v0.0.0-20180130194729-c4fab1ac1bec h1:6ncX5ko6B9LntYM0YBRXkiSaZMmLYeZ/NWcmeB43mMY=
github.com/samuel/go-zookeeper v0.0.0-20180130194729-c4fab1ac1bec/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I=
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
github.com/shirou/gopsutil v2.20.2+incompatible h1:ucK79BhBpgqQxPASyS2cu9HX8cfDVljBN1WWFvbNvgY=
github.com/shirou/gopsutil v2.20.2+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA=
github.com/shopspring/decimal v0.0.0-20200105231215-408a2507e114 h1:Pm6R878vxWWWR+Sa3ppsLce/Zq+JNTs6aVvRu13jv9A=
github.com/shopspring/decimal v0.0.0-20200105231215-408a2507e114/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
github.com/sirupsen/logrus v1.2.0 h1:juTguoYk5qI21pwyTXY3B3Y5cOTH3ZUyZCg1v/mihuo=
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/soniah/gosnmp v1.25.0 h1:0y8vpjD07NPmnT+wojnUrKkYLX9Fxw1jI4cGTumWugQ=
github.com/soniah/gosnmp v1.25.0/go.mod h1:8YvfZxH388NIIw2A+X5z2Oh97VcNhtmxDLt5QeUzVuQ=
github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8 h1:l6epF6yBwuejBfhGkM5m8VSNM/QAm7ApGyH35ehA7eQ=
github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8/go.mod h1:1WNBiOZtZQLpVAyu0iTduoJL9hEsMloAK5XWrtW0xdY=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v0.0.0-20151208002404-e3a8ff8ce365/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/tbrandon/mbserver v0.0.0-20170611213546-993e1772cc62 h1:Oj2e7Sae4XrOsk3ij21QjjEgAcVSeo9nkp0dI//cD2o=
github.com/tbrandon/mbserver v0.0.0-20170611213546-993e1772cc62/go.mod h1:qUzPVlSj2UgxJkVbH0ZwuuiR46U8RBMDT5KLY78Ifpw=
github.com/tedsuo/ifrit v0.0.0-20191009134036-9a97d0632f00 h1:mujcChM89zOHwgZBBNr5WZ77mBXP1yR+gLThGCYZgAg=
github.com/tedsuo/ifrit v0.0.0-20191009134036-9a97d0632f00/go.mod h1:eyZnKCc955uh98WQvzOm0dgAeLnf2O0Rz0LPoC5ze+0=
github.com/tidwall/gjson v1.3.0 h1:kfpsw1W3trbg4Xm6doUtqSl9+LhLB6qJ9PkltVAQZYs=
github.com/tidwall/gjson v1.3.0/go.mod h1:P256ACg0Mn+j1RXIDXoss50DeIABTYK1PULOJHhxOls=
github.com/tidwall/match v1.0.1 h1:PnKP62LPNxHKTwvHHZZzdOAOCtsJTjo6dZLCwpKm5xc=
github.com/tidwall/match v1.0.1/go.mod h1:LujAq0jyVjBy028G1WhWfIzbpQfMO8bBZ6Tyb0+pL9E=
github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4=
github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
github.com/vishvananda/netlink v0.0.0-20171020171820-b2de5d10e38e h1:f1yevOHP+Suqk0rVc13fIkzcLULJbyQcXDba2klljD0=
github.com/vishvananda/netlink v0.0.0-20171020171820-b2de5d10e38e/go.mod h1:+SR5DhBJrl6ZM7CoCKvpw5BKroDKQ+PJqOg65H/2ktk=
github.com/vishvananda/netns v0.0.0-20180720170159-13995c7128cc h1:R83G5ikgLMxrBvLh22JhdfI8K6YXEPHx5P03Uu3DRs4=
github.com/vishvananda/netns v0.0.0-20180720170159-13995c7128cc/go.mod h1:ZjcWmFBXmLKZu9Nxj3WKYEafiSqer2rnvPr0en9UNpI=
github.com/vjeantet/grok v1.0.0 h1:uxMqatJP6MOFXsj6C1tZBnqqAThQEeqnizUZ48gSJQQ=
github.com/vjeantet/grok v1.0.0/go.mod h1:/FWYEVYekkm+2VjcFmO9PufDU5FgXHUz9oy2EGqmQBo=
github.com/vmware/govmomi v0.19.0 h1:CR6tEByWCPOnRoRyhLzuHaU+6o2ybF3qufNRWS/MGrY=
github.com/vmware/govmomi v0.19.0/go.mod h1:URlwyTFZX72RmxtxuaFL2Uj3fD1JTvZdx59bHWk6aFU=
github.com/wavefronthq/wavefront-sdk-go v0.9.2 h1:/LvWgZYNjHFUg+ZUX+qv+7e+M8sEMi0lM15zPp681Gk=
github.com/wavefronthq/wavefront-sdk-go v0.9.2/go.mod h1:hQI6y8M9OtTCtc0xdwh+dCER4osxXdEAeCpacjpDZEU=
github.com/wvanbergen/kafka v0.0.0-20171203153745-e2edea948ddf h1:TOV5PC6fIWwFOFra9xJfRXZcL2pLhMI8oNuDugNxg9Q=
github.com/wvanbergen/kafka v0.0.0-20171203153745-e2edea948ddf/go.mod h1:nxx7XRXbR9ykhnC8lXqQyJS0rfvJGxKyKw/sT1YOttg=
github.com/wvanbergen/kazoo-go v0.0.0-20180202103751-f72d8611297a h1:ILoU84rj4AQ3q6cjQvtb9jBjx4xzR/Riq/zYhmDQiOk=
github.com/wvanbergen/kazoo-go v0.0.0-20180202103751-f72d8611297a/go.mod h1:vQQATAGxVK20DC1rRubTJbZDDhhpA4QfU02pMdPxGO4=
github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I=
github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/gopher-lua v0.0.0-20180630135845-46796da1b0b4 h1:f6CCNiTjQZ0uWK4jPwhwYB8QIGGfn0ssD9kVzRUUUpk=
github.com/yuin/gopher-lua v0.0.0-20180630135845-46796da1b0b4/go.mod h1:aEV29XrmTYFr3CiRxZeGHpkvbwq+prZduBqMaascyCU=
go.opencensus.io v0.20.1 h1:pMEjRZ1M4ebWGikflH7nQpV6+Zr88KBMA2XJD3sbijw=
go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opencensus.io v0.22.3 h1:8sGtKOrtQqkN1bp2AtX+misvLIlOmsEsNd+9NIcPEm8=
go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190404164418-38d8ce5564a5/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE=
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191002192127-34f69633bfdc/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413 h1:ULYEB3JvPRE/IfO+9uO7vKV/xzVTO7XPAwm8xbf4w2g=
golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200204104054-c9f3fb736b72 h1:+ELyKg6m8UBf0nPFSqD0mi7zUfwPyXo23HNjMnXPz7w=
golang.org/x/crypto v0.0.0-20200204104054-c9f3fb736b72/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2 h1:y102fOLFqhV41b+4GPiJoa0k/x+pJcEi2/HB1Y5T6fU=
golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek=
golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY=
golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6 h1:QE6XYQK6naiK1EPAe1g/ILLxN5RBoH5xkJk3CqlMI/Y=
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs=
golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
golang.org/x/lint v0.0.0-20200302205851-738671d3881b h1:Wh+f8QHJXR411sJR8/vRBTZ7YapZaRvUcLFFJhusH0k=
golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
golang.org/x/mod v0.2.0 h1:KU7oHjnv3XNWfa5COkzUifxZmxp1TyI7ImMXqFxLwvQ=
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191003171128-d98b1b443823/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9 h1:rjwSpXsdiK0dV8/Naq3kAw9ymfAeJIyd0upUIElB+lI=
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191007182048-72f939374954/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200202094626-16171245cfb2 h1:CCH4IOTTfewWjGOlSp+zGcjutRKlBEZQ6wTn8ozI/nI=
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200301022130-244492dfa37a h1:GuSPYbZzB5/dcLNCwLQLsg3obCJtX9IJhpXkvY7kzk0=
golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421 h1:Wo7BWFiOk0QRFMLYMqJGFMd9CgUAcGx7V+qEg/h5IBI=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d h1:TzXSXBo42m9gQenoE3b9BGiEpg5IG2JkU5FkPIawgtw=
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a h1:WXEvlFVvvGxCJLG6REjsT03iWnKLEWinaScsxF2Vm2o=
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190204203706-41f3e6584952/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456 h1:ng0gs1AKnRRuEMZoTLLlbOd+C17zUDepwGQBb/n+JVg=
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191003212358-c178f38b412c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4 h1:sfkvUWPNGwSV+8/fNqctR5lS2AqCSqYwXdrjCxp/dXo=
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c h1:fqgJT0MGcGpPgpWU7VRdRjuArfcOvC4AoJmILihzhDg=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20200317043434-63da46f3035e h1:8ogAbHWoJTPepnVbNRqXLOpzMkl0rtRsM7crbflc4XM=
golang.org/x/tools v0.0.0-20200317043434-63da46f3035e/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.zx2c4.com/wireguard v0.0.20200121 h1:vcswa5Q6f+sylDfjqyrVNNrjsFUUbPsgAQTBCAg/Qf8=
golang.zx2c4.com/wireguard v0.0.20200121/go.mod h1:P2HsVp8SKwZEufsnezXZA4GRX/T49/HlU7DGuelXsU4=
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20200205215550-e35592f146e4 h1:KTi97NIQGgSMaN0v/oxniJV0MEzfzmrDUOAWxombQVc=
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20200205215550-e35592f146e4/go.mod h1:UdS9frhv65KTfwxME1xE8+rHYoFpbm36gOud1GhBe9c=
gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo=
gonum.org/v1/gonum v0.6.2 h1:4r+yNT0+8SWcOkXP+63H2zQbN+USnC73cjGUxnDF94Q=
gonum.org/v1/gonum v0.6.2/go.mod h1:9mxDZsDKxgMAuccQkewq682L+0eCu4dCN2yonUJTCLU=
gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0 h1:OE9mWmgKkjJyEmDAAtGMPjXu+YNeGvK9VTSHY6+Qihc=
gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw=
gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc=
google.golang.org/api v0.3.1 h1:oJra/lMfmtm13/rgY/8i3MzjFWYXvQIAKjQ3HqofMk8=
google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk=
google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
google.golang.org/api v0.20.0 h1:jz2KixHX7EcCPiQrySzPdnYT7DbINAypCqKZ1Z7GM40=
google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
google.golang.org/appengine v1.6.5 h1:tycE03LOZYQNhDpS27tcQdAzLCVMaj7QT2SXxebnpCM=
google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107 h1:xtNn7qFlagY2mQNFHMSRPjT2RkOV4OXM7P5TVy9xATo=
google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA=
google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
google.golang.org/genproto v0.0.0-20200317114155-1f3552e48f24 h1:IGPykv426z7LZSVPlaPufOyphngM4at5uZ7x5alaFvE=
google.golang.org/genproto v0.0.0-20200317114155-1f3552e48f24/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
google.golang.org/grpc v1.19.0 h1:cfg4PD8YEdSFnm7qLV4++93WcmhH2nIUhMjhdCvl3j8=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
google.golang.org/grpc v1.28.0 h1:bO/TA4OxCOummhSf10siHuG7vJOiwh7SpRpFZDkOgl4=
google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60=
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d h1:TxyelI5cVkbREznMhfzycHdkp5cLA7DpE+GKjSslYhM=
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/fatih/pool.v2 v2.0.0 h1:xIFeWtxifuQJGk/IEPKsTduEKcKvPmhoiVDGpC40nKg=
gopkg.in/fatih/pool.v2 v2.0.0/go.mod h1:8xVGeu1/2jr2wm5V9SPuMht2H5AEmf5aFMGSQixtjTY=
gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/gorethink/gorethink.v3 v3.0.5 h1:e2Uc/Xe+hpcVQFsj6MuHlYog3r0JYpnTzwDj/y2O4MU=
gopkg.in/gorethink/gorethink.v3 v3.0.5/go.mod h1:+3yIIHJUGMBK+wyPH+iN5TP+88ikFDfZdqTlK3Y9q8I=
gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
gopkg.in/jcmturner/aescts.v1 v1.0.1 h1:cVVZBK2b1zY26haWB4vbBiZrfFQnfbTVrE3xZq6hrEw=
gopkg.in/jcmturner/aescts.v1 v1.0.1/go.mod h1:nsR8qBOg+OucoIW+WMhB3GspUQXq9XorLnQb9XtvcOo=
gopkg.in/jcmturner/dnsutils.v1 v1.0.1 h1:cIuC1OLRGZrld+16ZJvvZxVJeKPsvd5eUIvxfoN5hSM=
gopkg.in/jcmturner/dnsutils.v1 v1.0.1/go.mod h1:m3v+5svpVOhtFAP/wSz+yzh4Mc0Fg7eRhxkJMWSIz9Q=
gopkg.in/jcmturner/goidentity.v3 v3.0.0 h1:1duIyWiTaYvVx3YX2CYtpJbUFd7/UuPYCfgXtQ3VTbI=
gopkg.in/jcmturner/goidentity.v3 v3.0.0/go.mod h1:oG2kH0IvSYNIu80dVAyu/yoefjq1mNfM5bm88whjWx4=
gopkg.in/jcmturner/gokrb5.v7 v7.2.3/go.mod h1:l8VISx+WGYp+Fp7KRbsiUuXTTOnxIc3Tuvyavf11/WM=
gopkg.in/jcmturner/gokrb5.v7 v7.3.0 h1:0709Jtq/6QXEuWRfAm260XqlpcwL1vxtO1tUE2qK8Z4=
gopkg.in/jcmturner/gokrb5.v7 v7.3.0/go.mod h1:l8VISx+WGYp+Fp7KRbsiUuXTTOnxIc3Tuvyavf11/WM=
gopkg.in/jcmturner/rpc.v1 v1.1.0 h1:QHIUxTX1ISuAv9dD2wJ9HWQVuWDX/Zc0PfeC2tjc4rU=
gopkg.in/jcmturner/rpc.v1 v1.1.0/go.mod h1:YIdkC4XfD6GXbzje11McwsDuOlZQSb9W4vfLvuNnlv8=
gopkg.in/ldap.v3 v3.1.0 h1:DIDWEjI7vQWREh0S8X5/NFPCZ3MCVd55LmXKPW4XLGE=
gopkg.in/ldap.v3 v3.1.0/go.mod h1:dQjCc0R0kfyFjIlWNMH1DORwUASZyDxo2Ry1B51dXaQ=
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce h1:xcEWjVhvbDy+nHP67nPDDpbYrY+ILlfndk4bRioVHaU=
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA=
gopkg.in/olivere/elastic.v5 v5.0.70 h1:DqFG2Odzs74JCz6SssgJjd6qpGnsOAzNc7+l5EnvsnE=
gopkg.in/olivere/elastic.v5 v5.0.70/go.mod h1:FylZT6jQWtfHsicejzOm3jIMVPOAksa80i3o+6qtQRk=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I=
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.5 h1:ymVxjfMaHvXD8RqPRmzHHsB3VvucivSkIAvJFDI5O3c=
gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo=
gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
honnef.co/go/tools v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
k8s.io/apimachinery v0.17.1 h1:zUjS3szTxoUjTDYNvdFkYt2uMEXLcthcbp+7uZvWhYM=
k8s.io/apimachinery v0.17.1/go.mod h1:b9qmWdKlLuU9EBh+06BtLcSf/Mu89rWL33naRxs1uZg=
k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk=
k8s.io/klog v1.0.0 h1:Pt+yjF5aB1xDSVbau4VsWe+dQNzA0qv1LlXdC2dF6Q8=
k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I=
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e/go.mod h1:wWxsB5ozmmv/SG7nM11ayaAW51xMvak/t1r0CSlcokI=
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=

View File

@ -1,11 +1,7 @@
package telegraf
type Input interface {
// SampleConfig returns the default configuration of the Input
SampleConfig() string
// Description returns a one-sentence description on the Input
Description() string
PluginDescriber
// Gather takes in an accumulator and adds the metrics that the Input
// gathers. This is called every "interval"
@ -13,17 +9,10 @@ type Input interface {
}
type ServiceInput interface {
// SampleConfig returns the default configuration of the Input
SampleConfig() string
Input
// Description returns a one-sentence description on the Input
Description() string
// Gather takes in an accumulator and adds the metrics that the Input
// gathers. This is called every "interval"
Gather(Accumulator) error
// Start starts the ServiceInput's service, whatever that may be
// Start the ServiceInput. The Accumulator may be retained and used until
// Stop returns.
Start(Accumulator) error
// Stop stops the services and closes any necessary channels and connections

View File

@ -1,74 +0,0 @@
package buffer
import (
"sync"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/selfstat"
)
var (
MetricsWritten = selfstat.Register("agent", "metrics_written", map[string]string{})
MetricsDropped = selfstat.Register("agent", "metrics_dropped", map[string]string{})
)
// Buffer is an object for storing metrics in a circular buffer.
type Buffer struct {
buf chan telegraf.Metric
mu sync.Mutex
}
// NewBuffer returns a Buffer
// size is the maximum number of metrics that Buffer will cache. If Add is
// called when the buffer is full, then the oldest metric(s) will be dropped.
func NewBuffer(size int) *Buffer {
return &Buffer{
buf: make(chan telegraf.Metric, size),
}
}
// IsEmpty returns true if Buffer is empty.
func (b *Buffer) IsEmpty() bool {
return len(b.buf) == 0
}
// Len returns the current length of the buffer.
func (b *Buffer) Len() int {
return len(b.buf)
}
// Add adds metrics to the buffer.
func (b *Buffer) Add(metrics ...telegraf.Metric) {
for i, _ := range metrics {
MetricsWritten.Incr(1)
select {
case b.buf <- metrics[i]:
default:
MetricsDropped.Incr(1)
<-b.buf
b.buf <- metrics[i]
}
}
}
// Batch returns a batch of metrics of size batchSize.
// the batch will be of maximum length batchSize. It can be less than batchSize,
// if the length of Buffer is less than batchSize.
func (b *Buffer) Batch(batchSize int) []telegraf.Metric {
b.mu.Lock()
n := min(len(b.buf), batchSize)
out := make([]telegraf.Metric, n)
for i := 0; i < n; i++ {
out[i] = <-b.buf
}
b.mu.Unlock()
return out
}
func min(a, b int) int {
if b < a {
return b
}
return a
}

View File

@ -1,100 +0,0 @@
package buffer
import (
"testing"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/testutil"
"github.com/stretchr/testify/assert"
)
var metricList = []telegraf.Metric{
testutil.TestMetric(2, "mymetric1"),
testutil.TestMetric(1, "mymetric2"),
testutil.TestMetric(11, "mymetric3"),
testutil.TestMetric(15, "mymetric4"),
testutil.TestMetric(8, "mymetric5"),
}
func BenchmarkAddMetrics(b *testing.B) {
buf := NewBuffer(10000)
m := testutil.TestMetric(1, "mymetric")
for n := 0; n < b.N; n++ {
buf.Add(m)
}
}
func TestNewBufferBasicFuncs(t *testing.T) {
b := NewBuffer(10)
MetricsDropped.Set(0)
MetricsWritten.Set(0)
assert.True(t, b.IsEmpty())
assert.Zero(t, b.Len())
assert.Zero(t, MetricsDropped.Get())
assert.Zero(t, MetricsWritten.Get())
m := testutil.TestMetric(1, "mymetric")
b.Add(m)
assert.False(t, b.IsEmpty())
assert.Equal(t, b.Len(), 1)
assert.Equal(t, int64(0), MetricsDropped.Get())
assert.Equal(t, int64(1), MetricsWritten.Get())
b.Add(metricList...)
assert.False(t, b.IsEmpty())
assert.Equal(t, b.Len(), 6)
assert.Equal(t, int64(0), MetricsDropped.Get())
assert.Equal(t, int64(6), MetricsWritten.Get())
}
func TestDroppingMetrics(t *testing.T) {
b := NewBuffer(10)
MetricsDropped.Set(0)
MetricsWritten.Set(0)
// Add up to the size of the buffer
b.Add(metricList...)
b.Add(metricList...)
assert.False(t, b.IsEmpty())
assert.Equal(t, b.Len(), 10)
assert.Equal(t, int64(0), MetricsDropped.Get())
assert.Equal(t, int64(10), MetricsWritten.Get())
// Add 5 more and verify they were dropped
b.Add(metricList...)
assert.False(t, b.IsEmpty())
assert.Equal(t, b.Len(), 10)
assert.Equal(t, int64(5), MetricsDropped.Get())
assert.Equal(t, int64(15), MetricsWritten.Get())
}
func TestGettingBatches(t *testing.T) {
b := NewBuffer(20)
MetricsDropped.Set(0)
MetricsWritten.Set(0)
// Verify that the buffer returned is smaller than requested when there are
// not as many items as requested.
b.Add(metricList...)
batch := b.Batch(10)
assert.Len(t, batch, 5)
// Verify that the buffer is now empty
assert.True(t, b.IsEmpty())
assert.Zero(t, b.Len())
assert.Zero(t, MetricsDropped.Get())
assert.Equal(t, int64(5), MetricsWritten.Get())
// Verify that the buffer returned is not more than the size requested
b.Add(metricList...)
batch = b.Batch(3)
assert.Len(t, batch, 3)
// Verify that buffer is not empty
assert.False(t, b.IsEmpty())
assert.Equal(t, b.Len(), 2)
assert.Equal(t, int64(0), MetricsDropped.Get())
assert.Equal(t, int64(10), MetricsWritten.Get())
}

36
internal/choice/choice.go Normal file
View File

@ -0,0 +1,36 @@
// Package choice provides basic functions for working with
// plugin options that must be one of several values.
package choice
import "fmt"
// Contains return true if the choice in the list of choices.
func Contains(choice string, choices []string) bool {
for _, item := range choices {
if item == choice {
return true
}
}
return false
}
// CheckSContains returns an error if a choice is not one of
// the available choices.
func Check(choice string, available []string) error {
if !Contains(choice, available) {
return fmt.Errorf("unknown choice %s", choice)
}
return nil
}
// CheckSliceContains returns an error if the choices is not a subset of
// available.
func CheckSlice(choices, available []string) error {
for _, choice := range choices {
err := Check(choice, available)
if err != nil {
return err
}
}
return nil
}

File diff suppressed because it is too large Load Diff

182
internal/content_coding.go Normal file
View File

@ -0,0 +1,182 @@
package internal
import (
"bufio"
"bytes"
"compress/gzip"
"errors"
"io"
)
// NewStreamContentDecoder returns a reader that will decode the stream
// according to the encoding type.
func NewStreamContentDecoder(encoding string, r io.Reader) (io.Reader, error) {
switch encoding {
case "gzip":
return NewGzipReader(r)
case "identity", "":
return r, nil
default:
return nil, errors.New("invalid value for content_encoding")
}
}
// GzipReader is similar to gzip.Reader but reads only a single gzip stream per read.
type GzipReader struct {
r io.Reader
z *gzip.Reader
endOfStream bool
}
func NewGzipReader(r io.Reader) (io.Reader, error) {
// We need a read that implements ByteReader in order to line up the next
// stream.
br := bufio.NewReader(r)
// Reads the first gzip stream header.
z, err := gzip.NewReader(br)
if err != nil {
return nil, err
}
// Prevent future calls to Read from reading the following gzip header.
z.Multistream(false)
return &GzipReader{r: br, z: z}, nil
}
func (r *GzipReader) Read(b []byte) (int, error) {
if r.endOfStream {
// Reads the next gzip header and prepares for the next stream.
err := r.z.Reset(r.r)
if err != nil {
return 0, err
}
r.z.Multistream(false)
r.endOfStream = false
}
n, err := r.z.Read(b)
// Since multistream is disabled, io.EOF indicates the end of the gzip
// sequence. On the next read we must read the next gzip header.
if err == io.EOF {
r.endOfStream = true
return n, nil
}
return n, err
}
// NewContentEncoder returns a ContentEncoder for the encoding type.
func NewContentEncoder(encoding string) (ContentEncoder, error) {
switch encoding {
case "gzip":
return NewGzipEncoder()
case "identity", "":
return NewIdentityEncoder(), nil
default:
return nil, errors.New("invalid value for content_encoding")
}
}
// NewContentDecoder returns a ContentDecoder for the encoding type.
func NewContentDecoder(encoding string) (ContentDecoder, error) {
switch encoding {
case "gzip":
return NewGzipDecoder()
case "identity", "":
return NewIdentityDecoder(), nil
default:
return nil, errors.New("invalid value for content_encoding")
}
}
// ContentEncoder applies a wrapper encoding to byte buffers.
type ContentEncoder interface {
Encode([]byte) ([]byte, error)
}
// GzipEncoder compresses the buffer using gzip at the default level.
type GzipEncoder struct {
writer *gzip.Writer
buf *bytes.Buffer
}
func NewGzipEncoder() (*GzipEncoder, error) {
var buf bytes.Buffer
return &GzipEncoder{
writer: gzip.NewWriter(&buf),
buf: &buf,
}, nil
}
func (e *GzipEncoder) Encode(data []byte) ([]byte, error) {
e.buf.Reset()
e.writer.Reset(e.buf)
_, err := e.writer.Write(data)
if err != nil {
return nil, err
}
err = e.writer.Close()
if err != nil {
return nil, err
}
return e.buf.Bytes(), nil
}
// IdentityEncoder is a null encoder that applies no transformation.
type IdentityEncoder struct{}
func NewIdentityEncoder() *IdentityEncoder {
return &IdentityEncoder{}
}
func (*IdentityEncoder) Encode(data []byte) ([]byte, error) {
return data, nil
}
// ContentDecoder removes a wrapper encoding from byte buffers.
type ContentDecoder interface {
Decode([]byte) ([]byte, error)
}
// GzipDecoder decompresses buffers with gzip compression.
type GzipDecoder struct {
reader *gzip.Reader
buf *bytes.Buffer
}
func NewGzipDecoder() (*GzipDecoder, error) {
return &GzipDecoder{
reader: new(gzip.Reader),
buf: new(bytes.Buffer),
}, nil
}
func (d *GzipDecoder) Decode(data []byte) ([]byte, error) {
d.reader.Reset(bytes.NewBuffer(data))
d.buf.Reset()
_, err := d.buf.ReadFrom(d.reader)
if err != nil && err != io.EOF {
return nil, err
}
err = d.reader.Close()
if err != nil {
return nil, err
}
return d.buf.Bytes(), nil
}
// IdentityDecoder is a null decoder that returns the input.
type IdentityDecoder struct{}
func NewIdentityDecoder() *IdentityDecoder {
return &IdentityDecoder{}
}
func (*IdentityDecoder) Decode(data []byte) ([]byte, error) {
return data, nil
}

View File

@ -0,0 +1,94 @@
package internal
import (
"bytes"
"io/ioutil"
"testing"
"github.com/stretchr/testify/require"
)
func TestGzipEncodeDecode(t *testing.T) {
enc, err := NewGzipEncoder()
require.NoError(t, err)
dec, err := NewGzipDecoder()
require.NoError(t, err)
payload, err := enc.Encode([]byte("howdy"))
require.NoError(t, err)
actual, err := dec.Decode(payload)
require.NoError(t, err)
require.Equal(t, "howdy", string(actual))
}
func TestGzipReuse(t *testing.T) {
enc, err := NewGzipEncoder()
require.NoError(t, err)
dec, err := NewGzipDecoder()
require.NoError(t, err)
payload, err := enc.Encode([]byte("howdy"))
require.NoError(t, err)
actual, err := dec.Decode(payload)
require.NoError(t, err)
require.Equal(t, "howdy", string(actual))
payload, err = enc.Encode([]byte("doody"))
require.NoError(t, err)
actual, err = dec.Decode(payload)
require.NoError(t, err)
require.Equal(t, "doody", string(actual))
}
func TestIdentityEncodeDecode(t *testing.T) {
enc := NewIdentityEncoder()
dec := NewIdentityDecoder()
payload, err := enc.Encode([]byte("howdy"))
require.NoError(t, err)
actual, err := dec.Decode(payload)
require.NoError(t, err)
require.Equal(t, "howdy", string(actual))
}
func TestStreamIdentityDecode(t *testing.T) {
var r bytes.Buffer
n, err := r.Write([]byte("howdy"))
require.NoError(t, err)
require.Equal(t, 5, n)
dec, err := NewStreamContentDecoder("identity", &r)
require.NoError(t, err)
data, err := ioutil.ReadAll(dec)
require.NoError(t, err)
require.Equal(t, []byte("howdy"), data)
}
func TestStreamGzipDecode(t *testing.T) {
enc, err := NewGzipEncoder()
require.NoError(t, err)
written, err := enc.Encode([]byte("howdy"))
require.NoError(t, err)
w := bytes.NewBuffer(written)
dec, err := NewStreamContentDecoder("gzip", w)
require.NoError(t, err)
b := make([]byte, 10)
n, err := dec.Read(b)
require.NoError(t, err)
require.Equal(t, 5, n)
require.Equal(t, []byte("howdy"), b[:n])
}

36
internal/docker/docker.go Normal file
View File

@ -0,0 +1,36 @@
package docker
import "strings"
// Adapts some of the logic from the actual Docker library's image parsing
// routines:
// https://github.com/docker/distribution/blob/release/2.7/reference/normalize.go
func ParseImage(image string) (string, string) {
domain := ""
remainder := ""
i := strings.IndexRune(image, '/')
if i == -1 || (!strings.ContainsAny(image[:i], ".:") && image[:i] != "localhost") {
remainder = image
} else {
domain, remainder = image[:i], image[i+1:]
}
imageName := ""
imageVersion := "unknown"
i = strings.LastIndex(remainder, ":")
if i > -1 {
imageVersion = remainder[i+1:]
imageName = remainder[:i]
} else {
imageName = remainder
}
if domain != "" {
imageName = domain + "/" + imageName
}
return imageName, imageVersion
}

View File

@ -0,0 +1,59 @@
package docker_test
import (
"testing"
"github.com/influxdata/telegraf/internal/docker"
"github.com/stretchr/testify/require"
)
func TestParseImage(t *testing.T) {
tests := []struct {
image string
parsedName string
parsedVersion string
}{
{
image: "postgres",
parsedName: "postgres",
parsedVersion: "unknown",
},
{
image: "postgres:latest",
parsedName: "postgres",
parsedVersion: "latest",
},
{
image: "coreos/etcd",
parsedName: "coreos/etcd",
parsedVersion: "unknown",
},
{
image: "coreos/etcd:latest",
parsedName: "coreos/etcd",
parsedVersion: "latest",
},
{
image: "quay.io/postgres",
parsedName: "quay.io/postgres",
parsedVersion: "unknown",
},
{
image: "quay.io:4443/coreos/etcd",
parsedName: "quay.io:4443/coreos/etcd",
parsedVersion: "unknown",
},
{
image: "quay.io:4443/coreos/etcd:latest",
parsedName: "quay.io:4443/coreos/etcd",
parsedVersion: "latest",
},
}
for _, tt := range tests {
t.Run("parse name "+tt.image, func(t *testing.T) {
imageName, imageVersion := docker.ParseImage(tt.image)
require.Equal(t, tt.parsedName, imageName)
require.Equal(t, tt.parsedVersion, imageVersion)
})
}
}

View File

@ -1,37 +0,0 @@
package errchan
import (
"fmt"
"strings"
)
type ErrChan struct {
C chan error
}
// New returns an error channel of max length 'n'
// errors can be sent to the ErrChan.C channel, and will be returned when
// ErrChan.Error() is called.
func New(n int) *ErrChan {
return &ErrChan{
C: make(chan error, n),
}
}
// Error closes the ErrChan.C channel and returns an error if there are any
// non-nil errors, otherwise returns nil.
func (e *ErrChan) Error() error {
close(e.C)
var out string
for err := range e.C {
if err != nil {
out += "[" + err.Error() + "], "
}
}
if out != "" {
return fmt.Errorf("Errors encountered: " + strings.TrimRight(out, ", "))
}
return nil
}

30
internal/exec.go Normal file
View File

@ -0,0 +1,30 @@
package internal
import (
"bytes"
"os/exec"
"time"
)
// CombinedOutputTimeout runs the given command with the given timeout and
// returns the combined output of stdout and stderr.
// If the command times out, it attempts to kill the process.
func CombinedOutputTimeout(c *exec.Cmd, timeout time.Duration) ([]byte, error) {
var b bytes.Buffer
c.Stdout = &b
c.Stderr = &b
if err := c.Start(); err != nil {
return nil, err
}
err := WaitTimeout(c, timeout)
return b.Bytes(), err
}
// RunTimeout runs the given command with the given timeout.
// If the command times out, it attempts to kill the process.
func RunTimeout(c *exec.Cmd, timeout time.Duration) error {
if err := c.Start(); err != nil {
return err
}
return WaitTimeout(c, timeout)
}

58
internal/exec_unix.go Normal file
View File

@ -0,0 +1,58 @@
// +build !windows
package internal
import (
"log"
"os/exec"
"syscall"
"time"
)
// KillGrace is the amount of time we allow a process to shutdown before
// sending a SIGKILL.
const KillGrace = 5 * time.Second
// WaitTimeout waits for the given command to finish with a timeout.
// It assumes the command has already been started.
// If the command times out, it attempts to kill the process.
func WaitTimeout(c *exec.Cmd, timeout time.Duration) error {
var kill *time.Timer
term := time.AfterFunc(timeout, func() {
err := c.Process.Signal(syscall.SIGTERM)
if err != nil {
log.Printf("E! [agent] Error terminating process: %s", err)
return
}
kill = time.AfterFunc(KillGrace, func() {
err := c.Process.Kill()
if err != nil {
log.Printf("E! [agent] Error killing process: %s", err)
return
}
})
})
err := c.Wait()
// Shutdown all timers
if kill != nil {
kill.Stop()
}
termSent := !term.Stop()
// If the process exited without error treat it as success. This allows a
// process to do a clean shutdown on signal.
if err == nil {
return nil
}
// If SIGTERM was sent then treat any process error as a timeout.
if termSent {
return TimeoutErr
}
// Otherwise there was an error unrelated to termination.
return err
}

41
internal/exec_windows.go Normal file
View File

@ -0,0 +1,41 @@
// +build windows
package internal
import (
"log"
"os/exec"
"time"
)
// WaitTimeout waits for the given command to finish with a timeout.
// It assumes the command has already been started.
// If the command times out, it attempts to kill the process.
func WaitTimeout(c *exec.Cmd, timeout time.Duration) error {
timer := time.AfterFunc(timeout, func() {
err := c.Process.Kill()
if err != nil {
log.Printf("E! [agent] Error killing process: %s", err)
return
}
})
err := c.Wait()
// Shutdown all timers
termSent := !timer.Stop()
// If the process exited without error treat it as success. This allows a
// process to do a clean shutdown on signal.
if err == nil {
return nil
}
// If SIGTERM was sent then treat any process error as a timeout.
if termSent {
return TimeoutErr
}
// Otherwise there was an error unrelated to termination.
return err
}

View File

@ -1,110 +1,116 @@
package globpath
import (
"fmt"
"os"
"path/filepath"
"strings"
"github.com/gobwas/glob"
"github.com/karrick/godirwalk"
)
var sepStr = fmt.Sprintf("%v", string(os.PathSeparator))
type GlobPath struct {
path string
hasMeta bool
hasSuperMeta bool
HasSuperMeta bool
rootGlob string
g glob.Glob
root string
}
func Compile(path string) (*GlobPath, error) {
out := GlobPath{
hasMeta: hasMeta(path),
hasSuperMeta: hasSuperMeta(path),
path: path,
HasSuperMeta: hasSuperMeta(path),
path: filepath.FromSlash(path),
}
// if there are no glob meta characters in the path, don't bother compiling
// a glob object or finding the root directory. (see short-circuit in Match)
if !out.hasMeta || !out.hasSuperMeta {
// a glob object
if !out.hasMeta || !out.HasSuperMeta {
return &out, nil
}
// find the root elements of the object path, the entry point for recursion
// when you have a super-meta in your path (which are :
// glob(/your/expression/until/first/star/of/super-meta))
out.rootGlob = path[:strings.Index(path, "**")+1]
var err error
if out.g, err = glob.Compile(path, os.PathSeparator); err != nil {
return nil, err
}
// Get the root directory for this filepath
out.root = findRootDir(path)
return &out, nil
}
func (g *GlobPath) Match() map[string]os.FileInfo {
// Match returns all files matching the expression.
// If it's a static path, returns path.
// All returned path will have the host platform separator.
func (g *GlobPath) Match() []string {
if !g.hasMeta {
out := make(map[string]os.FileInfo)
info, err := os.Stat(g.path)
if !os.IsNotExist(err) {
out[g.path] = info
return []string{g.path}
}
return out
}
if !g.hasSuperMeta {
out := make(map[string]os.FileInfo)
if !g.HasSuperMeta {
files, _ := filepath.Glob(g.path)
for _, file := range files {
info, err := os.Stat(file)
if !os.IsNotExist(err) {
out[file] = info
return files
}
roots, err := filepath.Glob(g.rootGlob)
if err != nil {
return []string{}
}
return out
}
return walkFilePath(g.root, g.g)
}
// walk the filepath from the given root and return a list of files that match
// the given glob.
func walkFilePath(root string, g glob.Glob) map[string]os.FileInfo {
matchedFiles := make(map[string]os.FileInfo)
walkfn := func(path string, info os.FileInfo, _ error) error {
if g.Match(path) {
matchedFiles[path] = info
out := []string{}
walkfn := func(path string, _ *godirwalk.Dirent) error {
if g.g.Match(path) {
out = append(out, path)
}
return nil
}
filepath.Walk(root, walkfn)
return matchedFiles
}
// find the root dir of the given path (could include globs).
// ie:
// /var/log/telegraf.conf -> /var/log
// /home/** -> /home
// /home/*/** -> /home
// /lib/share/*/*/**.txt -> /lib/share
func findRootDir(path string) string {
pathItems := strings.Split(path, sepStr)
out := sepStr
for i, item := range pathItems {
if i == len(pathItems)-1 {
break
}
if item == "" {
for _, root := range roots {
fileinfo, err := os.Stat(root)
if err != nil {
continue
}
if hasMeta(item) {
break
if !fileinfo.IsDir() {
if g.MatchString(root) {
out = append(out, root)
}
out += item + sepStr
continue
}
if out != "/" {
out = strings.TrimSuffix(out, "/")
godirwalk.Walk(root, &godirwalk.Options{
Callback: walkfn,
Unsorted: true,
})
}
return out
}
// MatchString tests the path string against the glob. The path should contain
// the host platform separator.
func (g *GlobPath) MatchString(path string) bool {
if !g.HasSuperMeta {
res, _ := filepath.Match(g.path, path)
return res
}
return g.g.Match(path)
}
// GetRoots returns a list of files and directories which should be optimal
// prefixes of matching files when you have a super-meta in your expression :
// - any directory under these roots may contain a matching file
// - no file outside of these roots can match the pattern
// Note that it returns both files and directories.
// All returned path will have the host platform separator.
func (g *GlobPath) GetRoots() []string {
if !g.hasMeta {
return []string{g.path}
}
if !g.HasSuperMeta {
matches, _ := filepath.Glob(g.path)
return matches
}
roots, _ := filepath.Glob(g.rootGlob)
return roots
}
// hasMeta reports whether path contains any magic glob characters.
func hasMeta(path string) bool {
return strings.IndexAny(path, "*?[") >= 0

View File

@ -5,7 +5,6 @@ import (
"strings"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
@ -28,31 +27,32 @@ func TestCompileAndMatch(t *testing.T) {
require.NoError(t, err)
matches := g1.Match()
assert.Len(t, matches, 6)
require.Len(t, matches, 6)
matches = g2.Match()
assert.Len(t, matches, 2)
require.Len(t, matches, 2)
matches = g3.Match()
assert.Len(t, matches, 1)
require.Len(t, matches, 1)
matches = g4.Match()
assert.Len(t, matches, 0)
require.Len(t, matches, 1)
matches = g5.Match()
assert.Len(t, matches, 0)
require.Len(t, matches, 0)
}
func TestFindRootDir(t *testing.T) {
func TestRootGlob(t *testing.T) {
dir := getTestdataDir()
tests := []struct {
input string
output string
}{
{"/var/log/telegraf.conf", "/var/log"},
{"/home/**", "/home"},
{"/home/*/**", "/home"},
{"/lib/share/*/*/**.txt", "/lib/share"},
{dir + "/**", dir + "/*"},
{dir + "/nested?/**", dir + "/nested?/*"},
{dir + "/ne**/nest*", dir + "/ne*"},
{dir + "/nested?/*", ""},
}
for _, test := range tests {
actual := findRootDir(test.input)
assert.Equal(t, test.output, actual)
actual, _ := Compile(test.input)
require.Equal(t, actual.rootGlob, test.output)
}
}
@ -63,10 +63,38 @@ func TestFindNestedTextFile(t *testing.T) {
require.NoError(t, err)
matches := g1.Match()
assert.Len(t, matches, 1)
require.Len(t, matches, 1)
}
func getTestdataDir() string {
_, filename, _, _ := runtime.Caller(1)
return strings.Replace(filename, "globpath_test.go", "testdata", 1)
}
func TestMatch_ErrPermission(t *testing.T) {
tests := []struct {
input string
expected []string
}{
{"/root/foo", []string{"/root/foo"}},
{"/root/f*", []string(nil)},
}
for _, test := range tests {
glob, err := Compile(test.input)
require.NoError(t, err)
actual := glob.Match()
require.Equal(t, test.expected, actual)
}
}
func TestWindowsSeparator(t *testing.T) {
if runtime.GOOS != "windows" {
t.Skip("Skipping Windows only test")
}
glob, err := Compile("testdata/nested1")
require.NoError(t, err)
ok := glob.MatchString("testdata\\nested1")
require.True(t, ok)
}

View File

@ -0,0 +1,9 @@
// +build !goplugin
package goplugin
import "errors"
func LoadExternalPlugins(rootDir string) error {
return errors.New("go plugin support is not enabled")
}

View File

@ -0,0 +1,42 @@
// +build goplugin
package goplugin
import (
"fmt"
"os"
"path"
"path/filepath"
"plugin"
"strings"
)
// loadExternalPlugins loads external plugins from shared libraries (.so, .dll, etc.)
// in the specified directory.
func LoadExternalPlugins(rootDir string) error {
return filepath.Walk(rootDir, func(pth string, info os.FileInfo, err error) error {
// Stop if there was an error.
if err != nil {
return err
}
// Ignore directories.
if info.IsDir() {
return nil
}
// Ignore files that aren't shared libraries.
ext := strings.ToLower(path.Ext(pth))
if ext != ".so" && ext != ".dll" {
return nil
}
// Load plugin.
_, err = plugin.Open(pth)
if err != nil {
return fmt.Errorf("error loading %s: %s", pth, err)
}
return nil
})
}

108
internal/http.go Normal file
View File

@ -0,0 +1,108 @@
package internal
import (
"crypto/subtle"
"net"
"net/http"
"net/url"
)
type BasicAuthErrorFunc func(rw http.ResponseWriter)
// AuthHandler returns a http handler that requires HTTP basic auth
// credentials to match the given username and password.
func AuthHandler(username, password, realm string, onError BasicAuthErrorFunc) func(h http.Handler) http.Handler {
return func(h http.Handler) http.Handler {
return &basicAuthHandler{
username: username,
password: password,
realm: realm,
onError: onError,
next: h,
}
}
}
type basicAuthHandler struct {
username string
password string
realm string
onError BasicAuthErrorFunc
next http.Handler
}
func (h *basicAuthHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
if h.username != "" || h.password != "" {
reqUsername, reqPassword, ok := req.BasicAuth()
if !ok ||
subtle.ConstantTimeCompare([]byte(reqUsername), []byte(h.username)) != 1 ||
subtle.ConstantTimeCompare([]byte(reqPassword), []byte(h.password)) != 1 {
rw.Header().Set("WWW-Authenticate", "Basic realm=\""+h.realm+"\"")
h.onError(rw)
http.Error(rw, http.StatusText(http.StatusUnauthorized), http.StatusUnauthorized)
return
}
}
h.next.ServeHTTP(rw, req)
}
// ErrorFunc is a callback for writing an error response.
type ErrorFunc func(rw http.ResponseWriter, code int)
// IPRangeHandler returns a http handler that requires the remote address to be
// in the specified network.
func IPRangeHandler(network []*net.IPNet, onError ErrorFunc) func(h http.Handler) http.Handler {
return func(h http.Handler) http.Handler {
return &ipRangeHandler{
network: network,
onError: onError,
next: h,
}
}
}
type ipRangeHandler struct {
network []*net.IPNet
onError ErrorFunc
next http.Handler
}
func (h *ipRangeHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
if len(h.network) == 0 {
h.next.ServeHTTP(rw, req)
return
}
remoteIPString, _, err := net.SplitHostPort(req.RemoteAddr)
if err != nil {
h.onError(rw, http.StatusForbidden)
return
}
remoteIP := net.ParseIP(remoteIPString)
if remoteIP == nil {
h.onError(rw, http.StatusForbidden)
return
}
for _, net := range h.network {
if net.Contains(remoteIP) {
h.next.ServeHTTP(rw, req)
return
}
}
h.onError(rw, http.StatusForbidden)
}
func OnClientError(client *http.Client, err error) {
// Close connection after a timeout error. If this is a HTTP2
// connection this ensures that next interval a new connection will be
// used and name lookup will be performed.
// https://github.com/golang/go/issues/36026
if err, ok := err.(*url.Error); ok && err.Timeout() {
client.CloseIdleConnections()
}
}

View File

@ -3,20 +3,24 @@ package internal
import (
"bufio"
"bytes"
"crypto/rand"
"crypto/tls"
"crypto/x509"
"compress/gzip"
"context"
"errors"
"fmt"
"io/ioutil"
"log"
"math/big"
"io"
"math"
"math/rand"
"os"
"os/exec"
"runtime"
"strconv"
"strings"
"sync"
"syscall"
"time"
"unicode"
"github.com/alecthomas/units"
)
const alphanum string = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
@ -25,13 +29,52 @@ var (
TimeoutErr = errors.New("Command timed out.")
NotImplementedError = errors.New("not implemented yet")
VersionAlreadySetError = errors.New("version has already been set")
)
// Set via the main module
var version string
// Duration just wraps time.Duration
type Duration struct {
Duration time.Duration
}
// Size just wraps an int64
type Size struct {
Size int64
}
type Number struct {
Value float64
}
type ReadWaitCloser struct {
pipeReader *io.PipeReader
wg sync.WaitGroup
}
// SetVersion sets the telegraf agent version
func SetVersion(v string) error {
if version != "" {
return VersionAlreadySetError
}
version = v
return nil
}
// Version returns the telegraf agent version
func Version() string {
return version
}
// ProductToken returns a tag for Telegraf that can be used in user agents.
func ProductToken() string {
return fmt.Sprintf("Telegraf/%s Go/%s",
Version(), strings.TrimPrefix(runtime.Version(), "go"))
}
// UnmarshalTOML parses the duration from the TOML config file
func (d *Duration) UnmarshalTOML(b []byte) error {
var err error
@ -67,6 +110,37 @@ func (d *Duration) UnmarshalTOML(b []byte) error {
return nil
}
func (s *Size) UnmarshalTOML(b []byte) error {
var err error
b = bytes.Trim(b, `'`)
val, err := strconv.ParseInt(string(b), 10, 64)
if err == nil {
s.Size = val
return nil
}
uq, err := strconv.Unquote(string(b))
if err != nil {
return err
}
val, err = units.ParseStrictBytes(uq)
if err != nil {
return err
}
s.Size = val
return nil
}
func (n *Number) UnmarshalTOML(b []byte) error {
value, err := strconv.ParseFloat(string(b), 64)
if err != nil {
return err
}
n.Value = value
return nil
}
// ReadLines reads contents from a file and splits them by new lines.
// A convenience wrapper to ReadLinesOffsetN(filename, 0, -1).
func ReadLines(filename string) ([]string, error) {
@ -112,49 +186,6 @@ func RandomString(n int) string {
return string(bytes)
}
// GetTLSConfig gets a tls.Config object from the given certs, key, and CA files.
// you must give the full path to the files.
// If all files are blank and InsecureSkipVerify=false, returns a nil pointer.
func GetTLSConfig(
SSLCert, SSLKey, SSLCA string,
InsecureSkipVerify bool,
) (*tls.Config, error) {
if SSLCert == "" && SSLKey == "" && SSLCA == "" && !InsecureSkipVerify {
return nil, nil
}
t := &tls.Config{
InsecureSkipVerify: InsecureSkipVerify,
}
if SSLCA != "" {
caCert, err := ioutil.ReadFile(SSLCA)
if err != nil {
return nil, errors.New(fmt.Sprintf("Could not load TLS CA: %s",
err))
}
caCertPool := x509.NewCertPool()
caCertPool.AppendCertsFromPEM(caCert)
t.RootCAs = caCertPool
}
if SSLCert != "" && SSLKey != "" {
cert, err := tls.LoadX509KeyPair(SSLCert, SSLKey)
if err != nil {
return nil, errors.New(fmt.Sprintf(
"Could not load TLS client key/certificate from %s:%s: %s",
SSLKey, SSLCert, err))
}
t.Certificates = []tls.Certificate{cert}
t.BuildNameToCertificate()
}
// will be nil by default if nothing is provided
return t, nil
}
// SnakeCase converts the given string to snake case following the Golang format:
// acronyms are converted to lower-case and preceded by an underscore.
func SnakeCase(in string) string {
@ -172,51 +203,6 @@ func SnakeCase(in string) string {
return string(out)
}
// CombinedOutputTimeout runs the given command with the given timeout and
// returns the combined output of stdout and stderr.
// If the command times out, it attempts to kill the process.
func CombinedOutputTimeout(c *exec.Cmd, timeout time.Duration) ([]byte, error) {
var b bytes.Buffer
c.Stdout = &b
c.Stderr = &b
if err := c.Start(); err != nil {
return nil, err
}
err := WaitTimeout(c, timeout)
return b.Bytes(), err
}
// RunTimeout runs the given command with the given timeout.
// If the command times out, it attempts to kill the process.
func RunTimeout(c *exec.Cmd, timeout time.Duration) error {
if err := c.Start(); err != nil {
return err
}
return WaitTimeout(c, timeout)
}
// WaitTimeout waits for the given command to finish with a timeout.
// It assumes the command has already been started.
// If the command times out, it attempts to kill the process.
func WaitTimeout(c *exec.Cmd, timeout time.Duration) error {
timer := time.NewTimer(timeout)
done := make(chan error)
go func() { done <- c.Wait() }()
select {
case err := <-done:
timer.Stop()
return err
case <-timer.C:
if err := c.Process.Kill(); err != nil {
log.Printf("E! FATAL error killing process: %s", err)
return err
}
// wait for the command to return after killing it
<-done
return TimeoutErr
}
}
// RandomSleep will sleep for a random amount of time up to max.
// If the shutdown channel is closed, it will return before it has finished
// sleeping.
@ -224,12 +210,8 @@ func RandomSleep(max time.Duration, shutdown chan struct{}) {
if max == 0 {
return
}
maxSleep := big.NewInt(max.Nanoseconds())
var sleepns int64
if j, err := rand.Int(rand.Reader, maxSleep); err == nil {
sleepns = j.Int64()
}
sleepns := rand.Int63n(max.Nanoseconds())
t := time.NewTimer(time.Nanosecond * time.Duration(sleepns))
select {
@ -240,3 +222,203 @@ func RandomSleep(max time.Duration, shutdown chan struct{}) {
return
}
}
// RandomDuration returns a random duration between 0 and max.
func RandomDuration(max time.Duration) time.Duration {
if max == 0 {
return 0
}
sleepns := rand.Int63n(max.Nanoseconds())
return time.Duration(sleepns)
}
// SleepContext sleeps until the context is closed or the duration is reached.
func SleepContext(ctx context.Context, duration time.Duration) error {
if duration == 0 {
return nil
}
t := time.NewTimer(duration)
select {
case <-t.C:
return nil
case <-ctx.Done():
t.Stop()
return ctx.Err()
}
}
// AlignDuration returns the duration until next aligned interval.
// If the current time is aligned a 0 duration is returned.
func AlignDuration(tm time.Time, interval time.Duration) time.Duration {
return AlignTime(tm, interval).Sub(tm)
}
// AlignTime returns the time of the next aligned interval.
// If the current time is aligned the current time is returned.
func AlignTime(tm time.Time, interval time.Duration) time.Time {
truncated := tm.Truncate(interval)
if truncated == tm {
return tm
}
return truncated.Add(interval)
}
// Exit status takes the error from exec.Command
// and returns the exit status and true
// if error is not exit status, will return 0 and false
func ExitStatus(err error) (int, bool) {
if exiterr, ok := err.(*exec.ExitError); ok {
if status, ok := exiterr.Sys().(syscall.WaitStatus); ok {
return status.ExitStatus(), true
}
}
return 0, false
}
func (r *ReadWaitCloser) Close() error {
err := r.pipeReader.Close()
r.wg.Wait() // wait for the gzip goroutine finish
return err
}
// CompressWithGzip takes an io.Reader as input and pipes
// it through a gzip.Writer returning an io.Reader containing
// the gzipped data.
// An error is returned if passing data to the gzip.Writer fails
func CompressWithGzip(data io.Reader) (io.ReadCloser, error) {
pipeReader, pipeWriter := io.Pipe()
gzipWriter := gzip.NewWriter(pipeWriter)
rc := &ReadWaitCloser{
pipeReader: pipeReader,
}
rc.wg.Add(1)
var err error
go func() {
_, err = io.Copy(gzipWriter, data)
gzipWriter.Close()
// subsequent reads from the read half of the pipe will
// return no bytes and the error err, or EOF if err is nil.
pipeWriter.CloseWithError(err)
rc.wg.Done()
}()
return pipeReader, err
}
// ParseTimestamp parses a Time according to the standard Telegraf options.
// These are generally displayed in the toml similar to:
// json_time_key= "timestamp"
// json_time_format = "2006-01-02T15:04:05Z07:00"
// json_timezone = "America/Los_Angeles"
//
// The format can be one of "unix", "unix_ms", "unix_us", "unix_ns", or a Go
// time layout suitable for time.Parse.
//
// When using the "unix" format, a optional fractional component is allowed.
// Specific unix time precisions cannot have a fractional component.
//
// Unix times may be an int64, float64, or string. When using a Go format
// string the timestamp must be a string.
//
// The location is a location string suitable for time.LoadLocation. Unix
// times do not use the location string, a unix time is always return in the
// UTC location.
func ParseTimestamp(format string, timestamp interface{}, location string) (time.Time, error) {
switch format {
case "unix", "unix_ms", "unix_us", "unix_ns":
return parseUnix(format, timestamp)
default:
if location == "" {
location = "UTC"
}
return parseTime(format, timestamp, location)
}
}
func parseUnix(format string, timestamp interface{}) (time.Time, error) {
integer, fractional, err := parseComponents(timestamp)
if err != nil {
return time.Unix(0, 0), err
}
switch strings.ToLower(format) {
case "unix":
return time.Unix(integer, fractional).UTC(), nil
case "unix_ms":
return time.Unix(0, integer*1e6).UTC(), nil
case "unix_us":
return time.Unix(0, integer*1e3).UTC(), nil
case "unix_ns":
return time.Unix(0, integer).UTC(), nil
default:
return time.Unix(0, 0), errors.New("unsupported type")
}
}
// Returns the integers before and after an optional decimal point. Both '.'
// and ',' are supported for the decimal point. The timestamp can be an int64,
// float64, or string.
// ex: "42.5" -> (42, 5, nil)
func parseComponents(timestamp interface{}) (int64, int64, error) {
switch ts := timestamp.(type) {
case string:
parts := strings.SplitN(ts, ".", 2)
if len(parts) == 2 {
return parseUnixTimeComponents(parts[0], parts[1])
}
parts = strings.SplitN(ts, ",", 2)
if len(parts) == 2 {
return parseUnixTimeComponents(parts[0], parts[1])
}
integer, err := strconv.ParseInt(ts, 10, 64)
if err != nil {
return 0, 0, err
}
return integer, 0, nil
case int64:
return ts, 0, nil
case float64:
integer, fractional := math.Modf(ts)
return int64(integer), int64(fractional * 1e9), nil
default:
return 0, 0, errors.New("unsupported type")
}
}
func parseUnixTimeComponents(first, second string) (int64, int64, error) {
integer, err := strconv.ParseInt(first, 10, 64)
if err != nil {
return 0, 0, err
}
// Convert to nanoseconds, dropping any greater precision.
buf := []byte("000000000")
copy(buf, second)
fractional, err := strconv.ParseInt(string(buf), 10, 64)
if err != nil {
return 0, 0, err
}
return integer, fractional, nil
}
// ParseTime parses a string timestamp according to the format string.
func parseTime(format string, timestamp interface{}, location string) (time.Time, error) {
switch ts := timestamp.(type) {
case string:
loc, err := time.LoadLocation(location)
if err != nil {
return time.Unix(0, 0), err
}
return time.ParseInLocation(format, ts, loc)
default:
return time.Unix(0, 0), errors.New("unsupported type")
}
}

View File

@ -1,11 +1,19 @@
package internal
import (
"bytes"
"compress/gzip"
"crypto/rand"
"io"
"io/ioutil"
"log"
"os/exec"
"regexp"
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
type SnakeTest struct {
@ -40,9 +48,13 @@ func TestSnakeCase(t *testing.T) {
var (
sleepbin, _ = exec.LookPath("sleep")
echobin, _ = exec.LookPath("echo")
shell, _ = exec.LookPath("sh")
)
func TestRunTimeout(t *testing.T) {
if testing.Short() {
t.Skip("Skipping test due to random failures.")
}
if sleepbin == "" {
t.Skip("'sleep' binary not available on OS, skipping.")
}
@ -56,7 +68,33 @@ func TestRunTimeout(t *testing.T) {
assert.True(t, elapsed < time.Millisecond*75)
}
// Verifies behavior of a command that doesn't get killed.
func TestRunTimeoutFastExit(t *testing.T) {
if testing.Short() {
t.Skip("Skipping test due to random failures.")
}
if echobin == "" {
t.Skip("'echo' binary not available on OS, skipping.")
}
cmd := exec.Command(echobin)
start := time.Now()
err := RunTimeout(cmd, time.Millisecond*20)
buf := &bytes.Buffer{}
log.SetOutput(buf)
elapsed := time.Since(start)
require.NoError(t, err)
// Verify that command gets killed in 20ms, with some breathing room
assert.True(t, elapsed < time.Millisecond*75)
// Verify "process already finished" log doesn't occur.
time.Sleep(time.Millisecond * 75)
require.Equal(t, "", buf.String())
}
func TestCombinedOutputTimeout(t *testing.T) {
// TODO: Fix this test
t.Skip("Test failing too often, skip for now and revisit later.")
if sleepbin == "" {
t.Skip("'sleep' binary not available on OS, skipping.")
}
@ -84,13 +122,13 @@ func TestCombinedOutput(t *testing.T) {
// test that CombinedOutputTimeout and exec.Cmd.CombinedOutput return
// the same output from a failed command.
func TestCombinedOutputError(t *testing.T) {
if sleepbin == "" {
t.Skip("'sleep' binary not available on OS, skipping.")
if shell == "" {
t.Skip("'sh' binary not available on OS, skipping.")
}
cmd := exec.Command(sleepbin, "foo")
cmd := exec.Command(shell, "-c", "false")
expected, err := cmd.CombinedOutput()
cmd2 := exec.Command(sleepbin, "foo")
cmd2 := exec.Command(shell, "-c", "false")
actual, err := CombinedOutputTimeout(cmd2, time.Second)
assert.Error(t, err)
@ -98,16 +136,18 @@ func TestCombinedOutputError(t *testing.T) {
}
func TestRunError(t *testing.T) {
if sleepbin == "" {
t.Skip("'sleep' binary not available on OS, skipping.")
if shell == "" {
t.Skip("'sh' binary not available on OS, skipping.")
}
cmd := exec.Command(sleepbin, "foo")
cmd := exec.Command(shell, "-c", "false")
err := RunTimeout(cmd, time.Second)
assert.Error(t, err)
}
func TestRandomSleep(t *testing.T) {
// TODO: Fix this test
t.Skip("Test failing too often, skip for now and revisit later.")
// test that zero max returns immediately
s := time.Now()
RandomSleep(time.Duration(0), make(chan struct{}))
@ -154,3 +194,298 @@ func TestDuration(t *testing.T) {
d.UnmarshalTOML([]byte(`1.5`))
assert.Equal(t, time.Second, d.Duration)
}
func TestSize(t *testing.T) {
var s Size
s.UnmarshalTOML([]byte(`"1B"`))
assert.Equal(t, int64(1), s.Size)
s = Size{}
s.UnmarshalTOML([]byte(`1`))
assert.Equal(t, int64(1), s.Size)
s = Size{}
s.UnmarshalTOML([]byte(`'1'`))
assert.Equal(t, int64(1), s.Size)
s = Size{}
s.UnmarshalTOML([]byte(`"1GB"`))
assert.Equal(t, int64(1000*1000*1000), s.Size)
s = Size{}
s.UnmarshalTOML([]byte(`"12GiB"`))
assert.Equal(t, int64(12*1024*1024*1024), s.Size)
}
func TestCompressWithGzip(t *testing.T) {
testData := "the quick brown fox jumps over the lazy dog"
inputBuffer := bytes.NewBuffer([]byte(testData))
outputBuffer, err := CompressWithGzip(inputBuffer)
assert.NoError(t, err)
gzipReader, err := gzip.NewReader(outputBuffer)
assert.NoError(t, err)
defer gzipReader.Close()
output, err := ioutil.ReadAll(gzipReader)
assert.NoError(t, err)
assert.Equal(t, testData, string(output))
}
type mockReader struct {
readN uint64 // record the number of calls to Read
}
func (r *mockReader) Read(p []byte) (n int, err error) {
r.readN++
return rand.Read(p)
}
func TestCompressWithGzipEarlyClose(t *testing.T) {
mr := &mockReader{}
rc, err := CompressWithGzip(mr)
assert.NoError(t, err)
n, err := io.CopyN(ioutil.Discard, rc, 10000)
assert.NoError(t, err)
assert.Equal(t, int64(10000), n)
r1 := mr.readN
err = rc.Close()
assert.NoError(t, err)
n, err = io.CopyN(ioutil.Discard, rc, 10000)
assert.Error(t, io.EOF, err)
assert.Equal(t, int64(0), n)
r2 := mr.readN
// no more read to the source after closing
assert.Equal(t, r1, r2)
}
func TestVersionAlreadySet(t *testing.T) {
err := SetVersion("foo")
assert.Nil(t, err)
err = SetVersion("bar")
assert.NotNil(t, err)
assert.IsType(t, VersionAlreadySetError, err)
assert.Equal(t, "foo", Version())
}
func TestAlignDuration(t *testing.T) {
tests := []struct {
name string
now time.Time
interval time.Duration
expected time.Duration
}{
{
name: "aligned",
now: time.Date(2018, 1, 1, 1, 1, 0, 0, time.UTC),
interval: 10 * time.Second,
expected: 0 * time.Second,
},
{
name: "standard interval",
now: time.Date(2018, 1, 1, 1, 1, 1, 0, time.UTC),
interval: 10 * time.Second,
expected: 9 * time.Second,
},
{
name: "odd interval",
now: time.Date(2018, 1, 1, 1, 1, 1, 0, time.UTC),
interval: 3 * time.Second,
expected: 2 * time.Second,
},
{
name: "sub second interval",
now: time.Date(2018, 1, 1, 1, 1, 0, 5e8, time.UTC),
interval: 1 * time.Second,
expected: 500 * time.Millisecond,
},
{
name: "non divisible not aligned on minutes",
now: time.Date(2018, 1, 1, 1, 0, 0, 0, time.UTC),
interval: 1*time.Second + 100*time.Millisecond,
expected: 400 * time.Millisecond,
},
{
name: "long interval",
now: time.Date(2018, 1, 1, 1, 1, 0, 0, time.UTC),
interval: 1 * time.Hour,
expected: 59 * time.Minute,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
actual := AlignDuration(tt.now, tt.interval)
require.Equal(t, tt.expected, actual)
})
}
}
func TestAlignTime(t *testing.T) {
rfc3339 := func(value string) time.Time {
t, _ := time.Parse(time.RFC3339, value)
return t
}
tests := []struct {
name string
now time.Time
interval time.Duration
expected time.Time
}{
{
name: "aligned",
now: rfc3339("2018-01-01T01:01:00Z"),
interval: 10 * time.Second,
expected: rfc3339("2018-01-01T01:01:00Z"),
},
{
name: "aligned",
now: rfc3339("2018-01-01T01:01:01Z"),
interval: 10 * time.Second,
expected: rfc3339("2018-01-01T01:01:10Z"),
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
actual := AlignTime(tt.now, tt.interval)
require.Equal(t, tt.expected, actual)
})
}
}
func TestParseTimestamp(t *testing.T) {
rfc3339 := func(value string) time.Time {
tm, err := time.Parse(time.RFC3339Nano, value)
if err != nil {
panic(err)
}
return tm
}
tests := []struct {
name string
format string
timestamp interface{}
location string
expected time.Time
err bool
}{
{
name: "parse layout string in utc",
format: "2006-01-02 15:04:05",
timestamp: "2019-02-20 21:50:34",
location: "UTC",
expected: rfc3339("2019-02-20T21:50:34Z"),
},
{
name: "parse layout string with invalid timezone",
format: "2006-01-02 15:04:05",
timestamp: "2019-02-20 21:50:34",
location: "InvalidTimeZone",
err: true,
},
{
name: "layout regression 6386",
format: "02.01.2006 15:04:05",
timestamp: "09.07.2019 00:11:00",
expected: rfc3339("2019-07-09T00:11:00Z"),
},
{
name: "default location is utc",
format: "2006-01-02 15:04:05",
timestamp: "2019-02-20 21:50:34",
expected: rfc3339("2019-02-20T21:50:34Z"),
},
{
name: "unix seconds without fractional",
format: "unix",
timestamp: "1568338208",
expected: rfc3339("2019-09-13T01:30:08Z"),
},
{
name: "unix seconds with fractional",
format: "unix",
timestamp: "1568338208.500",
expected: rfc3339("2019-09-13T01:30:08.500Z"),
},
{
name: "unix seconds with fractional and comma decimal point",
format: "unix",
timestamp: "1568338208,500",
expected: rfc3339("2019-09-13T01:30:08.500Z"),
},
{
name: "unix seconds extra precision",
format: "unix",
timestamp: "1568338208.00000050042",
expected: rfc3339("2019-09-13T01:30:08.000000500Z"),
},
{
name: "unix seconds integer",
format: "unix",
timestamp: int64(1568338208),
expected: rfc3339("2019-09-13T01:30:08Z"),
},
{
name: "unix seconds float",
format: "unix",
timestamp: float64(1568338208.500),
expected: rfc3339("2019-09-13T01:30:08.500Z"),
},
{
name: "unix milliseconds",
format: "unix_ms",
timestamp: "1568338208500",
expected: rfc3339("2019-09-13T01:30:08.500Z"),
},
{
name: "unix milliseconds with fractional is ignored",
format: "unix_ms",
timestamp: "1568338208500.42",
expected: rfc3339("2019-09-13T01:30:08.500Z"),
},
{
name: "unix microseconds",
format: "unix_us",
timestamp: "1568338208000500",
expected: rfc3339("2019-09-13T01:30:08.000500Z"),
},
{
name: "unix nanoseconds",
format: "unix_ns",
timestamp: "1568338208000000500",
expected: rfc3339("2019-09-13T01:30:08.000000500Z"),
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
tm, err := ParseTimestamp(tt.format, tt.timestamp, tt.location)
if tt.err {
require.Error(t, err)
} else {
require.NoError(t, err)
require.Equal(t, tt.expected, tm)
}
})
}
}
func TestProductToken(t *testing.T) {
token := ProductToken()
// Telegraf version depends on the call to SetVersion, it cannot be set
// multiple times and is not thread-safe.
re := regexp.MustCompile(`^Telegraf/[^\s]+ Go/\d+.\d+(.\d+)?$`)
require.True(t, re.MatchString(token), token)
}

View File

@ -1,54 +0,0 @@
package limiter
import (
"testing"
"time"
"github.com/stretchr/testify/assert"
)
func TestRateLimiter(t *testing.T) {
r := NewRateLimiter(5, time.Second)
ticker := time.NewTicker(time.Millisecond * 75)
// test that we can only get 5 receives from the rate limiter
counter := 0
outer:
for {
select {
case <-r.C:
counter++
case <-ticker.C:
break outer
}
}
assert.Equal(t, 5, counter)
r.Stop()
// verify that the Stop function closes the channel.
_, ok := <-r.C
assert.False(t, ok)
}
func TestRateLimiterMultipleIterations(t *testing.T) {
r := NewRateLimiter(5, time.Millisecond*50)
ticker := time.NewTicker(time.Millisecond * 250)
// test that we can get 15 receives from the rate limiter
counter := 0
outer:
for {
select {
case <-ticker.C:
break outer
case <-r.C:
counter++
}
}
assert.True(t, counter > 10)
r.Stop()
// verify that the Stop function closes the channel.
_, ok := <-r.C
assert.False(t, ok)
}

View File

@ -1,359 +0,0 @@
package models
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestFilter_ApplyEmpty(t *testing.T) {
f := Filter{}
require.NoError(t, f.Compile())
assert.False(t, f.IsActive())
assert.True(t, f.Apply("m", map[string]interface{}{"value": int64(1)}, map[string]string{}))
}
func TestFilter_ApplyTagsDontPass(t *testing.T) {
filters := []TagFilter{
TagFilter{
Name: "cpu",
Filter: []string{"cpu-*"},
},
}
f := Filter{
TagDrop: filters,
}
require.NoError(t, f.Compile())
require.NoError(t, f.Compile())
assert.True(t, f.IsActive())
assert.False(t, f.Apply("m",
map[string]interface{}{"value": int64(1)},
map[string]string{"cpu": "cpu-total"}))
}
func TestFilter_ApplyDeleteFields(t *testing.T) {
f := Filter{
FieldDrop: []string{"value"},
}
require.NoError(t, f.Compile())
require.NoError(t, f.Compile())
assert.True(t, f.IsActive())
fields := map[string]interface{}{"value": int64(1), "value2": int64(2)}
assert.True(t, f.Apply("m", fields, nil))
assert.Equal(t, map[string]interface{}{"value2": int64(2)}, fields)
}
func TestFilter_ApplyDeleteAllFields(t *testing.T) {
f := Filter{
FieldDrop: []string{"value*"},
}
require.NoError(t, f.Compile())
require.NoError(t, f.Compile())
assert.True(t, f.IsActive())
fields := map[string]interface{}{"value": int64(1), "value2": int64(2)}
assert.False(t, f.Apply("m", fields, nil))
}
func TestFilter_Empty(t *testing.T) {
f := Filter{}
measurements := []string{
"foo",
"bar",
"barfoo",
"foo_bar",
"foo.bar",
"foo-bar",
"supercalifradjulisticexpialidocious",
}
for _, measurement := range measurements {
if !f.shouldFieldPass(measurement) {
t.Errorf("Expected measurement %s to pass", measurement)
}
}
}
func TestFilter_NamePass(t *testing.T) {
f := Filter{
NamePass: []string{"foo*", "cpu_usage_idle"},
}
require.NoError(t, f.Compile())
passes := []string{
"foo",
"foo_bar",
"foo.bar",
"foo-bar",
"cpu_usage_idle",
}
drops := []string{
"bar",
"barfoo",
"bar_foo",
"cpu_usage_busy",
}
for _, measurement := range passes {
if !f.shouldNamePass(measurement) {
t.Errorf("Expected measurement %s to pass", measurement)
}
}
for _, measurement := range drops {
if f.shouldNamePass(measurement) {
t.Errorf("Expected measurement %s to drop", measurement)
}
}
}
func TestFilter_NameDrop(t *testing.T) {
f := Filter{
NameDrop: []string{"foo*", "cpu_usage_idle"},
}
require.NoError(t, f.Compile())
drops := []string{
"foo",
"foo_bar",
"foo.bar",
"foo-bar",
"cpu_usage_idle",
}
passes := []string{
"bar",
"barfoo",
"bar_foo",
"cpu_usage_busy",
}
for _, measurement := range passes {
if !f.shouldNamePass(measurement) {
t.Errorf("Expected measurement %s to pass", measurement)
}
}
for _, measurement := range drops {
if f.shouldNamePass(measurement) {
t.Errorf("Expected measurement %s to drop", measurement)
}
}
}
func TestFilter_FieldPass(t *testing.T) {
f := Filter{
FieldPass: []string{"foo*", "cpu_usage_idle"},
}
require.NoError(t, f.Compile())
passes := []string{
"foo",
"foo_bar",
"foo.bar",
"foo-bar",
"cpu_usage_idle",
}
drops := []string{
"bar",
"barfoo",
"bar_foo",
"cpu_usage_busy",
}
for _, measurement := range passes {
if !f.shouldFieldPass(measurement) {
t.Errorf("Expected measurement %s to pass", measurement)
}
}
for _, measurement := range drops {
if f.shouldFieldPass(measurement) {
t.Errorf("Expected measurement %s to drop", measurement)
}
}
}
func TestFilter_FieldDrop(t *testing.T) {
f := Filter{
FieldDrop: []string{"foo*", "cpu_usage_idle"},
}
require.NoError(t, f.Compile())
drops := []string{
"foo",
"foo_bar",
"foo.bar",
"foo-bar",
"cpu_usage_idle",
}
passes := []string{
"bar",
"barfoo",
"bar_foo",
"cpu_usage_busy",
}
for _, measurement := range passes {
if !f.shouldFieldPass(measurement) {
t.Errorf("Expected measurement %s to pass", measurement)
}
}
for _, measurement := range drops {
if f.shouldFieldPass(measurement) {
t.Errorf("Expected measurement %s to drop", measurement)
}
}
}
func TestFilter_TagPass(t *testing.T) {
filters := []TagFilter{
TagFilter{
Name: "cpu",
Filter: []string{"cpu-*"},
},
TagFilter{
Name: "mem",
Filter: []string{"mem_free"},
}}
f := Filter{
TagPass: filters,
}
require.NoError(t, f.Compile())
passes := []map[string]string{
{"cpu": "cpu-total"},
{"cpu": "cpu-0"},
{"cpu": "cpu-1"},
{"cpu": "cpu-2"},
{"mem": "mem_free"},
}
drops := []map[string]string{
{"cpu": "cputotal"},
{"cpu": "cpu0"},
{"cpu": "cpu1"},
{"cpu": "cpu2"},
{"mem": "mem_used"},
}
for _, tags := range passes {
if !f.shouldTagsPass(tags) {
t.Errorf("Expected tags %v to pass", tags)
}
}
for _, tags := range drops {
if f.shouldTagsPass(tags) {
t.Errorf("Expected tags %v to drop", tags)
}
}
}
func TestFilter_TagDrop(t *testing.T) {
filters := []TagFilter{
TagFilter{
Name: "cpu",
Filter: []string{"cpu-*"},
},
TagFilter{
Name: "mem",
Filter: []string{"mem_free"},
}}
f := Filter{
TagDrop: filters,
}
require.NoError(t, f.Compile())
drops := []map[string]string{
{"cpu": "cpu-total"},
{"cpu": "cpu-0"},
{"cpu": "cpu-1"},
{"cpu": "cpu-2"},
{"mem": "mem_free"},
}
passes := []map[string]string{
{"cpu": "cputotal"},
{"cpu": "cpu0"},
{"cpu": "cpu1"},
{"cpu": "cpu2"},
{"mem": "mem_used"},
}
for _, tags := range passes {
if !f.shouldTagsPass(tags) {
t.Errorf("Expected tags %v to pass", tags)
}
}
for _, tags := range drops {
if f.shouldTagsPass(tags) {
t.Errorf("Expected tags %v to drop", tags)
}
}
}
func TestFilter_FilterTagsNoMatches(t *testing.T) {
pretags := map[string]string{
"host": "localhost",
"mytag": "foobar",
}
f := Filter{
TagExclude: []string{"nomatch"},
}
require.NoError(t, f.Compile())
f.filterTags(pretags)
assert.Equal(t, map[string]string{
"host": "localhost",
"mytag": "foobar",
}, pretags)
f = Filter{
TagInclude: []string{"nomatch"},
}
require.NoError(t, f.Compile())
f.filterTags(pretags)
assert.Equal(t, map[string]string{}, pretags)
}
func TestFilter_FilterTagsMatches(t *testing.T) {
pretags := map[string]string{
"host": "localhost",
"mytag": "foobar",
}
f := Filter{
TagExclude: []string{"ho*"},
}
require.NoError(t, f.Compile())
f.filterTags(pretags)
assert.Equal(t, map[string]string{
"mytag": "foobar",
}, pretags)
pretags = map[string]string{
"host": "localhost",
"mytag": "foobar",
}
f = Filter{
TagInclude: []string{"my*"},
}
require.NoError(t, f.Compile())
f.filterTags(pretags)
assert.Equal(t, map[string]string{
"mytag": "foobar",
}, pretags)
}

View File

@ -1,143 +0,0 @@
package models
import (
"log"
"math"
"time"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/metric"
)
// makemetric is used by both RunningAggregator & RunningInput
// to make metrics.
// nameOverride: override the name of the measurement being made.
// namePrefix: add this prefix to each measurement name.
// nameSuffix: add this suffix to each measurement name.
// pluginTags: these are tags that are specific to this plugin.
// daemonTags: these are daemon-wide global tags, and get applied after pluginTags.
// filter: this is a filter to apply to each metric being made.
// applyFilter: if false, the above filter is not applied to each metric.
// This is used by Aggregators, because aggregators use filters
// on incoming metrics instead of on created metrics.
// TODO refactor this to not have such a huge func signature.
func makemetric(
measurement string,
fields map[string]interface{},
tags map[string]string,
nameOverride string,
namePrefix string,
nameSuffix string,
pluginTags map[string]string,
daemonTags map[string]string,
filter Filter,
applyFilter bool,
mType telegraf.ValueType,
t time.Time,
) telegraf.Metric {
if len(fields) == 0 || len(measurement) == 0 {
return nil
}
if tags == nil {
tags = make(map[string]string)
}
// Override measurement name if set
if len(nameOverride) != 0 {
measurement = nameOverride
}
// Apply measurement prefix and suffix if set
if len(namePrefix) != 0 {
measurement = namePrefix + measurement
}
if len(nameSuffix) != 0 {
measurement = measurement + nameSuffix
}
// Apply plugin-wide tags if set
for k, v := range pluginTags {
if _, ok := tags[k]; !ok {
tags[k] = v
}
}
// Apply daemon-wide tags if set
for k, v := range daemonTags {
if _, ok := tags[k]; !ok {
tags[k] = v
}
}
// Apply the metric filter(s)
// for aggregators, the filter does not get applied when the metric is made.
// instead, the filter is applied to metric incoming into the plugin.
// ie, it gets applied in the RunningAggregator.Apply function.
if applyFilter {
if ok := filter.Apply(measurement, fields, tags); !ok {
return nil
}
}
for k, v := range fields {
// Validate uint64 and float64 fields
// convert all int & uint types to int64
switch val := v.(type) {
case nil:
// delete nil fields
delete(fields, k)
case uint:
fields[k] = int64(val)
continue
case uint8:
fields[k] = int64(val)
continue
case uint16:
fields[k] = int64(val)
continue
case uint32:
fields[k] = int64(val)
continue
case int:
fields[k] = int64(val)
continue
case int8:
fields[k] = int64(val)
continue
case int16:
fields[k] = int64(val)
continue
case int32:
fields[k] = int64(val)
continue
case uint64:
// InfluxDB does not support writing uint64
if val < uint64(9223372036854775808) {
fields[k] = int64(val)
} else {
fields[k] = int64(9223372036854775807)
}
continue
case float32:
fields[k] = float64(val)
continue
case float64:
// NaNs are invalid values in influxdb, skip measurement
if math.IsNaN(val) || math.IsInf(val, 0) {
log.Printf("D! Measurement [%s] field [%s] has a NaN or Inf "+
"field, skipping",
measurement, k)
delete(fields, k)
continue
}
default:
fields[k] = v
}
}
m, err := metric.New(measurement, tags, fields, t, mType)
if err != nil {
log.Printf("Error adding point [%s]: %s\n", measurement, err.Error())
return nil
}
return m
}

View File

@ -1,166 +0,0 @@
package models
import (
"time"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/metric"
)
type RunningAggregator struct {
a telegraf.Aggregator
Config *AggregatorConfig
metrics chan telegraf.Metric
periodStart time.Time
periodEnd time.Time
}
func NewRunningAggregator(
a telegraf.Aggregator,
conf *AggregatorConfig,
) *RunningAggregator {
return &RunningAggregator{
a: a,
Config: conf,
metrics: make(chan telegraf.Metric, 100),
}
}
// AggregatorConfig containing configuration parameters for the running
// aggregator plugin.
type AggregatorConfig struct {
Name string
DropOriginal bool
NameOverride string
MeasurementPrefix string
MeasurementSuffix string
Tags map[string]string
Filter Filter
Period time.Duration
Delay time.Duration
}
func (r *RunningAggregator) Name() string {
return "aggregators." + r.Config.Name
}
func (r *RunningAggregator) MakeMetric(
measurement string,
fields map[string]interface{},
tags map[string]string,
mType telegraf.ValueType,
t time.Time,
) telegraf.Metric {
m := makemetric(
measurement,
fields,
tags,
r.Config.NameOverride,
r.Config.MeasurementPrefix,
r.Config.MeasurementSuffix,
r.Config.Tags,
nil,
r.Config.Filter,
false,
mType,
t,
)
if m != nil {
m.SetAggregate(true)
}
return m
}
// Add applies the given metric to the aggregator.
// Before applying to the plugin, it will run any defined filters on the metric.
// Apply returns true if the original metric should be dropped.
func (r *RunningAggregator) Add(in telegraf.Metric) bool {
if r.Config.Filter.IsActive() {
// check if the aggregator should apply this metric
name := in.Name()
fields := in.Fields()
tags := in.Tags()
t := in.Time()
if ok := r.Config.Filter.Apply(name, fields, tags); !ok {
// aggregator should not apply this metric
return false
}
in, _ = metric.New(name, tags, fields, t)
}
r.metrics <- in
return r.Config.DropOriginal
}
func (r *RunningAggregator) add(in telegraf.Metric) {
r.a.Add(in)
}
func (r *RunningAggregator) push(acc telegraf.Accumulator) {
r.a.Push(acc)
}
func (r *RunningAggregator) reset() {
r.a.Reset()
}
// Run runs the running aggregator, listens for incoming metrics, and waits
// for period ticks to tell it when to push and reset the aggregator.
func (r *RunningAggregator) Run(
acc telegraf.Accumulator,
shutdown chan struct{},
) {
// The start of the period is truncated to the nearest second.
//
// Every metric then gets it's timestamp checked and is dropped if it
// is not within:
//
// start < t < end + truncation + delay
//
// So if we start at now = 00:00.2 with a 10s period and 0.3s delay:
// now = 00:00.2
// start = 00:00
// truncation = 00:00.2
// end = 00:10
// 1st interval: 00:00 - 00:10.5
// 2nd interval: 00:10 - 00:20.5
// etc.
//
now := time.Now()
r.periodStart = now.Truncate(time.Second)
truncation := now.Sub(r.periodStart)
r.periodEnd = r.periodStart.Add(r.Config.Period)
time.Sleep(r.Config.Delay)
periodT := time.NewTicker(r.Config.Period)
defer periodT.Stop()
for {
select {
case <-shutdown:
if len(r.metrics) > 0 {
// wait until metrics are flushed before exiting
continue
}
return
case m := <-r.metrics:
if m.Time().Before(r.periodStart) ||
m.Time().After(r.periodEnd.Add(truncation).Add(r.Config.Delay)) {
// the metric is outside the current aggregation period, so
// skip it.
continue
}
r.add(m)
case <-periodT.C:
r.periodStart = r.periodEnd
r.periodEnd = r.periodStart.Add(r.Config.Period)
r.push(acc)
r.reset()
}
}
}

View File

@ -1,256 +0,0 @@
package models
import (
"fmt"
"sync"
"sync/atomic"
"testing"
"time"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/testutil"
"github.com/stretchr/testify/assert"
)
func TestAdd(t *testing.T) {
a := &TestAggregator{}
ra := NewRunningAggregator(a, &AggregatorConfig{
Name: "TestRunningAggregator",
Filter: Filter{
NamePass: []string{"*"},
},
Period: time.Millisecond * 500,
})
assert.NoError(t, ra.Config.Filter.Compile())
acc := testutil.Accumulator{}
go ra.Run(&acc, make(chan struct{}))
m := ra.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Untyped,
time.Now().Add(time.Millisecond*150),
)
assert.False(t, ra.Add(m))
for {
time.Sleep(time.Millisecond)
if atomic.LoadInt64(&a.sum) > 0 {
break
}
}
assert.Equal(t, int64(101), atomic.LoadInt64(&a.sum))
}
func TestAddMetricsOutsideCurrentPeriod(t *testing.T) {
a := &TestAggregator{}
ra := NewRunningAggregator(a, &AggregatorConfig{
Name: "TestRunningAggregator",
Filter: Filter{
NamePass: []string{"*"},
},
Period: time.Millisecond * 500,
})
assert.NoError(t, ra.Config.Filter.Compile())
acc := testutil.Accumulator{}
go ra.Run(&acc, make(chan struct{}))
// metric before current period
m := ra.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Untyped,
time.Now().Add(-time.Hour),
)
assert.False(t, ra.Add(m))
// metric after current period
m = ra.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Untyped,
time.Now().Add(time.Hour),
)
assert.False(t, ra.Add(m))
// "now" metric
m = ra.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Untyped,
time.Now().Add(time.Millisecond*50),
)
assert.False(t, ra.Add(m))
for {
time.Sleep(time.Millisecond)
if atomic.LoadInt64(&a.sum) > 0 {
break
}
}
assert.Equal(t, int64(101), atomic.LoadInt64(&a.sum))
}
func TestAddAndPushOnePeriod(t *testing.T) {
a := &TestAggregator{}
ra := NewRunningAggregator(a, &AggregatorConfig{
Name: "TestRunningAggregator",
Filter: Filter{
NamePass: []string{"*"},
},
Period: time.Millisecond * 500,
})
assert.NoError(t, ra.Config.Filter.Compile())
acc := testutil.Accumulator{}
shutdown := make(chan struct{})
var wg sync.WaitGroup
wg.Add(1)
go func() {
defer wg.Done()
ra.Run(&acc, shutdown)
}()
m := ra.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Untyped,
time.Now().Add(time.Millisecond*100),
)
assert.False(t, ra.Add(m))
for {
time.Sleep(time.Millisecond)
if acc.NMetrics() > 0 {
break
}
}
acc.AssertContainsFields(t, "TestMetric", map[string]interface{}{"sum": int64(101)})
close(shutdown)
wg.Wait()
}
func TestAddDropOriginal(t *testing.T) {
ra := NewRunningAggregator(&TestAggregator{}, &AggregatorConfig{
Name: "TestRunningAggregator",
Filter: Filter{
NamePass: []string{"RI*"},
},
DropOriginal: true,
})
assert.NoError(t, ra.Config.Filter.Compile())
m := ra.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Untyped,
time.Now(),
)
assert.True(t, ra.Add(m))
// this metric name doesn't match the filter, so Add will return false
m2 := ra.MakeMetric(
"foobar",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Untyped,
time.Now(),
)
assert.False(t, ra.Add(m2))
}
// make an untyped, counter, & gauge metric
func TestMakeMetricA(t *testing.T) {
now := time.Now()
ra := NewRunningAggregator(&TestAggregator{}, &AggregatorConfig{
Name: "TestRunningAggregator",
})
assert.Equal(t, "aggregators.TestRunningAggregator", ra.Name())
m := ra.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Untyped,
now,
)
assert.Equal(
t,
fmt.Sprintf("RITest value=101i %d\n", now.UnixNano()),
m.String(),
)
assert.Equal(
t,
m.Type(),
telegraf.Untyped,
)
m = ra.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Counter,
now,
)
assert.Equal(
t,
fmt.Sprintf("RITest value=101i %d\n", now.UnixNano()),
m.String(),
)
assert.Equal(
t,
m.Type(),
telegraf.Counter,
)
m = ra.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Gauge,
now,
)
assert.Equal(
t,
fmt.Sprintf("RITest value=101i %d\n", now.UnixNano()),
m.String(),
)
assert.Equal(
t,
m.Type(),
telegraf.Gauge,
)
}
type TestAggregator struct {
sum int64
}
func (t *TestAggregator) Description() string { return "" }
func (t *TestAggregator) SampleConfig() string { return "" }
func (t *TestAggregator) Reset() {
atomic.StoreInt64(&t.sum, 0)
}
func (t *TestAggregator) Push(acc telegraf.Accumulator) {
acc.AddFields("TestMetric",
map[string]interface{}{"sum": t.sum},
map[string]string{},
)
}
func (t *TestAggregator) Add(in telegraf.Metric) {
for _, v := range in.Fields() {
if vi, ok := v.(int64); ok {
atomic.AddInt64(&t.sum, vi)
}
}
}

View File

@ -1,96 +0,0 @@
package models
import (
"fmt"
"time"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/selfstat"
)
var GlobalMetricsGathered = selfstat.Register("agent", "metrics_gathered", map[string]string{})
type RunningInput struct {
Input telegraf.Input
Config *InputConfig
trace bool
defaultTags map[string]string
MetricsGathered selfstat.Stat
}
func NewRunningInput(
input telegraf.Input,
config *InputConfig,
) *RunningInput {
return &RunningInput{
Input: input,
Config: config,
MetricsGathered: selfstat.Register(
"gather",
"metrics_gathered",
map[string]string{"input": config.Name},
),
}
}
// InputConfig containing a name, interval, and filter
type InputConfig struct {
Name string
NameOverride string
MeasurementPrefix string
MeasurementSuffix string
Tags map[string]string
Filter Filter
Interval time.Duration
}
func (r *RunningInput) Name() string {
return "inputs." + r.Config.Name
}
// MakeMetric either returns a metric, or returns nil if the metric doesn't
// need to be created (because of filtering, an error, etc.)
func (r *RunningInput) MakeMetric(
measurement string,
fields map[string]interface{},
tags map[string]string,
mType telegraf.ValueType,
t time.Time,
) telegraf.Metric {
m := makemetric(
measurement,
fields,
tags,
r.Config.NameOverride,
r.Config.MeasurementPrefix,
r.Config.MeasurementSuffix,
r.Config.Tags,
r.defaultTags,
r.Config.Filter,
true,
mType,
t,
)
if r.trace && m != nil {
fmt.Print("> " + m.String())
}
r.MetricsGathered.Incr(1)
GlobalMetricsGathered.Incr(1)
return m
}
func (r *RunningInput) Trace() bool {
return r.trace
}
func (r *RunningInput) SetTrace(trace bool) {
r.trace = trace
}
func (r *RunningInput) SetDefaultTags(tags map[string]string) {
r.defaultTags = tags
}

View File

@ -1,339 +0,0 @@
package models
import (
"fmt"
"math"
"testing"
"time"
"github.com/influxdata/telegraf"
"github.com/stretchr/testify/assert"
)
func TestMakeMetricNoFields(t *testing.T) {
now := time.Now()
ri := NewRunningInput(&testInput{}, &InputConfig{
Name: "TestRunningInput",
})
m := ri.MakeMetric(
"RITest",
map[string]interface{}{},
map[string]string{},
telegraf.Untyped,
now,
)
assert.Nil(t, m)
}
// nil fields should get dropped
func TestMakeMetricNilFields(t *testing.T) {
now := time.Now()
ri := NewRunningInput(&testInput{}, &InputConfig{
Name: "TestRunningInput",
})
m := ri.MakeMetric(
"RITest",
map[string]interface{}{
"value": int(101),
"nil": nil,
},
map[string]string{},
telegraf.Untyped,
now,
)
assert.Equal(
t,
fmt.Sprintf("RITest value=101i %d\n", now.UnixNano()),
m.String(),
)
}
// make an untyped, counter, & gauge metric
func TestMakeMetric(t *testing.T) {
now := time.Now()
ri := NewRunningInput(&testInput{}, &InputConfig{
Name: "TestRunningInput",
})
ri.SetTrace(true)
assert.Equal(t, true, ri.Trace())
assert.Equal(t, "inputs.TestRunningInput", ri.Name())
m := ri.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Untyped,
now,
)
assert.Equal(
t,
fmt.Sprintf("RITest value=101i %d\n", now.UnixNano()),
m.String(),
)
assert.Equal(
t,
m.Type(),
telegraf.Untyped,
)
m = ri.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Counter,
now,
)
assert.Equal(
t,
fmt.Sprintf("RITest value=101i %d\n", now.UnixNano()),
m.String(),
)
assert.Equal(
t,
m.Type(),
telegraf.Counter,
)
m = ri.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Gauge,
now,
)
assert.Equal(
t,
fmt.Sprintf("RITest value=101i %d\n", now.UnixNano()),
m.String(),
)
assert.Equal(
t,
m.Type(),
telegraf.Gauge,
)
}
func TestMakeMetricWithPluginTags(t *testing.T) {
now := time.Now()
ri := NewRunningInput(&testInput{}, &InputConfig{
Name: "TestRunningInput",
Tags: map[string]string{
"foo": "bar",
},
})
ri.SetTrace(true)
assert.Equal(t, true, ri.Trace())
m := ri.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
nil,
telegraf.Untyped,
now,
)
assert.Equal(
t,
fmt.Sprintf("RITest,foo=bar value=101i %d\n", now.UnixNano()),
m.String(),
)
}
func TestMakeMetricFilteredOut(t *testing.T) {
now := time.Now()
ri := NewRunningInput(&testInput{}, &InputConfig{
Name: "TestRunningInput",
Tags: map[string]string{
"foo": "bar",
},
Filter: Filter{NamePass: []string{"foobar"}},
})
ri.SetTrace(true)
assert.Equal(t, true, ri.Trace())
assert.NoError(t, ri.Config.Filter.Compile())
m := ri.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
nil,
telegraf.Untyped,
now,
)
assert.Nil(t, m)
}
func TestMakeMetricWithDaemonTags(t *testing.T) {
now := time.Now()
ri := NewRunningInput(&testInput{}, &InputConfig{
Name: "TestRunningInput",
})
ri.SetDefaultTags(map[string]string{
"foo": "bar",
})
ri.SetTrace(true)
assert.Equal(t, true, ri.Trace())
m := ri.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Untyped,
now,
)
assert.Equal(
t,
fmt.Sprintf("RITest,foo=bar value=101i %d\n", now.UnixNano()),
m.String(),
)
}
// make an untyped, counter, & gauge metric
func TestMakeMetricInfFields(t *testing.T) {
inf := math.Inf(1)
ninf := math.Inf(-1)
now := time.Now()
ri := NewRunningInput(&testInput{}, &InputConfig{
Name: "TestRunningInput",
})
ri.SetTrace(true)
assert.Equal(t, true, ri.Trace())
m := ri.MakeMetric(
"RITest",
map[string]interface{}{
"value": int(101),
"inf": inf,
"ninf": ninf,
},
map[string]string{},
telegraf.Untyped,
now,
)
assert.Equal(
t,
fmt.Sprintf("RITest value=101i %d\n", now.UnixNano()),
m.String(),
)
}
func TestMakeMetricAllFieldTypes(t *testing.T) {
now := time.Now()
ri := NewRunningInput(&testInput{}, &InputConfig{
Name: "TestRunningInput",
})
ri.SetTrace(true)
assert.Equal(t, true, ri.Trace())
m := ri.MakeMetric(
"RITest",
map[string]interface{}{
"a": int(10),
"b": int8(10),
"c": int16(10),
"d": int32(10),
"e": uint(10),
"f": uint8(10),
"g": uint16(10),
"h": uint32(10),
"i": uint64(10),
"j": float32(10),
"k": uint64(9223372036854775810),
"l": "foobar",
"m": true,
},
map[string]string{},
telegraf.Untyped,
now,
)
assert.Contains(t, m.String(), "a=10i")
assert.Contains(t, m.String(), "b=10i")
assert.Contains(t, m.String(), "c=10i")
assert.Contains(t, m.String(), "d=10i")
assert.Contains(t, m.String(), "e=10i")
assert.Contains(t, m.String(), "f=10i")
assert.Contains(t, m.String(), "g=10i")
assert.Contains(t, m.String(), "h=10i")
assert.Contains(t, m.String(), "i=10i")
assert.Contains(t, m.String(), "j=10")
assert.NotContains(t, m.String(), "j=10i")
assert.Contains(t, m.String(), "k=9223372036854775807i")
assert.Contains(t, m.String(), "l=\"foobar\"")
assert.Contains(t, m.String(), "m=true")
}
func TestMakeMetricNameOverride(t *testing.T) {
now := time.Now()
ri := NewRunningInput(&testInput{}, &InputConfig{
Name: "TestRunningInput",
NameOverride: "foobar",
})
m := ri.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Untyped,
now,
)
assert.Equal(
t,
fmt.Sprintf("foobar value=101i %d\n", now.UnixNano()),
m.String(),
)
}
func TestMakeMetricNamePrefix(t *testing.T) {
now := time.Now()
ri := NewRunningInput(&testInput{}, &InputConfig{
Name: "TestRunningInput",
MeasurementPrefix: "foobar_",
})
m := ri.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Untyped,
now,
)
assert.Equal(
t,
fmt.Sprintf("foobar_RITest value=101i %d\n", now.UnixNano()),
m.String(),
)
}
func TestMakeMetricNameSuffix(t *testing.T) {
now := time.Now()
ri := NewRunningInput(&testInput{}, &InputConfig{
Name: "TestRunningInput",
MeasurementSuffix: "_foobar",
})
m := ri.MakeMetric(
"RITest",
map[string]interface{}{"value": int(101)},
map[string]string{},
telegraf.Untyped,
now,
)
assert.Equal(
t,
fmt.Sprintf("RITest_foobar value=101i %d\n", now.UnixNano()),
m.String(),
)
}
type testInput struct{}
func (t *testInput) Description() string { return "" }
func (t *testInput) SampleConfig() string { return "" }
func (t *testInput) Gather(acc telegraf.Accumulator) error { return nil }

View File

@ -1,189 +0,0 @@
package models
import (
"log"
"time"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/internal/buffer"
"github.com/influxdata/telegraf/metric"
"github.com/influxdata/telegraf/selfstat"
)
const (
// Default size of metrics batch size.
DEFAULT_METRIC_BATCH_SIZE = 1000
// Default number of metrics kept. It should be a multiple of batch size.
DEFAULT_METRIC_BUFFER_LIMIT = 10000
)
// RunningOutput contains the output configuration
type RunningOutput struct {
Name string
Output telegraf.Output
Config *OutputConfig
MetricBufferLimit int
MetricBatchSize int
MetricsFiltered selfstat.Stat
MetricsWritten selfstat.Stat
BufferSize selfstat.Stat
BufferLimit selfstat.Stat
WriteTime selfstat.Stat
metrics *buffer.Buffer
failMetrics *buffer.Buffer
}
func NewRunningOutput(
name string,
output telegraf.Output,
conf *OutputConfig,
batchSize int,
bufferLimit int,
) *RunningOutput {
if bufferLimit == 0 {
bufferLimit = DEFAULT_METRIC_BUFFER_LIMIT
}
if batchSize == 0 {
batchSize = DEFAULT_METRIC_BATCH_SIZE
}
ro := &RunningOutput{
Name: name,
metrics: buffer.NewBuffer(batchSize),
failMetrics: buffer.NewBuffer(bufferLimit),
Output: output,
Config: conf,
MetricBufferLimit: bufferLimit,
MetricBatchSize: batchSize,
MetricsWritten: selfstat.Register(
"write",
"metrics_written",
map[string]string{"output": name},
),
MetricsFiltered: selfstat.Register(
"write",
"metrics_filtered",
map[string]string{"output": name},
),
BufferSize: selfstat.Register(
"write",
"buffer_size",
map[string]string{"output": name},
),
BufferLimit: selfstat.Register(
"write",
"buffer_limit",
map[string]string{"output": name},
),
WriteTime: selfstat.RegisterTiming(
"write",
"write_time_ns",
map[string]string{"output": name},
),
}
ro.BufferLimit.Incr(int64(ro.MetricBufferLimit))
return ro
}
// AddMetric adds a metric to the output. This function can also write cached
// points if FlushBufferWhenFull is true.
func (ro *RunningOutput) AddMetric(m telegraf.Metric) {
if m == nil {
return
}
// Filter any tagexclude/taginclude parameters before adding metric
if ro.Config.Filter.IsActive() {
// In order to filter out tags, we need to create a new metric, since
// metrics are immutable once created.
name := m.Name()
tags := m.Tags()
fields := m.Fields()
t := m.Time()
if ok := ro.Config.Filter.Apply(name, fields, tags); !ok {
ro.MetricsFiltered.Incr(1)
return
}
// error is not possible if creating from another metric, so ignore.
m, _ = metric.New(name, tags, fields, t)
}
ro.metrics.Add(m)
if ro.metrics.Len() == ro.MetricBatchSize {
batch := ro.metrics.Batch(ro.MetricBatchSize)
err := ro.write(batch)
if err != nil {
ro.failMetrics.Add(batch...)
}
}
}
// Write writes all cached points to this output.
func (ro *RunningOutput) Write() error {
nFails, nMetrics := ro.failMetrics.Len(), ro.metrics.Len()
log.Printf("D! Output [%s] buffer fullness: %d / %d metrics. ",
ro.Name, nFails+nMetrics, ro.MetricBufferLimit)
ro.BufferSize.Incr(int64(nFails + nMetrics))
var err error
if !ro.failMetrics.IsEmpty() {
// how many batches of failed writes we need to write.
nBatches := nFails/ro.MetricBatchSize + 1
batchSize := ro.MetricBatchSize
for i := 0; i < nBatches; i++ {
// If it's the last batch, only grab the metrics that have not had
// a write attempt already (this is primarily to preserve order).
if i == nBatches-1 {
batchSize = nFails % ro.MetricBatchSize
}
batch := ro.failMetrics.Batch(batchSize)
// If we've already failed previous writes, don't bother trying to
// write to this output again. We are not exiting the loop just so
// that we can rotate the metrics to preserve order.
if err == nil {
err = ro.write(batch)
}
if err != nil {
ro.failMetrics.Add(batch...)
}
}
}
batch := ro.metrics.Batch(ro.MetricBatchSize)
// see comment above about not trying to write to an already failed output.
// if ro.failMetrics is empty then err will always be nil at this point.
if err == nil {
err = ro.write(batch)
}
if err != nil {
ro.failMetrics.Add(batch...)
return err
}
return nil
}
func (ro *RunningOutput) write(metrics []telegraf.Metric) error {
nMetrics := len(metrics)
if nMetrics == 0 {
return nil
}
start := time.Now()
err := ro.Output.Write(metrics)
elapsed := time.Since(start)
if err == nil {
log.Printf("D! Output [%s] wrote batch of %d metrics in %s\n",
ro.Name, nMetrics, elapsed)
ro.MetricsWritten.Incr(int64(nMetrics))
ro.BufferSize.Incr(-int64(nMetrics))
ro.WriteTime.Incr(elapsed.Nanoseconds())
}
return err
}
// OutputConfig containing name and filter
type OutputConfig struct {
Name string
Filter Filter
}

View File

@ -1,44 +0,0 @@
package models
import (
"github.com/influxdata/telegraf"
)
type RunningProcessor struct {
Name string
Processor telegraf.Processor
Config *ProcessorConfig
}
type RunningProcessors []*RunningProcessor
func (rp RunningProcessors) Len() int { return len(rp) }
func (rp RunningProcessors) Swap(i, j int) { rp[i], rp[j] = rp[j], rp[i] }
func (rp RunningProcessors) Less(i, j int) bool { return rp[i].Config.Order < rp[j].Config.Order }
// FilterConfig containing a name and filter
type ProcessorConfig struct {
Name string
Order int64
Filter Filter
}
func (rp *RunningProcessor) Apply(in ...telegraf.Metric) []telegraf.Metric {
ret := []telegraf.Metric{}
for _, metric := range in {
if rp.Config.Filter.IsActive() {
// check if the filter should be applied to this metric
if ok := rp.Config.Filter.Apply(metric.Name(), metric.Fields(), metric.Tags()); !ok {
// this means filter should not be applied
ret = append(ret, metric)
continue
}
}
// This metric should pass through the filter, so call the filter Apply
// function and append results to the output slice.
ret = append(ret, rp.Processor.Apply(metric)...)
}
return ret
}

Some files were not shown because too many files have changed in this diff Show More