Commit Graph

3297 Commits

Author SHA1 Message Date
Antonio Garcia 7ed98c7e5c
fix: reading multiple holding registers in modbus input plugin (#8628) 2021-02-26 11:45:33 -05:00
Niels Huylebroeck e1a896ca12
Non systemd support with unittest (#8785) 2021-02-26 10:42:46 -05:00
David Bennett 25aa0eeb21
Fix statsd concurrency bug (#8885)
* Fix the issue

* Remove test I was using for replication

* Accidentally removed test.

* Add lock only where it is necessary.

* eliminate unnecessary space
2021-02-25 17:17:46 -05:00
Ben Keith 2cf4b751be
SignalFx Output (#6714)
* [outputs.signalfx] Add output plugin for SignalFX

This output plugin converts the `telegraf.Metrics` into signalfx
`datapoint`s and then transmits them to the ingest servers using
signalfx golang client lib.

As of this commit, the client lib is allowed to pick sane defaults
and none of its fields are overridable via telegraf config. This
can be changed in the future if needed.

The unit tests only test for conversion of `telegraf.Metric`s to
the `datapoint` structs. All code that executes after that is
assumed to be tested in the signalfx client lib itself (and not
worth writing end-to-end tests for).

Further enhancements:

 - Custom ingest urls
 - Better batching
 - More extensive tests
 - Support for events, sent by whitelist only

Co-authored-by: Ben Keith <benkeith@splunk.com>
Co-authored-by: Akshay <akshay.moghe@gmail.com>
Co-authored-by: Jay Camp <jcamp@splunk.com>
2021-02-25 15:30:01 -05:00
Thomas Casteleyn 47e12d1981
Support more snmpv3 authentication protocols (#8850) 2021-02-24 11:44:53 -07:00
Avinash Nigam 2372db9028
SQL Perfmon counters - synced queries from v2 to all db types (#8393) 2021-02-19 15:59:26 -05:00
reimda 4d61935dec
Fix mutex locking around ifname cache (#8873) 2021-02-19 11:31:25 -07:00
Sven Rebhan b6b5d34060
Add quantile aggregator plugin (#8594) 2021-02-17 15:22:33 -07:00
Andreas Fuchs b991aab75d
plugins/filestat: Skip missing files (#7316) 2021-02-17 15:50:25 -05:00
sarvanikonda 458f9d1e47
added member_id as tag(as it is a unique value) for redfish plugin and added address of the server when the status is other than 200 for better debugging (#8813) 2021-02-17 11:17:13 -05:00
Paweł Żak d9736d543f
Revive fixes - part 2 (#8835)
* Revive fixes regarding following set of rules:
[rule.if-return]
[rule.increment-decrement]
[rule.var-declaration]
[rule.package-comments]
[rule.receiver-naming]
[rule.unexported-return]
2021-02-16 18:19:50 -05:00
Sebastian Spaink 71be90d992
Support exclamation mark to create non-matching list in tail plugin (#8613)
* Replace exclamation mark with caret

* Update README and use table driven tests

* Use ReplaceAll instead

* Use doublestar package instead to glob filepath

* Add license

* Fix order of dependencies

* Doc improvement, maybe better then str replace?

* Forgot to remove nil from test

* Use regex instead of library

* Revert unnecessary change

* Go back to using library
replace string twice to handle edge case
2021-02-16 15:53:50 -06:00
Sreejith Pp f888136333
Add support for datadog distributions metric (#8179)
* Add support for datadog distributions in statsd

* Parse metric distribution correctly

* Add tests to check distributions are parsed correctly

* Update Statsd plugin Readme with details about Distributions metric

* Refactor metric distribution initialization code

* Update distribution metric interface to replace fields with value

* Refactor statsd distribution metric test code

* Fix go formatting errors

* Add tests to parse only when DataDog Distributions config is enabled

* Add config to enable parsing DataDog Statsd Distributions

* Document use of datadog_distributions config in Readme
2021-02-16 11:50:01 -06:00
Arnaud Lefebvre f09e551cbd
outputs/warp10: url encode comma in tags value (#8657) 2021-02-16 12:15:48 -05:00
viperstars fe16d56a3e
inputs.x509_cert: Fix timeout issue (#8824)
* reproduce timeout issue #8809

* fix timeout issue #8809

* set default timeout to 5s

* closes #8809

Co-authored-by: 彭浩 <penghao@qiyi.com>
2021-02-16 12:11:53 -05:00
Helen Weller f3a208ee28
Fix reconnection issues mqtt (#8821) 2021-02-11 11:45:13 -05:00
David Bennett c25ae5295b
Validate the response from InfluxDB after writing/creating a database to avoid json parsing panics/errors (#8775)
* Validate the response from InfluxDB after writing/creating a database to avoid json parsing panics.

* Testing windows signing - ignore

* Update config.yml

* adding signing to workflow - test

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* revert circleci test changes

* Various updates
2021-02-10 14:45:07 -05:00
Johannes Deger 198bcc8f36
Expose v4/v6-only connection-schemes through GosnmpWrapper (#8804) 2021-02-10 09:28:37 -07:00
Sebastian Spaink aa6dc79fc6
Sort and timeout is deadline (#8839) 2021-02-09 10:50:57 -06:00
Paweł Żak ba66d4facb
Revive fixes - part 1 (#8797)
* Revive fixes regarding following set of rules:
[rule.blank-imports]
[rule.context-as-argument]
[rule.context-keys-type]
[rule.dot-imports]
[rule.error-return]
[rule.error-strings]
[rule.indent-error-flow]
[rule.errorf]
2021-02-08 11:18:40 -05:00
Sebastian Spaink 90392e16d1
Update README for inputs.ping with correct cmd for native ping on Linux (#8787)
* Update readme  to enable native ping

* Provide more information on the numbers being set

* reference for ping_group_range already exists
2021-02-08 09:36:23 -06:00
Patryk Małek 7e78a08eba
AWS EC2 metadata processor Using StreamingProcessor (#8707) 2021-02-04 17:02:27 -05:00
Nicolas Filotto 8ddbab47a4
Allow to provide constants to a starlark script (#8772) 2021-02-01 14:34:44 -05:00
Mike Summers c43de16bce
Add HTTP proxy setting to New Relic output plugin (#8749) 2021-02-01 12:54:42 -05:00
Sebastian Spaink 244178e5ca
Set interface for native (#8770)
Support both name and IP
2021-01-28 11:30:00 -06:00
Sebastian Spaink 03fe914c59
Resolve regression, re-add missing function (#8764) 2021-01-28 10:54:29 -05:00
Steven Soroka 9c7cf99fa7
[outputs.influxdb_v2] add exponential backoff, and respect client error responses (#8662)
* [outputs.influxdb_v2] add exponential backoff, and respect client error responses

* add test

* Update to 60 seconds

* fix test
2021-01-27 16:07:42 -05:00
Steven Soroka 52aaadfd79
Fix issue with elasticsearch output being really noisy about some errors (#8748) 2021-01-27 16:01:06 -05:00
Shawn Guo 5c4c0e1494
improve mntr regex to match user specific keys. (#7533)
* improve mntr regex to match user specific keys.

* Update plugins/inputs/zookeeper/zookeeper.go

Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>

Co-authored-by: guoxu <guoxu@chinatelecom.cn>
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
2021-01-27 15:39:28 -05:00
omgold 8707a2d847
Fix crash in lustre2 input plugin, when field name and value (#7967)
are not separated by whitespace, which happens when numbers grow large (#7966)

Co-authored-by: Oliver Mangold <o.mangold@gmail.com>
2021-01-27 15:36:29 -05:00
Sebastian Spaink c237989631
Use go-ping for "native" execution in Ping plugin (#8679)
* Use go-ping for "native" execution in Ping plugin

* Check for ipv6 and deadline out of go func

* ensure dns failure

* Move interval and timeout calc to init
Removed dns failure check, 3rd parties libary responsibility

* Rename timeout to avoid conflict

* Move native ping to interface
Update tests

* Check for zero length
2021-01-26 16:02:43 -06:00
Helen Weller d41569caed
Integration test audit (#8725) 2021-01-26 11:06:12 -07:00
viperstars eda1dbc4dc
fix x509 cert timeout issue (#8741) 2021-01-26 13:02:23 -05:00
A. Binzxxxxxx 358633bc4d
Add setting to enable caching in ipmitool (#8335) 2021-01-21 16:14:21 -07:00
Adrian Thurston 4462b172f3
fix: remove ambiguity on '\v' from line-protocol parser (#8720) 2021-01-20 18:33:59 -05:00
Dae-Ho Kim 54422f4f1d
add kafka connect example to jolokia2 input (#8709)
* feat: add kafka connect example to jolokia2 input

* docs: add kafka connect example link

* chore: polishing
2021-01-19 20:45:24 -06:00
Samantha Wang 6ed1431348
update readme: prometheus remote write (#8683) 2021-01-15 10:16:37 -08:00
Helen Weller 76c2201bbe
Fix Redis output field type inconsistencies (#8678) 2021-01-14 11:47:00 -05:00
David Bennett fbd54e84a2
GNMI plugin should not take off the first character of field keys when no 'alias path' exists. (#8659)
* GNMI plugin should not take off the first character of field keys when no 'alias path' exists.

* fix test method name

* fix test file formatting

* fix test file formatting

* Remove my unnecessary failing test
2021-01-13 15:48:21 -05:00
David Bennett d9f237759d
Use the 'measurement' json field from the particle webhook as the measurment name, or if it's blank, use the 'name' field of the event's json. (#8609) 2021-01-12 17:59:42 -05:00
David Bennett 70d2b1f790
Procstat input plugin should use the same timestamp in all metrics in the same Gather() cycle. (#8658) 2021-01-12 17:59:13 -05:00
Földi Tamás 0c99ae9e1d
Add timestamp column support to postgresql_extensible (#8602) 2021-01-11 13:53:44 -05:00
Helen Weller 3b87438dea
Added ability to define skip values in csv parser (#8627) 2021-01-11 13:53:06 -05:00
Steven Soroka 9814d3d84d fix some annoying tests due to ports in use 2021-01-08 17:30:43 -05:00
Nathan Ferch f31203b4b2
Add Beat input plugin (#6653)
This plugin is known to work with Kafkabeat and Filebeat, and will
likely work with other Beat instances that have a similar HTTP API.

It is based on work done by @dmitryilyin.

Co-authored-by: Dmitry Ilyin <idv1985@gmail.com>
2021-01-08 13:06:59 -05:00
Steven Soroka 8b4fb2b75e add todo note about wavefront dependencies 2021-01-08 00:07:24 -05:00
Patrick Hemmer 910b726876
Optimize SeriesGrouper & aggregators.merge (#8391)
The previous implementation of SeriesGrouper required breaking a metric object apart into its constituents, converting tags and keys into unoptimized maps, only to have it put them back together into another metric object. This resulted in a significant performance overhead. This overhead was further compounded when the number of fields was large.

This change adds a new AddMetric method to SeriesGrouper which preserves the metric object and removes the back-and-forth conversion.

Additionlly the method used for calculating the metric's hash was switched to use maphash, which is optimized for this case.

----

Benchmarks

Before:

    BenchmarkMergeOne-16          106012	     11790 ns/op
    BenchmarkMergeTwo-16           48529	     24819 ns/op
    BenchmarkGroupID-16           780018	      1608 ns/op

After:

    BenchmarkMergeOne-16          907093	      1173 ns/op
    BenchmarkMergeTwo-16          508321	      2168 ns/op
    BenchmarkGroupID-16         11217788	      99.4 ns/op
2021-01-07 11:39:12 -05:00
Aladex 4b7d11385c
Using mime-type in prometheus parser to handle protocol-buffer responses (#8545) 2021-01-07 11:21:09 -05:00
Dušan Pajin 9ee6e034fb
Input SNMP plugin - upgrade gosnmp library to version 1.29.0 (#8588) 2021-01-07 08:44:33 -07:00
Sebastian Spaink ee76535a12
Provide test environment for kibana input plugin (#8629) 2021-01-06 16:23:40 -06:00
Sebastian Spaink c8584a7b3f
Upgrade circle-ci config to v2.1 (#8621)
* Upgrade to 2.1 circle-ci config

* new line
2021-01-06 16:23:29 -06:00
Yuri Grigorov c319e63a5a
outputs/http: add option to control idle connection timeout (#8055)
Co-authored-by: Yuri Grigorov <jurijs.grigorovs@corp.mail.ru>
2020-12-30 12:59:58 -06:00
Samantha Wang 3d30fd85c6
update intel powerstat readme (#8600) 2020-12-23 16:41:59 -05:00
Andreas Fuchs 3c9c013f4b
common/tls: Allow specifying SNI hostnames (#7897)
* tls_config: Allow specifying SNI hostnames

Add a new configration field `tls_server_name` that allows specifying
the server name that'll be sent in the ClientHello when telegraf makes
a request to TLS servers. This allows checking against load balancers
responding to specific hostnames that otherwise wouldn't resolve to
their addresses.

Add the setting to the documentation of common TLS options, as well as
to the http_response plugin.

Fixes #7598.

* Adjust the x509_cert to allow usage of tls_server_name

This plugin has been using ServerName previously, and will have to
deal with the new setting, too: Extract the server-name choosing into
a method & add a test to ensure we choose the right value (and error
under the right circumstances). Also document that the two settings
are mutually exclusive.

* Improve documentation on what we try to accomplish in the nil return

Also get rid of the TODO, as I am fairly certain this behavior is the
correct one.

* Remove unused struct field in tests
2020-12-23 13:39:43 -06:00
Germán Jaber 841e971ace
Fix spelling and clarify docs (#8164) 2020-12-23 10:43:21 -06:00
David Pryor ea4feb1a07
fixed formatting (+1 squashed commit) (#8541)
Squashed commits:
[c4e2bee2] Closes #8530: Extended the internal snmp wrapper to support AES192, AES192C, AES256, and AES256C.  Updated the example configuration with the new privProtocols.  Added the warning that those protocols are only supported if you have the appropriate tooling on your system.  Added test to ensure all 4 new privProtocols could be selected and properly encrypt the priv password.
2020-12-23 10:19:53 -06:00
Greg 7c17055178
Provide method to include core count when reporting cpu_usage in procstat input (#6165)
* Provide a non-irix reporting of cpu_usage in procstat input

* Update sample config to include cpu gathering mode

* cleanup readme from merge
2020-12-23 09:30:47 -06:00
JS1010111 ed72aac0be
Add support for an inclusive job list in Jenkins plugin (#8287)
* Add support for an inclusive job list

* Update jenkins plugin tests

* Update jenkins plugin docs

* Update jenkins plugin docs
2020-12-23 09:21:38 -06:00
Peng Xiao 2c61fad895
improve the error log message for snmp trap (#8552)
add OID value and source information into error log and make it easier for troubleshooting
2020-12-23 09:12:41 -06:00
Sam Lai 35a221018b
[http_listener_v2] Stop() succeeds even if fails to start (#8502)
* [http_listener_v2] Stop() succeeds even if fails to start

In cases where the http_listener_v2 plugin config is invalid, when the agent attempts to cleanup by stopping all the inputs, the Stop method here panics as it tries to call listener.Stop() when no listener has been set. This also masks the error message returned from the Start method.

```
> telegraf --test
2020-10-27T12:21:45Z I! Starting Telegraf 1.16.0
2020-10-27T12:21:45Z I! Using config file: /etc/telegraf/telegraf.conf
...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x1245130]

goroutine 45 [running]:
github.com/influxdata/telegraf/plugins/inputs/http_listener_v2.(*HTTPListenerV2).Stop(0xc00043e000)
        /go/src/github.com/influxdata/telegraf/plugins/inputs/http_listener_v2/http_listener_v2.go:178 +0x30
github.com/influxdata/telegraf/agent.stopServiceInputs(0xc00045e480, 0x5, 0x8)
        /go/src/github.com/influxdata/telegraf/agent/agent.go:445 +0x82
github.com/influxdata/telegraf/agent.(*Agent).testRunInputs(0xc000288080, 0x32be8c0, 0xc0000f1f00, 0x0, 0xc00000f480, 0x0, 0x0)
        /go/src/github.com/influxdata/telegraf/agent/agent.go:434 +0x1b7
github.com/influxdata/telegraf/agent.(*Agent).test.func4(0xc000057b70, 0xc000288080, 0x32be8c0, 0xc0000f1f00, 0x0, 0xc00000f480)
        /go/src/github.com/influxdata/telegraf/agent/agent.go:977 +0x8b
created by github.com/influxdata/telegraf/agent.(*Agent).test
        /go/src/github.com/influxdata/telegraf/agent/agent.go:975 +0x352
```

This fixes this issue by checking if the listener has been set before calling listener.Stop.

```
> ./telegraf --config test.conf --test
2020-10-27T12:43:25Z I! Starting Telegraf
2020-10-27T12:43:25Z E! [agent] Starting input inputs.http_listener_v2: listen tcp: address address_without_port: missing port in address
```

* retry CI
2020-12-23 09:09:42 -06:00
Aleksei Magusev 0731585d61
Unify comments style in the CPU input (#8605) 2020-12-21 15:44:51 -05:00
Helen Weller 9f31184e20
Fix readme link for line protocol in influx parser (#8610) 2020-12-21 14:37:50 -05:00
David Bennett dd09f46863
Add hex_key parameter for IPMI input plugin connection (#8524) 2020-12-21 11:45:58 -05:00
David Bennett c47fcf6626
Add configurable number of 'most recent' date-stamped indices to gather in Elasticsearch input (#8543)
Add configurable number of 'most recent' date-stamped indices to gather in the Elasticsearch input plugin, and allow wildcards to account for date-suffixed index names. Configuring '3' for num_most_recent_indices will only gather the 3 latest indices, based on the date or number they end with. Finding the date or number is dependent on the targeted indices being configured with wildcards at the end of their 'base' names.
2020-12-21 11:45:19 -05:00
Greg a7dff56dde
Add more verbose errors to influxdb output (#6061)
Looks like ear/959 has already been resolved, but these additional information for the errors still seems useful.
I just re-based the change and merging.
2020-12-21 10:14:10 -06:00
Sebastian Spaink 50265d9023
Allow globs (wildcards) in config for tags/fields in enum processor (#8598)
* Allow glob in enum processor config

* change assert to require
2020-12-18 15:41:39 -06:00
Paweł Żak 7bf8cdb8e3
[ethtool] interface_up field added (#8590)
Co-authored-by: Pawel Zak <Pawel Zak>
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
2020-12-18 12:04:02 -05:00
Helen Weller 04e62e3d23
changed TestThreadStats acc to wait for 2 and added warning comment (#8592) 2020-12-17 19:32:49 -05:00
Helen Weller 94eb8f2e42
Add wildcard tags json parser support (#8579) 2020-12-17 19:32:25 -05:00
Samantha Wang ee91b4856b
update inputs.influxdb readme (#8569)
* update inputs.influxdb readme

* remove duplicate
2020-12-17 08:21:45 -08:00
Steven Soroka 7ff96a7424 Revert "Update grok package to support for field names containing '-' and '.' (#8276)"
This reverts commit a5f3121f6d.

(cherry picked from commit 5c826e8a3254dc509012d018638a2e5f41a110f2)
2020-12-16 17:29:41 -05:00
Steven Soroka 717d329af8 Revert "disable flakey grok test for now"
This reverts commit a96c8b49e4.

(cherry picked from commit 115e25ea36b854d4e5f941596dfb965d103c1376)
2020-12-16 17:29:10 -05:00
Steven Soroka a27ded6d95
fix potential issue with race condition (#8577) 2020-12-16 15:39:12 -05:00
Steven Soroka e39208d60a
fix issue with mqtt concurrent map write (#8562) 2020-12-16 15:38:33 -05:00
Sebastian Spaink b858eb962a
Added Glob pattern matching for "Windows Services" plugin (#8575)
* Allow glob patterns in config

* Update README

* Move creating filter to init

* Need to explictly call init

Co-authored-by: Bas <3441183+BattleBas@users.noreply.github.com>
2020-12-16 14:32:29 -06:00
Anthony Arnaud 045c3c18b8
Add prometheus remote write serializer (#8360) 2020-12-16 14:11:05 -05:00
Vyacheslav Stepanov b64c38bb00
Remove duplicated field "revision" from ecs_task because it's already defined as a tag there (#8574) 2020-12-16 13:23:31 -05:00
vhqtvn 8e08da1889
fix crash when socket_listener receiving invalid data (#8551)
Co-authored-by: Hoa Nguyen Van <vanhoa@vhn.vn>
2020-12-15 13:52:48 -05:00
Hítalo Silva f6e2d451cd
Graphite tags parser (#8564) 2020-12-15 13:41:51 -05:00
Samantha Wang d9d6a194b1
Update json parser readme (#8532) 2020-12-15 10:09:11 -07:00
Oleksandr 21253ecae1
Add per user metrics to mysql input (#6132) 2020-12-15 08:59:52 -07:00
Vyacheslav Stepanov 0fe2386494
Fixing issue with missing metrics when pod has only pending containers (#8472)
Also added Pod Phase and Pod Reason fields
fixes #8347

Co-authored-by: Vyacheslav-Stepanov <Vyacheslav_Stepanov@epam.com>
2020-12-11 09:08:30 -05:00
Joshua Gross a063f9d7f7
fix edge case in aerospike plugin where an expected hex string was converted to integer if all digits (#8542) 2020-12-10 17:38:21 -05:00
Sven Rebhan 34151c47a6
[inputs.github] Add query of pull-request statistics (#8500) 2020-12-10 15:23:57 -05:00
MaciejMis 9166a16577
New Intel PowerStat input plugin (#8488) 2020-12-10 13:23:27 -07:00
Joe Wang 99287d89e0
Update string parsing of allocatable cpu cores in kube_inventory (#8512) 2020-12-10 12:38:01 -07:00
Steven Soroka a96c8b49e4 disable flakey grok test for now 2020-12-10 13:20:37 -05:00
Pontus Rydin 6062265f94
Fixed misspelled check for datacenter (#8505) 2020-12-10 12:02:36 -05:00
alespour d3031a467d
feat: add build number field to jenkins_job measurement (#8038) 2020-12-10 12:02:07 -05:00
Frank Riley 97de3981bd
Add percentiles to the ping plugin (#7345) 2020-12-09 10:54:51 -07:00
bhsu-ms 752a4b77e1
Added tags for monitoring readable secondaries for Azure SQL MI (#8369) 2020-12-08 15:42:31 -05:00
Avinash Nigam e687cd7a5f
SQL Server HA/DR Availability Group queries (#8379) 2020-12-08 15:40:11 -05:00
Sven Rebhan d712bd13d6
Add initialization example to mock-plugin. (#8520) 2020-12-07 17:43:15 -05:00
Wiard van Rij 139498937a
Add support to convert snmp hex strings to integers (#8426) 2020-12-07 14:45:06 -07:00
Joe Wang 97469f6d85
Update kube_inventory readme (#8510) 2020-12-07 13:59:32 -05:00
David Bennett f7950be107
Adding support for new lines in influx line protocol fields. (#8499) 2020-12-04 16:47:58 -05:00
David Bennett 2187baceea
Add configurable Max TTL duration for statsd input plugin entries (#8509)
* Adding max TTL duration for all metric caches in the statsd input plugin

* Update README.md

was missing type in readme
2020-12-04 14:39:00 -05:00
Paweł Żak 7c5754ef8d
Fix carbon2 tests (#8254) 2020-12-04 12:37:18 -05:00
Helen Weller ef6ce2c9d9
fixed network test (#8498) 2020-12-04 12:08:11 -05:00
Stephanie Engel 7f3773e8e7
Add configurable timeout to bind input plugin http call (#8508) 2020-12-03 13:42:50 -06:00
bhsu-ms f7d94430d2
Added is_primary_replica for monitoring readable secondaries for Azure SQL DB (#8368) 2020-12-03 11:07:08 -05:00
Igor Kuchmienko def6963b5e
sqlAzureMIRequests - remove duplicate column [session_db_name] (#8462) 2020-12-03 11:06:19 -05:00
Igor Kuchmienko a267570ae3
Add column measurement_db_type to output of all queries if not empty (#8464) 2020-12-03 11:05:43 -05:00
reimda 498a6da75f
Add node groups to opcua input plugin (#8389) 2020-12-02 17:06:47 -07:00
Dmitry Senin 0ccb134ae4
Add a parser plugin for prometheus (#7778) 2020-12-02 12:48:44 -07:00
Hong a5f3121f6d
Update grok package to support for field names containing '-' and '.' (#8276) 2020-12-02 13:11:35 -05:00
Steven Soroka 0eeab49efd add to starlark readme 2020-12-01 14:47:50 -05:00
SoerMan 05378980a3
Add FLOAT64-IEEE support to inputs.modbus (#8361) (by @Nemecsek) (#8474) 2020-11-30 16:22:57 -05:00
Nicolas Filotto 01fc69da47
Add the shared state to the global scope to get previous data (#8447) 2020-11-30 15:44:21 -05:00
Mike Dalrymple 6be3bd8c9c
Log SubscribeResponse_Error message and code. #8482 (#8483) 2020-11-30 12:12:10 -05:00
Ben Carlton 143cabc4b7
Removed outdated information about Windows support (#7971)
Newer versions of Telegraf for Windows do not appear to support using WMI query patterns as values for the "pattern" option. Regular expressions appear to be the only patterns now supported.
2020-11-27 16:15:11 -05:00
Enzo Hamelin ef91f96de9
Add dataset metrics to zfs input (#8383) 2020-11-27 13:58:32 -05:00
Steven Soroka 42eacb3a42 add log warning to starlark drop-fields example 2020-11-27 12:20:21 -05:00
Vipin Menon d536f610cd
Support Riemann-Protobuff Listener (#8163) 2020-11-27 11:30:45 -05:00
Sven Rebhan 0ce55bbd4a
Starlark example dropbytype (#8438) 2020-11-27 11:28:12 -05:00
Olli-Pekka Lehto f5d5a51c21
Added "name" parameter to NATS output plugin (#8429) 2020-11-27 11:24:26 -05:00
Steven Soroka 4090c77275
proxy support for http input (#8477) 2020-11-26 17:16:25 -05:00
Tuamas a7096c8128
Translate snmp field values (#8466) 2020-11-26 13:21:57 -05:00
Igor Kuchmienko e28cccf201
Fix typo in column name (#8468) 2020-11-24 14:45:09 -05:00
Paweł Żak 832925d9c8
[php-fpm] Fix possible "index out of range" (#8461) 2020-11-23 17:21:36 -05:00
Steven Soroka 8b30bb9534
Enable kafka zstd compression and idempotent writes (#8435) 2020-11-23 15:51:58 -05:00
Paweł Żak 0fcfee0caf
Fix tests for Windows - part 1 (#8414) 2020-11-23 10:40:32 -05:00
Loïc Tosser d64c72294a
Add response_time to monit plugin (#8056) 2020-11-23 10:35:00 -05:00
Olli-Pekka Lehto 245bef2f3a
Add rate and interval to the basicstats aggregator plugin (#8428) 2020-11-20 15:53:51 -05:00
Roy Lenferink 521caf3995
Update mdlayher/apcupsd dependency (#8444) 2020-11-20 13:54:56 -05:00
Nicolas Filotto bbd4e80409
Show how to return a custom error with the Starlark processor (#8439) 2020-11-20 11:28:56 -05:00
Stephanie Engel 247230c5c9
keep field name as is for csv timestamp column (#8440) 2020-11-20 09:52:07 -06:00
Alexey Kuzyashin 8ad288bad4
Add DriverVersion and CUDA Version to output (#8436) 2020-11-19 09:52:47 -07:00
Nicolas Filotto ee861fdeed
Show how to return several metrics with the Starlark processor (#8423) 2020-11-17 16:13:25 -05:00
Nicolas Filotto 0c15569174
Support logging in starlark (#8408) 2020-11-16 15:22:40 -05:00
Aaron Griffin 2c346ed08b
#8405 add non-retryable debug logging (#8406)
Add debug level logging for metric data that is not retryable.
2020-11-16 09:54:58 -05:00
Yuxuan 'fishy' Wang 18460e1825
Wavefront output should distinguish between retryable and non-retryable errors (#8404) 2020-11-13 17:08:05 -05:00
Nicolas Filotto ca041063d9
Allow to catch errors that occur in the apply function (#8401) 2020-11-13 14:26:07 -05:00
Sven Rebhan 049daf7892
Fix parsing of multiple files with different headers (#6318). (#8400) 2020-11-13 10:36:08 -05:00
Krzysztof Dąbrowski fb463bcc17
proxmox: ignore QEMU templates and iron out a few bugs (#8326) 2020-11-12 18:12:29 -05:00
Kevin R 97fb465c2d
systemd_units: add --plain to command invocation (#7990) (#7991) 2020-11-12 15:51:44 -05:00
Russ Savage dabea48a90
Fix minor typos in readmes (#8370) 2020-11-12 10:20:50 -07:00
Paweł Żak ff0a8c2d87
Fix SMART plugin to recognize all devices from config (#8374) 2020-11-12 11:04:52 -05:00
smizach d369003912
Add OData-Version header to requests (#8288)
Closes
influxdata#8093
2020-11-06 10:15:27 -05:00
Steven Soroka f8daed0597 misc tests 2020-11-03 16:02:34 -05:00
Pontus Rydin 89919631c5
Prydin issue 8169 (#8357) 2020-11-03 13:09:37 -05:00
Giovanni Luisotto 1939e58b68
On-prem fix for #8324 (#8356) 2020-11-03 11:04:24 -05:00
Pontus Rydin 748af7f5d1
[output.wavefront] Introduced "immediate_flush" flag (#8165) 2020-11-02 23:12:48 -05:00
peter-volkov 38796f035b
#8295 Initial Yandex.Cloud monitoring (#8296) 2020-11-02 11:11:47 -05:00
Roman Dodin 68a4f18e3d
added support for bytes encoding (#7938) 2020-11-02 11:11:28 -05:00
reimda 73b2f988c4
Update jwt-go module to address CVE-2020-26160 (#8337) 2020-11-02 09:07:37 -07:00
Konstantin Kulikov 9be445c958
fix plugins/input/ras test (#8350)
On some systems /tmp/test.db happens to exist which
makes this test fail.
2020-11-02 10:17:54 -05:00
Thomas Schuetz a49e37a2a6
#8328 Fixed a bug with the state map in Dynatrace Plugin (#8329) 2020-10-29 11:04:11 -04:00
Giovanni Luisotto c5e04325ab
SQL Server Azure PerfCounters Fix (#8331) 2020-10-28 14:00:37 -04:00
Steven Soroka e83a165635
kafka sasl-mechanism auth support for SCRAM-SHA-256, SCRAM-SHA-512, GSSAPI (#8318) 2020-10-28 12:16:59 -04:00
Giovanni Luisotto 1313f2314f
SQL Server - PerformanceCounters - removed synthetic counters (#8325) 2020-10-27 15:19:49 -04:00
Giovanni Luisotto f14a50b511
SQL Server - server_properties added sql_version_desc (#8324) 2020-10-27 14:36:21 -04:00
Paweł Żak 14e81f479d
Disable RAS input plugin on specific Linux architectures: mips64, mips64le, ppc64le, riscv64 (#8317) 2020-10-26 15:33:26 -06:00
Steven Soroka 0e31020836
processes: fix issue with stat no such file/dir (#8309) 2020-10-26 11:35:10 -04:00
Steven Soroka 0ec97a2bdd
fix issue with PDH_CALC_NEGATIVE_DENOMINATOR error (#8308) 2020-10-26 11:06:39 -04:00
Paweł Żak 69230017b0
RAS plugin - fix for too many open files handlers (#8306) 2020-10-23 17:11:32 -04:00
Ido Halevi 9b23a04b69
A new Logz.io output plugin (#8202) 2020-10-22 11:53:08 -04:00
Patryk Małek 885d0affa6
Sumo Logic output plugin: fix unparsable config.Size from sample config (#8243) 2020-10-21 12:43:24 -06:00
tlusser-inv 9c2979dced
Fix wrong memory measurements of containers and vms (#8290) 2020-10-21 10:50:29 -04:00
Paweł Żak 14a73055f4
New input plugin for RAS with fixed GLIBC issue (#8293) 2020-10-20 17:59:05 -04:00
Steven Soroka 01230889b4
fix issue with phpfpm url usage (#8292) 2020-10-20 11:45:30 -04:00
reimda 5a5f6fbd47
Update sarama library to 1.27.1 (#8289) 2020-10-20 11:42:37 -04:00
Giovanni Luisotto f61457f87a
sqlAzureMIResourceStats - added sorting (#8286) 2020-10-20 10:17:17 -04:00
simnv 1696cca283
Fix using empty string as the namespace prefix in azure_monitor output plugin (#8282)
* Fix using empty string as the namespace prefix

Fixes #8256

* Test using empty string as the namespace prefix
2020-10-20 10:16:22 -04:00
simnv e3aa6eb577
Fix Event timestamps (#8216)
Closes #8204
2020-10-19 12:24:46 -04:00
a-bali 87fcea5e9b
Add support for fields and protocol lookups in port_name. (#8157) 2020-10-19 10:49:48 -04:00
Steven Soroka 0ae6fe7c9c
fix flakey proc test (#8279) 2020-10-16 17:03:36 -04:00
Steven Soroka 933925e8e3 temporarily remove RAS plugin 2020-10-16 14:44:15 -04:00
Labesse Kévin 527a11a656
http_response: match on status code (#8032) 2020-10-16 11:40:17 -06:00
Steven Soroka 78cf0b7ea6
turn gzip on by default for InfluxDB v1 output (#8269) 2020-10-16 13:07:29 -04:00
Thomas Schuetz c85fb585ad
Dynatrace Output Plugin: Fixed behaviour when state map is cleared (#8251) 2020-10-16 11:55:35 -04:00
piotrwest 7c2c2c5d8b
Add the Timestream Output Plugin (#8239)
Co-authored-by: Piotr Westfalewicz <westpiot@amazon.com>
2020-10-15 13:51:17 -04:00
Steven Soroka 796b3b8d41
fix issue with loading processor config from execd (#8274) 2020-10-15 13:46:13 -04:00
Samantha Wang 4872d7b4a9
cleanup Intel RDT readme (#8268)
* cleanup Intel RDT readme

* Update intel_rdt.go
2020-10-15 09:09:09 -07:00
Russ Savage d5f0a120d8
fix(exec): fix typo in exec readme (#8265) 2020-10-14 14:08:47 -04:00
Russ Savage d0faa740b5
fix(ras): update readme title (#8266) 2020-10-14 14:08:35 -04:00
Steven Soroka ac8f4c1e15 add plugin documentation 2020-10-14 12:27:16 -04:00
Patryk Małek 190fdd24fa
Sumo Logic output plugin: only support HTTP POST (#8262) 2020-10-14 12:11:23 -04:00
Giovanni Luisotto 1d6172bd2d
New sql server queries (on-prem) - refactoring and formatting (#8172) 2020-10-14 11:07:13 -04:00
Alestrix aa0363eb84
Update README.md (#8049) 2020-10-13 18:06:07 -04:00
Steven Soroka 18609ac130 fix ci test 2020-10-09 17:14:10 -04:00
Steven Soroka cfce605bed add converter test 2020-10-09 16:10:57 -04:00
Steven Soroka 827b2d4df5 fix flakey tests 2020-10-09 16:10:17 -04:00
Alexandru Tudori 01eaa202d9
Add agent host tag configuration option (#8082) 2020-10-08 11:43:28 -04:00
Paweł Żak c8e69aca3c
Fixed almost all bugs found by LGTM analysis platform (#8240) 2020-10-08 11:20:35 -04:00
Steven Soroka 5cc43879e8 fix carbon tests 2020-10-07 18:39:15 -04:00
Colin Ameigh 7f7703b8fc
Multiple escaping occurs on Jenkins URLs at certain folder depth (#8048)
Co-author: @hansnqyr
2020-10-07 18:20:26 -04:00
Patryk Małek a976e6ff95
Fix bool serialization when using carbon2 (#8162) 2020-10-07 13:54:45 -06:00
Giovanni Luisotto d840448b65
New sql server queries (Azure) - refactoring and formatting (#8186)
* sqlAzureDBResourceStats - formatting & engine check
* sqlAzureDBResourceGovernance - formatting & engine check
* sqlAzureDBWaitStats - formatting and engine check
* sqlAzureDBDatabaseIO - formatting and engine check
* sqlAzureDBProperties - formatting and engine check
* sqlAzureDBProperties - fix [engine_edition]
* sqlAzureDBOsWaitStats - formatting and engine check
* sqlAzureDBOsWaitStats - fix DBMIRROR_QUEUE string
* sqlAzureDBMemoryClerks  - formatting and engine check
* sqlAzureDBRequests - formatting and engine check
* sqlAzureDBSchedulers - moved near other queries
* sqlAzureMIRequests - added [session_db_name]
* sqlAzureDBPerformanceCounters - formatting and engine check
* sqlAzureMIProperties - formatting and engine check
* sqlAzureMIResourceStats - formatting and engine check
* sqlAzureMIResourceGovernance - formatting and engine check
* sqlAzureMIDatabaseIO - formatting and engine check
* sqlAzureMIMemoryClerks - formatting and engine check
* sqlAzureMIOsWaitStats - formatting and engine check
* sqlAzureDBPerformanceCounters - fix check edition
* sqlAzureMIPerformanceCounters - formatting and engine check
* sqlAzureMIRequests - formatting and engine check
* sqlAzureMISchedulers - engine check
* Changed error msg to include DB_NAME
* removed DEADLOCK_PRIORITY from most queries
* sqlAzureDBSchedulers - added engineedition check
2020-10-07 11:56:13 -04:00
Steven Soroka 392ef9b9c0
change influxdb port 9999 to 8086 (#8198) 2020-10-07 11:54:51 -04:00
Vyacheslav Mitrofanov a452feb18d
input consul - added metric_version flag (#7875)
Co-authored-by: Вячеслав Митрофанов <vmitrofanov@mfms.ru>
2020-10-07 11:31:02 -04:00
Patryk Małek cc089e6eb6
Fix carbon2 serializer not falling through to field separate when carbon2_format field is unset (#8201) 2020-10-07 08:33:09 -06:00
Giovanni Luisotto 88698a68d9
Fixed Query mapping (#8200) 2020-10-07 08:30:54 -06:00
Samantha Wang 660714b943
add min telegraf to plugin readme (#8223)
* add min telegraf versions to readme
* add new telegraf plugins to main readme
2020-10-06 14:44:00 -07:00
Paweł Żak fa32975d0f
New input plugin for RAS (Reliability, Availability and Serviceability) (#8114) 2020-10-01 16:54:51 -04:00
Paweł Żak 5f02c69da5
New input plugin for Intel RDT (Intel Resource Director Technology) (#8150)
Co-authored-by: Trojan, Kuba <kuba.trojan@intel.com>
2020-10-01 16:49:09 -04:00
Russ Savage 6665b48008
fix(win_eventlog): fixing config (#8209) 2020-10-01 12:49:43 -04:00
Steven Soroka 4fa620fd6e
Add note about json processing to docs 2020-09-30 16:20:50 -04:00
Thomas Schuetz f2a831c94e
Dynatrace Output: change handling of monotonic counters (#8159) 2020-09-30 13:30:48 -04:00
Roger Peppe 9ee87ab7c3
fix: plugins/parsers/influx: avoid ParseError.Error panic (#8177) 2020-09-30 13:26:00 -04:00
Paweł Żak 3efec1a10c
Fix vulnerabilities found in BDBA scan (#8199) 2020-09-30 13:24:10 -04:00
Yoofi Quansah 2332e28802
feat: add functionality to get values from redis commands (#8196) 2020-09-30 12:36:45 -04:00
Josh Bonello 06c62f263c
Implement AWS CloudWatch Input Plugin ListMetrics API calls to use Active Metric Filter (#7894) 2020-09-29 16:31:38 -06:00
Steven Soroka a475d765fb
add json parsing support to starlark (#8168) 2020-09-29 17:37:54 -04:00
Patryk Małek a3a1224e58
Sumo Logic output plugin: carbon2 default to include field in metric (#8132) 2020-09-29 14:00:33 -04:00
reimda 8006068e94
If the community string is available, add it as a tag (#8189) 2020-09-29 10:23:23 -04:00
simnv 57cd20a26c
Windows eventlog input plugin (based on #7020) (#8000)
Co-authored-by: Anuar Serdaliyev <serdaliyev.anuar@gmail.com>
2020-09-28 18:15:28 -04:00
Steven Soroka 382dac70c7
Semigroupoid multiline (#8167) (#8190)
Co-authored-by: javicrespo <javiercrespoalvez@gmail.com>
Co-authored-by: jcrespo <javier.crespo@ingenico.com>
Co-authored-by: semigroupoid <semigroupoid@users.noreply.github.com>
2020-09-28 18:06:00 -04:00
Steven Soroka b4fb1adc6f
fix panic on streaming processers using logging (#8176) 2020-09-28 11:58:23 -04:00
Paweł Żak e1cb269a35
Add more missing NVMe attributes to smart plugin (#8113) 2020-09-28 11:16:49 -04:00
Patryk Małek ca7252c641
Fix Sumo Logic output plugin not splitting requests properly (#25) (#8115) 2020-09-24 16:13:37 -04:00
Avinash Nigam bb5c65f5f3
Added more performance counters to SqlServer input plugin (#8120) 2020-09-24 10:09:51 -06:00
Steven Soroka 689b463998
Starlark readme url fix 2020-09-22 11:38:45 -04:00
Steven Soroka 5a09735020 minor docs cleanup 2020-09-18 15:06:58 -04:00
Steven Soroka 080e0dbbfa update shim docs to point users in the right direction 2020-09-18 15:06:58 -04:00
M0rdecay 39f4c365b0
Increasing the metric buffer (#8145) 2020-09-18 13:50:22 -04:00
Alex Samorukov 191688ce51
Remove Event field as it is causing issues with pre-trained source types (#8039)
Co-authored-by: Oleksii Samorukov <oleksii_samorukov@mckinsey.com>
2020-09-18 12:20:22 -04:00
Labesse Kévin ce133505f2
influxdb_v2_listener - add /ready route (#8133) 2020-09-17 11:49:51 -04:00
John Ibsen d764f862b5
Influxdb v2 listener (#7828) 2020-09-14 18:41:46 -04:00
James Beckett 55a9d36b21
SNMP input plugin: document partial table collection (#8104)
Co-authored-by: James Beckett <hackery@users.noreply.github.com>
2020-09-11 09:44:59 -07:00
Patryk Małek 5534b9955c
Carbon2 configuration option - include field in metric name (#8094) 2020-09-10 12:14:11 -04:00
Patryk Małek e9dcade0a8
Sumo Logic output plugin (#8023) 2020-09-10 10:56:35 -04:00
Steven Soroka 8cd0fe5e7b Revert "update influxdb v2 port"
This reverts commit 8c3ba65e77.
2020-09-09 14:07:10 -04:00
Samantha Wang 8c3ba65e77 update influxdb v2 port 2020-09-09 10:55:20 -07:00
denzilribeiro f0c2c38931
Database_type config to Split up sql queries by engine type (#7934) 2020-09-08 17:36:23 -04:00
Toni Moreno 9a06ac1d6a
added force_document_id option to ES output enable resend data and avoiding duplicated ES documents, fix #7891 (#8019) 2020-09-08 16:34:27 -04:00
James DeFelice 8c28661ca7
[fix] add missing error check for HTTP req failure (#8071) 2020-09-08 14:13:23 -04:00
Bryan FRIMIN 6324b1fd63
add nsd input plugin (#7822) 2020-09-04 14:56:25 -06:00
reimda b2ac8b4ac6
Opcua cleanup (#8076) 2020-09-03 21:48:00 -06:00
Samantha Wang f4e5b0ef63
update opcua readme (#8075) 2020-09-03 15:37:42 -06:00
Chris Hayles 160e1d11c7
Add OPC UA input plugin (#8009) 2020-09-02 16:52:46 -06:00
Sven Rebhan b5fafb4c95
Fix CI AppVeyor 'make check' errors for go 1.15 on windows (#8061)
Avoid writing to nul on windows.  On Appveyor, writing to nul creates a file instead of discarding output.  The file's existence creates errors later in the build.
2020-09-01 11:52:41 -06:00
Steven Soroka 3278054c5c
fix bug in shim logger affecting AddError (#8052) 2020-08-28 18:45:38 -04:00
Joshua Gross 4ebb8c7820
Add set, and histogram reporting to aerospike telegraf plugin (#8025)
Co-authored-by: Joshua Gross <joshua.gross@indexexchange.com>
2020-08-28 12:05:42 -04:00
Steven Soroka ac809e9e5b
docs fix 2020-08-27 14:22:08 -04:00
Thomas Casteleyn 54f9e33208
Add addTag debugging in ifname plugin (#8018) 2020-08-26 15:25:57 -06:00
Pontus Rydin 60d402d827
vSphere Fixed missing clustername issue 7878 (#8026) 2020-08-26 12:58:28 -04:00
Patryk Małek 48bab9db86
Fix string to int conversion in eventhub consumer (#8006) 2020-08-26 09:26:37 -06:00
Steven Soroka bbc2aa660d
improve the quality of starlark docs by executing them as tests (#8020) 2020-08-24 11:35:29 -04:00
Thomas Schuetz bf0b376fc7
Fix InsecureSkipVerify in Dynatrace Plugin (#8015) 2020-08-21 11:31:30 -04:00
DasSkelett 7354a44240
Fix Ping Input plugin for FreeBSD's ping6 (#7861) 2020-08-20 18:05:50 -04:00
Samantha Wang 901e63e37d
add example input/outputs to starlark examples (#7980)
* add sample input/outputs to starlark examples

* update ratio.star with example input/outputs

* Update rename.star

* update scale.star with input/output examples

* fix spacing

* fix spacing
2020-08-19 19:26:35 -04:00
DM a03555ec5a
[outputs.application_insights] Added the ability to set the endpoint url (#7134) 2020-08-19 18:04:24 -04:00
Steven Soroka 11afd42617
fix issue with shim use of config.Duration (#7996) 2020-08-18 14:20:31 -04:00
Thomas Schuetz 6e8255c644
Dynatrace Plugin - Updated Documentation (#7994) 2020-08-17 18:37:13 -04:00
Steven Soroka b2eb774049
http_listener_v2: make http header tags case insensitive (#7986) 2020-08-14 13:43:31 -04:00
Russ Savage b8b6f2e533
fix(readmes): updates to internal and proxmox readmes (#7982) 2020-08-13 23:50:09 -04:00
effITient c0ab96586d
Proxmox plugin (#7922) 2020-08-12 12:26:38 -04:00
Thomas Schuetz 780fbfecb2
Dynatrace output plugin (#7881) 2020-08-12 11:51:53 -04:00
Eugene Klimov 78811f7b1c
add additional metrics to clickhouse input plugin (#7904)
add metrics and test for following ClickHouse tables:
- system.zookeeper
- system.detached_parts
- system.dictionaries
- system.replication_queue
- system.mutations
- system.disks
- system.processes
- system.text_log
- system.part_log
2020-08-12 11:48:07 -04:00