Cameron Sparr
9f6666beb3
unit test fixup
2016-12-01 19:17:44 +00:00
Cameron Sparr
af6e7b9531
More unit tests for new metric
2016-12-01 19:07:14 +00:00
Cameron Sparr
6fd7361364
allocation & perf improvements
2016-12-01 18:17:02 +00:00
Cameron Sparr
e5c7a71d8e
Fix unit tests for new metric implementation
2016-12-01 18:17:02 +00:00
Cameron Sparr
db7a4b24b6
Implement telegraf's own full metric type
...
main reasons behind this:
- make adding/removing tags cheap
- make adding/removing fields cheap
- make parsing cheaper
- make parse -> decorate -> write out bytes metric flow much faster
Refactor serializer to use byte buffer
2016-12-01 18:17:02 +00:00
Cameron Sparr
332f678afb
JSON serializer: include unit test with escapes
2016-12-01 18:16:52 +00:00
Cameron Sparr
f862c6585d
amqp precision is not used anymore
2016-11-24 10:17:24 +00:00
Cameron Sparr
5c32521a07
Add benchmarks for metric parsing and creating
2016-11-23 17:23:08 +00:00
Cameron Sparr
9db30250c3
'discard' output plugin
2016-11-23 14:03:30 +00:00
Cameron Sparr
2b0cd2037b
Add Copy() function to Metric interface
2016-11-23 12:30:31 +00:00
Cameron Sparr
2435e47926
changelog update
2016-11-15 11:36:26 +00:00
Cameron Sparr
0ecbf9e349
Fix single quote parsing of TOML durations
...
closes #2023
2016-11-10 09:47:46 +00:00
Cameron Sparr
1c7715780e
Documentation improvements
...
- fully document aggregator and processor plugins
- improve readme.md
closes #1989
2016-11-08 13:55:37 +00:00
Cameron Sparr
e84b356a12
Update etc/telegraf.conf
2016-11-04 13:18:44 +00:00
Cameron Sparr
47de43abf3
Use rfc3339 timestamps in telegraf log output
...
closes #1564
also add unit and benchmark tests
2016-11-03 18:39:02 +00:00
Cameron Sparr
dc28875437
Update gopsutil dependency
...
primarily for a fix in Windows network counter getting code
closes #1949
2016-11-03 18:06:10 +00:00
Cameron Sparr
a6ed4d4c3a
CircleCI script, do not explicitly set version tag
2016-11-03 17:21:06 +00:00
Cameron Sparr
fe6162b2a1
Use short commit in Makefile build
2016-11-03 16:37:52 +00:00
Cameron Sparr
34182d9c9f
Add release 1.2 section to changelog
2016-11-03 14:34:09 +00:00
Cameron Sparr
16081b2d1a
Update etc/telegraf.conf
2016-11-03 14:31:55 +00:00
Cameron Sparr
2150510bd4
nats_consumer: buffer incoming messages
...
fixes #1956
2016-10-27 13:39:27 +01:00
Cameron Sparr
0cfa0d419a
udp_listener & tcp_listener set default values
...
closes #1936
2016-10-27 10:25:24 +01:00
Cameron Sparr
c66363cba5
Update Go version: 1.7.1->1.7.3
2016-10-25 14:49:21 +01:00
Cameron Sparr
61269c3500
Update config generation docs
...
closes #1925
2016-10-25 14:46:50 +01:00
Cameron Sparr
80d4864844
Only install fpm,rpm,boto if we need them
2016-10-25 13:31:48 +01:00
Cameron Sparr
f729fa990d
Unit testing for internal.Duration Unmarshal
...
closes #1926
2016-10-25 13:11:32 +01:00
Cameron Sparr
c849b58de9
http_listener input unit tests
2016-10-24 18:17:49 +01:00
Cameron Sparr
097b1e09db
http listener refactor
...
in this commit:
- chunks out the http request body to avoid making very large
allocations.
- establishes a limit for the maximum http request body size that the
listener will accept.
- utilizes a pool of byte buffers to reduce GC pressure.
2016-10-24 18:17:49 +01:00
Cameron Sparr
a4e8f24b16
Set reasonable defaults in ping plugin
...
closes #1742
2016-10-17 15:21:09 +01:00
Cameron Sparr
a65447d22e
Use mysql.ParseDSN func instead of url.Parse
...
The MySQL DB driver has it's own DSN parsing function. Previously we
were using the url.Parse function, but this causes problems because a
valid MySQL DSN can be an invalid http URL, namely when using some
special characters in the password.
This change uses the MySQL DB driver's builtin ParseDSN function and
applies a timeout parameter natively via that.
Another benefit of this change is that we fail earlier if given an
invalid MySQL DSN.
closes #870
closes #1842
2016-10-12 17:10:28 +01:00
Cameron Sparr
b00ad65b08
Log config file parsing errors properly
...
closes #1344
2016-10-12 16:50:22 +01:00
Cameron Sparr
a84ce5d5cb
drop metrics outside of the aggregators period
2016-10-12 14:56:03 +01:00
Cameron Sparr
8ca4a50c18
delete nil fields in the metric maker.
...
closes #1771
2016-10-12 14:50:19 +01:00
Cameron Sparr
03b2984ac2
Fixup some code based on feedback from @dgnorton
2016-10-12 14:50:19 +01:00
Cameron Sparr
9540a6532f
Update influxdb dependency for new models.Tags
2016-10-12 14:50:19 +01:00
Cameron Sparr
cace663bbf
Processor & Aggregator Contrib doc
2016-10-12 14:50:19 +01:00
Cameron Sparr
acfdd15aa9
Processor & Aggregator configuration doccing
2016-10-12 14:50:19 +01:00
Cameron Sparr
78f544c0aa
Support --aggregator-filter & --processor-filter
2016-10-12 14:50:19 +01:00
Cameron Sparr
2175a72fcc
Rebase fixup
2016-10-12 14:50:19 +01:00
Cameron Sparr
b03c1d9691
Support ordering of processor plugins
2016-10-12 14:50:19 +01:00
Cameron Sparr
fead80844e
Refactor handling of MinMax functionality into RunningAggregator
...
allows for easier addition of a sliding window at a later time.
Also makes `period` be a generic argument for all aggregator plugins.
2016-10-12 14:50:19 +01:00
Cameron Sparr
ef885eda62
Change minmax aggregator to store float64
2016-10-12 14:50:19 +01:00
Cameron Sparr
64a71263a1
Support Processor & Aggregator Plugins
...
closes #1726
2016-10-12 14:50:19 +01:00
Cameron Sparr
974221f0cf
Fix phpfpm fcgi client panic when URL doesnt exist
...
closes #1886
2016-10-12 11:58:38 +01:00
Cameron Sparr
e96f7a9b12
graphite parser, handle multiple templates empty filter
...
Previously, the graphite parser would simply overwrite any template that
had an identical filter to a previous template. This included the empty
filter.
Now we will still overwrite, but first we will sort to make sure that
the most "specific" template always matches.
closes #1731
2016-10-11 15:22:51 +01:00
Cameron Sparr
1ff721ad84
Add riemann output plugin deprecation message
2016-10-11 12:28:20 +01:00
Cameron Sparr
ca55c4a55d
Remove COMING SOON: multiple statsd fields
2016-10-11 10:57:34 +01:00
Cameron Sparr
d627bdbbdb
logparser: allow numbers in ident & auth parameters
...
fixes #1810
2016-10-10 11:27:35 +01:00
Cameron Sparr
7f0fe78615
Changelog update for systemd log change
2016-10-06 17:48:23 +01:00
Cameron Sparr
886bdd2ef2
changelog update
2016-10-06 14:25:28 +01:00
Cameron Sparr
4ab0344ebf
Update changelog & readme for 1.0.1
2016-10-05 08:41:58 +01:00
Cameron Sparr
ce5054c850
Changelog update
2016-10-03 18:20:10 +01: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
Cameron Sparr
78ced6bc30
Use a bufio.Scanner in http listener
...
this will prevent potential very large allocations due to a very large
chunk size send from a client.
fixes #1823
2016-09-29 16:07:51 +01:00
Cameron Sparr
ca8e512e5b
Update changelog
2016-09-28 16:12:32 +01:00
Cameron Sparr
e19845c202
Load config directory using filepath.Walk
...
closes #1137
2016-09-28 16:01:52 +01:00
Cameron Sparr
52134555d6
globpath: only walk tree if ** is defined
...
closes #1517
2016-09-28 15:44:29 +01:00
Cameron Sparr
e7e39df6a0
Default SNMP parameter changes
...
max-repetitions = 10 is the default of net-snmp utils according to
http://net-snmp.sourceforge.net/docs/man/snmpbulkwalk.html
retries = 3 is the default of gosnmp:
https://godoc.org/github.com/soniah/gosnmp#pkg-variables
Could deal with some parts of the performance issues reported
by #1665
2016-09-28 14:34:20 +01:00
Cameron Sparr
c043461f6c
Fix varnish plugin to use default values
...
closes #1752
2016-09-23 16:06:33 +01:00
Cameron Sparr
ddc07f9ef8
Fix powerdns integer parse error handling
...
closes #1751
2016-09-23 16:05:15 +01:00
Cameron Sparr
17e6496830
update changelog
2016-09-23 11:38:52 +01:00
Cameron Sparr
f12368698b
Update etc/telegraf.conf
...
closes #1789
2016-09-21 11:53:06 +01:00
Cameron Sparr
6648c101dd
Add configurable timeout to influxdb input
...
closes #1773
2016-09-16 16:50:39 +01:00
Cameron Sparr
8d3285522c
Prometheus output: do not remake metrics map each write
...
closes #1775
2016-09-16 16:50:39 +01:00
Cameron Sparr
9b2e2cc41f
kafka panic: Check that error is non-nil before
...
fixes #1764
2016-09-14 08:54:22 +01:00
Cameron Sparr
bc22309459
Add commit & branch to Makefile
2016-09-13 09:31:30 +01:00
Cameron Sparr
c3aa43a6bd
Fix prometheus output panic on reload
...
closes #1530
2016-09-12 10:46:37 +01:00
Cameron Sparr
811567a2f4
Update go version to 1.7, fix vet errors
...
closes #1728
2016-09-09 16:11:17 +01:00
Cameron Sparr
ca8fb440cc
Fix statsd scientific notation parsing
...
closes #1733
2016-09-09 15:13:11 +01:00
Cameron Sparr
ac58a6bb3c
Fix unmarshal of influxdb metrics will null tags
...
closes #1738
2016-09-09 14:49:21 +01:00
Cameron Sparr
5a9e7d77b8
Update readme & chglog for 1.0
2016-09-08 15:26:10 +01:00
Cameron Sparr
e963b7f01b
alphabetize service inputs, add logparser
2016-09-07 15:55:21 +01:00
Cameron Sparr
301c79e57c
Add a 404 and high-traffic test to http listener
...
also remove locking around adding metrics. Instead, keep a waitgroup on
the ServeHTTP function and wait for that to finish before returning from
the Stop() function
closes #1407
2016-09-06 17:21:01 +01:00
Cameron Sparr
8dd2a8527a
Refactor NATS ssl config
2016-09-06 13:52:29 +01:00
Cameron Sparr
2fe427b3b3
mongodb input: fix version 2.2 panic
...
closes #1628
2016-09-06 11:58:06 +01:00
Cameron Sparr
1271f9d71a
jolokia input: add note about POST permissions
...
closes #1628
2016-09-06 11:11:27 +01:00
Cameron Sparr
50ef3282b6
Refactor and code cleanup of filtering
...
started working on this with the idea of fixing #1623 , although I
realized that this was actually just a documentation issue around
a toml eccentricity.
closes #1623
2016-09-05 16:30:18 +01:00
Cameron Sparr
54c9ba7639
Update documentation for Gauge & Counters
2016-09-05 12:58:07 +01:00
Cameron Sparr
b18d375d6c
Implement AddGauge & AddCounter functions
...
and utilize them in the in the 'system' input plugins.
2016-09-02 16:51:26 +01:00
Cameron Sparr
6dbbe65897
Remove Add() function from accumulator
2016-09-02 16:35:27 +01:00
Cameron Sparr
03d8abccdd
Implement telegraf metric types
...
And use them in the prometheus output plugin.
Still need to test the prometheus output plugin.
Also need to actually create typed metrics in the system plugins.
closes #1683
2016-09-02 16:35:27 +01:00
Cameron Sparr
792682590c
Remove snmp_legacy unit tests and docker image
2016-08-31 12:17:06 +01:00
Cameron Sparr
cc2b53abf4
Fix changelog for #1650
2016-08-30 16:24:07 +01:00
Cameron Sparr
5c5984bfe1
Changelog update
2016-08-30 15:26:27 +01:00
Cameron Sparr
602a36e241
fix changelog #1607
2016-08-30 07:04:10 +01:00
Cameron Sparr
969f388ef2
Make elasticsearch timeout configurable
...
closes #1674
2016-08-29 11:06:30 +01:00
Cameron Sparr
e9d33726a9
start aerospike container 1st for unit tests
...
because it requires some time to initialize before it can respond to
metric requests.
2016-08-24 09:16:55 +01:00
Cameron Sparr
dbf6380e4b
update PR template with changelog note
2016-08-17 18:24:06 +01:00
Cameron Sparr
a0e42f8a61
Sanitize graphite characters in field names
...
also sanitize the names at a higher scope for better clarity
closes #1637
2016-08-17 16:56:31 +01:00
Cameron Sparr
94e673fe85
Revert "add pgbouncer plugin"
...
This reverts commit fec9760f72 .
2016-08-17 16:50:11 +01:00
Cameron Sparr
7600757f16
ntpq: don't index ntp fields that dont exist
...
closes #1634
2016-08-16 15:16:42 +01:00
Cameron Sparr
4ce8dd5f9a
Rename snmp plugin to snmp_legacy
2016-08-11 16:11:35 +01:00
Cameron Sparr
c0e895c3a7
etc/telegraf.conf update
2016-08-10 15:16:01 +01:00
Cameron Sparr
abcd19493e
If win stat buffer is empty, do not try to index
...
closes #1425
2016-08-09 08:29:37 +01:00
Cameron Sparr
c99c22534b
influxdb output: config doc update
2016-08-09 07:50:35 +01:00
Cameron Sparr
8e22526756
Adding c:\program files\telegraf\telegraf.conf
...
this will now be the default config file location on windows, basically
it is the windows equivalent of /etc/telegraf/telegraf.conf
also updating the changelog
closes #1543
2016-08-08 23:17:27 +01:00
Cameron Sparr
d3bb1e7010
Rename internal_models package to models
2016-08-08 14:41:40 +01:00
Cameron Sparr
49988b15a3
Default config typo fix
2016-08-06 07:40:28 +01:00
Cameron Sparr
f0357b7a12
CHANGELOG formatting update
...
put all 1.0 beta releases into a single 1.0 release manifest
also add #1586 change
2016-08-05 14:51:19 +01:00
Cameron Sparr
9d3ad6309e
Remove IF NOT EXISTS from influxdb output
2016-08-05 13:55:02 +01:00