Daniel Nelson
0ff9c8ef88
Add call to optional Init function for all plugins ( #5899 )
2019-06-14 15:12:27 -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
99a390b8e6
Fix open error handling in file output ( #5540 )
2019-03-22 13:59:30 -07:00
Daniel Nelson
b34c5e0d04
Update the buffer_size internal metric after writes ( #5314 )
2019-01-22 13:43:51 -08:00
Daniel Nelson
6e5c2f8bb6
Remove outputs blocking inputs when output is slow ( #4938 )
2018-11-05 13:34:28 -08:00
Daniel Nelson
7553c8fd13
Remove metric recreation when filtering ( #4767 )
2018-09-28 14:48:20 -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
23a8498963
Fix locking if output is an AggregatingOutput
2018-09-10 15:14:14 -07:00
Gunnar
f70d6519e7
Add Azure Monitor output plugin ( #4089 )
2018-09-05 14:50:32 -07:00
Daniel Nelson
886d8cc840
Drop message batches in kafka output if too large ( #4565 )
2018-08-17 13:51:21 -07:00
Shanshi Shi
e538433959
Preserve metric type when using filters in output plugins ( #4481 )
2018-08-01 16:39:54 -06:00
Daniel Nelson
8147d60973
Fix metric buffer limit in internal plugin after reload
2018-02-19 20:55:28 -08:00
Daniel Nelson
5d2c093105
Prevent Write from being called concurrently ( #3011 )
2017-07-12 12:03:23 -07:00
Cameron Sparr
06176ef410
Only set the buffer size once
...
fixes #2380
2017-02-17 14:11:15 +00:00
Cameron Sparr
e87ce22af9
running output: Drop nil metrics
...
fixes #2317
2017-02-01 08:55:22 +00:00
Cameron Sparr
d71a42cd1b
Implement telegraf collecting stats on itself
...
closes #1348
2016-12-05 18:56:54 +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
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
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
d3bb1e7010
Rename internal_models package to models
2016-08-08 14:41:40 +01:00
Cameron Sparr
2d4864e126
nil metric list panic fix
2016-06-29 12:08:36 +02:00
Cameron Sparr
4de75ce621
Performance refactor of running_output buffers
...
closes #914
closes #967
2016-04-27 13:40:05 -06:00
Cameron Sparr
c7719ac365
buffers: fix bug when Write called before AddMetric
2016-04-26 10:25:04 -06:00
Pierre Fersing
c159460b2c
Refactor running_output buffering
...
closes #1087
2016-04-25 16:32:41 -06:00
Cameron Sparr
81d0a64d46
Adds support for removing/keeping tags from metrics
...
closes #706
2016-04-16 15:13:38 -06:00
Cameron Sparr
77dcbe95c0
Do not write metrics if there are 0 to write
...
closes #884
2016-03-18 10:54:51 -06:00
Cameron Sparr
845abcdd77
Only log the overwritten metric warning on 1st overwrite per buffer
...
see #807
2016-03-09 14:44:32 +01:00
Pierre Fersing
29d1cbb673
Reduce metric_buffer_limit to 1000
...
closes #780
2016-03-03 15:32:44 +00:00
Cameron Sparr
88c83277c6
Write unit tests for RunningOutput
2016-02-17 17:06:34 -07:00
Cameron Sparr
d0734b105b
Start service plugins immediately, fix off-by-one bug
2016-02-17 15:10:32 -07:00
Cameron Sparr
ee468be696
Flush based on buffer size rather than time
...
this includes:
- Add Accumulator to the Start() function of service inputs
- For message consumer plugins, use the Accumulator to constantly add
metrics and make Gather a dummy function
- rework unit tests to match this new behavior.
- make "flush_buffer_when_full" a config option that defaults to true
closes #666
2016-02-16 22:25:22 -07:00
Cameron Sparr
962325cc40
Warn when metrics are being overwritten
...
closes #601
2016-01-28 14:00:14 -07:00
Cameron Sparr
c549ab907a
Throughout telegraf, use telegraf.Metric rather than client.Point
...
closes #599
2016-01-27 23:47:32 -07:00
Cameron Sparr
9c0d14bb60
Create public models for telegraf metrics, accumlator, plugins
...
This will basically make the root directory a place for storing the
major telegraf interfaces, which will make telegraf's godoc looks quite
a bit nicer. And make it easier for contributors to lookup the few data
types that they actually care about.
closes #564
2016-01-27 15:42:50 -07:00
Cameron Sparr
5349a3b6d1
Implement a per-output fixed size metric buffer
...
Also moved some objects out of config.go and put them in their own
package, internal/models
fixes #568
closes #285
2016-01-22 16:29:02 -07:00