Kit Patella
ad4cebc1d8
fix some tests that were broken from the TelemetryConfig change
2020-11-16 15:22:36 -08:00
Kit Patella
49f017bd42
prometheussink has the same number of params again
2020-11-16 14:01:40 -08:00
Kit Patella
b81edac7bb
use the MetricsPrefix to set the service name and provide as slice literal to avoid bugs from append modifying its first arg
2020-11-16 14:01:12 -08:00
Kit Patella
5e0e4098c9
push prometheus sink definiitons into prometheus.PrometheusOpts
2020-11-16 12:44:47 -08:00
Kit Patella
24a2471029
first pass on agent-configured prometheusDefs and adding defs for every consul metric
2020-11-12 18:12:12 -08:00
Kit Patella
8993fea163
remove definitions for consul.runtime... metrics - they're prepended with hostnames and won't init
2020-11-04 14:02:47 -08:00
Kit Patella
1c4885c44a
add definitions for key metrics. This will not build until we have the definitions patch to go-metrics
2020-11-02 15:01:00 -08:00
Kit Patella
7fe2f80b4b
add config flag to disable 1.9 metrics backwards compatibility. Add warnings on start and reload on default value
2020-10-07 17:12:52 -07:00
Daniel Nephin
63bad36de7
testing: disable global metrics sink in tests
...
This might be better handled by allowing configuration for the InMemSink interval and retail, and disabling
the global. For now this is a smaller change to remove the goroutine leak caused by tests because go-metrics
does not provide any way of shutting down the global goroutine.
2020-08-18 19:04:57 -04:00
Daniel Nephin
010a609912
Fix a bunch of unparam lint issues
2020-06-24 13:00:14 -04:00
Christian Muehlhaeuser
7753b97cc7
Simplified code in various places ( #6176 )
...
All these changes should have no side-effects or change behavior:
- Use bytes.Buffer's String() instead of a conversion
- Use time.Since and time.Until where fitting
- Drop unnecessary returns and assignment
2019-07-20 09:37:19 -04:00
Paul Banks
c6ef6a61c9
Refactor to use embedded struct.
2018-06-25 12:25:39 -07:00
Paul Banks
32f362bad9
StartupTelemetry => InitTelemetry
2018-06-25 12:25:39 -07:00
Paul Banks
a7038454fd
WIP
2018-06-25 12:25:38 -07:00