Eng Zer Jun
6a3b27126a
refactor: move from io/ioutil to io and os package ( #9811 )
2021-09-28 15:16:32 -06:00
Samantha Wang
890508431c
docs: fix influxdb output readme ( #9708 )
2021-09-02 15:24:26 -06:00
Mya
8d2b1e8dc1
Fix metrics reported as written but not actually written ( #9526 )
2021-07-28 14:55:23 -06:00
Mya Longmire
da7f2c7a93
Bugfix outputs influxdb endless retires ( #9296 )
2021-06-10 16:05:43 -05:00
David Bennett
842a788022
Remove error return type from metric.New method ( #9116 )
...
* Remove error return type from metric.New method.
* Formatting changes for linter + gofmt
* Additional linter fixes.
* More linter fixes.
* Linter fix.
* address comments
2021-04-13 14:40:03 -04:00
Sven Rebhan
9853bf6c54
Get rid of deprecated internal.{Duration,Size,Number} ( #8969 )
2021-04-09 13:15:04 -04:00
Paweł Żak
74a1acd814
Linter fixes - revive:unused-parameter, unparam, varcheck and unused ( #8984 )
...
* Linter fixes - revive:unused-parameter and unparam
* Linter fixes - revive:unused-parameter and unparam
* Linter fixes - revive:unused-parameter and unparam
* "nolint"'s removed
* Fixes for "varcheck" and "unused" added.
* Fixes for "varcheck" and "unused" added.
* Fixes for "varcheck" and "unused" added.
* Fixes for "varcheck" and "unused" added.
* Fixes for "varcheck" and "unused" added.
* Fixes for "varcheck" and "unused" added.
* Fixes for "varcheck" and "unused" added.
Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-22 12:21:36 -05:00
Paweł Żak
38c61c07ef
Revive fixes - part 4: ( #8981 )
...
empty-lines
Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-12 14:21:51 -06: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
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
Steven Soroka
78cf0b7ea6
turn gzip on by default for InfluxDB v1 output ( #8269 )
2020-10-16 13:07:29 -04:00
Paweł Żak
c8e69aca3c
Fixed almost all bugs found by LGTM analysis platform ( #8240 )
2020-10-08 11:20:35 -04:00
Daniel Nelson
c73ed8ca6c
Export internal/tls package for use in execd plugins ( #7697 )
2020-06-25 11:44:22 -07:00
Daniel Nelson
643fb7decc
Remove trailing backslash from tag keys/values ( #7652 )
2020-06-12 17:54:49 -07:00
Daniel Nelson
edd8338180
Close HTTP2 connections on timeout in influxdb outputs ( #7517 )
2020-05-19 11:53:10 -07:00
Josh Soref
2c56d6de81
Fix spelling errors in comments and documentation ( #7492 )
2020-05-14 00:41:58 -07:00
Daniel Nelson
b77dac9fdf
Run create database query once per database ( #7333 )
2020-04-28 13:41:59 -07:00
Daniel Nelson
a4eb9c2205
Use the product token for the user agent in more locations ( #7378 )
2020-04-21 10:02:18 -07:00
Daniel Nelson
eb8d805370
Fix exclude database and retention policy tags is shared ( #7323 )
2020-04-14 12:15:35 -07:00
reimda
9413291064
Fix error in docs about exclude_retention_policy_tag ( #7311 )
2020-04-13 12:44:03 -07:00
Daniel Nelson
c7146be2f2
Add support for setting retention policy using tag ( #7141 )
2020-03-10 15:20:03 -07:00
Daniel Nelson
eb00f41905
Use actual database name in db creation failed log ( #6780 )
2019-12-10 12:58:59 -08:00
陈方舟
fa2f0fff4e
Fix influxdb output serialization on connection closed ( #6621 )
2019-11-13 12:56:01 -08:00
Daniel Nelson
47fd285b4a
Fix database routing on retry with exclude_database_tag ( #6486 )
2019-10-07 12:13:39 -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
94f68c06d7
Use alias name in output metric buffer stats
2019-08-21 18:06:04 -07:00
Greg
5c8d0e3ac9
Add ability to label inputs for logging ( #6207 )
2019-08-21 16:49:07 -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
17d66b864c
Close idle connections in influxdb outputs when reloading ( #5912 )
2019-05-31 16:55:31 -07:00
Daniel Nelson
65b76dc746
Add tag based routing in influxdb/influxdb_v2 outputs ( #5490 )
2019-02-27 10:54:02 -08:00
Olli-Pekka Lehto
5dfa3fa769
Fix InfluxDB output UDP line splitting ( #5439 )
2019-02-19 15:08:54 -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
Trevor Pounds
ee056278f5
Enable gofmt code simplification ( #4887 )
2018-10-19 13:32:54 -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
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
Mihai Todor
f3da717a88
Add entity-body compression to http output ( #4807 )
2018-10-05 15:06:41 -07:00
Daniel Nelson
403ed001bf
Add version to the influxdb output plugins readme
2018-09-21 13:07:12 -07:00
Daniel Nelson
87b8141d13
Make influxdb output log message style more consistent
2018-09-04 13:19:54 -07:00
Daniel Nelson
fa30f568ec
Skip unserializable metric in influxDB UDP output ( #4534 )
2018-08-14 14:36:29 -06:00
Daniel Nelson
4dfb80d0fc
Fix error message if URL is unparseable in influxdb output ( #4511 )
2018-08-07 11:07:46 -07:00
maxunt
96cb0aaea0
Fix unit tests on Darwin ( #4458 )
2018-07-27 18:29:54 -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
abdff033cc
Note options that only work with influxdb HTTP
2018-04-25 13:47:16 -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
Boris Schrijver
64a23c0b18
Fix make test-ci run ( #4002 )
2018-04-10 15:35:58 -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
265d0e6d84
Fix bug preventing database from being recreated ( #3962 )
2018-04-02 16:18:33 -07:00
Daniel Nelson
b99cd14129
Add influx uint support as a runtime option ( #3948 )
2018-03-29 13:31:43 -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
cc97b48ca8
Add support for skipping database creation ( #3941 )
2018-03-27 17:59:57 -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
4f7afb8cb5
Set content-type charset in influxdb output and allow it be overridden ( #3593 )
2017-12-28 16:22:19 -08:00
Maximilien Richer
5f215c22fe
Fix typos in comments ( #3415 )
2017-10-31 17:00:06 -07:00
Daniel Nelson
cce40c515a
Use chunked transfer encoding in InfluxDB output ( #3307 )
2017-10-05 16:14:21 -07:00
Dimitris Rozakis
9c8f4afa37
Respect path prefix in influx output uri ( #3224 )
2017-09-13 17:27:01 -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
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
Dylan Meissner
a9a40cbf87
HTTP headers can be added to InfluxDB output ( #3182 )
2017-08-28 16:08:50 -07:00
Daniel Nelson
1f4a997164
Don't retry points beyond retention policy ( #3155 )
2017-08-22 16:52:26 -07:00
Bob Shannon
5fbdd09aaf
Add gzip content-encoding support to influxdb output ( #2978 )
2017-08-14 14:50:15 -07:00
Simone Rotondo
674c24f987
Add HTTP Proxy support to influxdb output ( #2929 )
2017-06-16 12:05:08 -07:00
Daniel Nelson
5bab4616ff
Fix udp metric splitting ( #2880 )
2017-06-05 12:44:29 -07:00
Daniel Nelson
be03abd464
Fix length calculation of split metric buffer ( #2869 )
2017-05-30 17:38:32 -07:00
Daniel Nelson
f47924ffc5
Fix influxdb output database quoting ( #2851 )
2017-05-25 13:25:52 -07:00
Daniel Nelson
da99777f6f
Only split metrics if there is an udp output ( #2799 )
2017-05-12 15:34:05 -07:00
Sebastian Borza
f74687dcc0
split metrics based on UDPPayload size ( #2795 )
2017-05-12 14:45:50 -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
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
0fa9001453
Clarify influxdb output url format
...
closes #2568
2017-03-24 16:04:18 -07:00
Patrick Hemmer
1402c158b7
remove sleep from tests ( #2555 )
2017-03-24 12:03:36 -07: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
c9e87a39f8
Revert using fasthttp library to net/http
2017-01-25 16:42:23 -08:00
Cameron Sparr
4a5d313693
Improve the InfluxDB through-put performance
...
This changes the current use of the InfluxDB client to instead use a
baked-in client that uses the fasthttp library.
This allows for significantly smaller allocations, the re-use of http
body buffers, and the re-use of the actual bytes of the line-protocol
metric representations.
2017-01-25 11:54:16 -08:00
Cameron Sparr
80411f99f0
influxdb output: treat field type conflicts as a successful write
...
If we write a batch of points and get a "field type conflict" error
message in return, we should drop the entire batch of points because
this indicates that one or more points have a type that doesnt match the
database.
These errors will never go away on their own, and InfluxDB will
successfully write the points that dont have a conflict.
closes #2245
2017-01-23 16:41:29 -08:00
Cameron Sparr
c7834209d2
Major Logging Overhaul
...
in this commit:
- centralize logging output handler.
- set global Info/Debug/Error log levels based on config file or flags.
- remove per-plugin debug arg handling.
- add a I!, D!, or E! to every log message.
- add configuration option to specify where to send logs.
closes #1786
2016-10-03 17:13:03 +01:00
Ross McDonald
69e4e862a3
Fix typo of 'quorom' to 'quorum' when specifying write consistency. ( #1618 )
2016-08-10 17:51:21 +01:00
Cameron Sparr
c99c22534b
influxdb output: config doc update
2016-08-09 07:50:35 +01:00
Cameron Sparr
9d3ad6309e
Remove IF NOT EXISTS from influxdb output
2016-08-05 13:55:02 +01:00
Cameron Sparr
af0979cce5
change "default" retention policy to ""
...
closes #1374
2016-06-16 12:22:27 +01:00
Cameron Sparr
d7efb7a71d
Add precision rounding to accumulator
...
Adding precision rounding to the accumulator. This means that now every
input metric will get rounded at collection, rather than at write (and
only for the influxdb output).
This feature is disabled for service inputs, because service inputs
should be in control of their own timestamps & precisions.
2016-06-14 00:36:39 +01:00
Kostas Botsas
0ebf1c1ad7
write_consistency documentation ( #1282 )
...
Added write_consistency to InfluxDB output documentation
2016-05-26 17:23:01 +01:00
Cameron Sparr
204ebf6bf6
influxdb output: write consistency parameter
...
closes #1249
2016-05-24 10:50:27 +01:00
Cameron Sparr
8cc72368ca
influxdb output: close connections & dont always overwrite
...
closes #1058
closes #1059
also see https://github.com/influxdata/influxdb/pull/6425
2016-04-19 13:40:08 -06:00
Chris Goller
7f65ffcb15
Add optional parameters to influxdb output README
2016-03-22 09:14:25 -06:00
Cameron Sparr
5917a42997
influxdb output: quote the database name
...
closes #898
2016-03-21 14:37:33 -06:00
Cameron Sparr
d3925890b1
github wh: return from eventHandler when err != nil
...
closes #837
2016-03-14 10:34:58 +00:00
Cameron Sparr
8c6c144f28
influxdb output: If all write fails, trigger a reconnect
...
closes #836
2016-03-14 10:28:01 +00:00
Cameron Sparr
3568fb9f93
Support specifying influxdb retention policy
...
closes #692
2016-02-29 18:10:32 +00:00
Cameron Sparr
04a8e5b888
influxdb output: try to connect on write if there are no conns
2016-02-26 16:26:43 +00:00
Cameron Sparr
584a52ac21
InfluxDB output should not default to 'no timeout' for http writes
...
default to 5s instead, since even if it times out we will cache the
points and move on
closes #685
2016-02-19 15:38:51 -07:00
Cameron Sparr
8d2e5f0bda
Seems to be a toml parse bug around triple pounds
2016-02-18 14:36:03 -07:00
Dragostin Yanev (netixen)
a13d19c582
pugins/outputs/influxdb: Prevent runtime panic.
...
- Check and return error from NewBatchPoints to prevent runtime panic if
user provides an unparsable precision time unit in config.
- Provide correct sample config precision examples.
- Update etc/telegraf.conf precision comment.
closes #715
2016-02-18 13:12:20 -07:00
Cameron Sparr
6a601ceb97
Add support for specifying SSL config for influxdb output
...
closes #191
2016-02-12 17:02:01 -07:00
Cameron Sparr
fc7fa4b6c5
Cleanup comments and indentation in config file
2016-02-09 11:01:50 -07:00
Cameron Sparr
bd9c5b6995
mqtt output: cleanup, implement TLS
...
Also normalize TLS config across all output plugins and normalize
comment strings as well.
2016-02-04 10:44:37 -07:00