metrics: instrument request with histograms by default (#33921)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
@@ -399,9 +399,11 @@ func (cfg Cfg) IsDatabaseMetricsEnabled() bool {
|
||||
return cfg.FeatureToggles["database_metrics"]
|
||||
}
|
||||
|
||||
// IsHTTPRequestHistogramEnabled returns whether the http_request_histogram feature is enabled.
|
||||
func (cfg Cfg) IsHTTPRequestHistogramEnabled() bool {
|
||||
return cfg.FeatureToggles["http_request_histogram"]
|
||||
// IsHTTPRequestHistogramDisabled returns whether the request historgrams is disabled.
|
||||
// This feature toggle will be removed in Grafana 8.x but gives the operator
|
||||
// some graceperiod to update all the monitoring tools.
|
||||
func (cfg Cfg) IsHTTPRequestHistogramDisabled() bool {
|
||||
return cfg.FeatureToggles["disable_http_request_histogram"]
|
||||
}
|
||||
|
||||
type CommandLineArgs struct {
|
||||
|
||||
Reference in New Issue
Block a user