Commit aef2b6b4 by Torkel Ödegaard

feat(instrumentation): finial polish

parent 35a7a3a5
...@@ -17,8 +17,6 @@ import ( ...@@ -17,8 +17,6 @@ import (
"github.com/grafana/grafana/pkg/util" "github.com/grafana/grafana/pkg/util"
) )
var i int = 0
var dataProxyTransport = &http.Transport{ var dataProxyTransport = &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
Proxy: http.ProxyFromEnvironment, Proxy: http.ProxyFromEnvironment,
......
package metrics package metrics
var MetricStats = NewRegistry() var MetricStats Registry
var UseNilMetrics bool = true var UseNilMetrics bool
func init() {
// init with nil metrics
initMetricVars(&MetricSettings{})
}
var ( var (
M_Instance_Start Counter M_Instance_Start Counter
...@@ -31,6 +36,7 @@ var ( ...@@ -31,6 +36,7 @@ var (
func initMetricVars(settings *MetricSettings) { func initMetricVars(settings *MetricSettings) {
UseNilMetrics = settings.Enabled == false UseNilMetrics = settings.Enabled == false
MetricStats = NewRegistry()
M_Instance_Start = RegCounter("instance_start") M_Instance_Start = RegCounter("instance_start")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment