Commit aef2b6b4 by Torkel Ödegaard

feat(instrumentation): finial polish

parent 35a7a3a5
......@@ -17,8 +17,6 @@ import (
"github.com/grafana/grafana/pkg/util"
)
var i int = 0
var dataProxyTransport = &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
Proxy: http.ProxyFromEnvironment,
......
package metrics
var MetricStats = NewRegistry()
var UseNilMetrics bool = true
var MetricStats Registry
var UseNilMetrics bool
func init() {
// init with nil metrics
initMetricVars(&MetricSettings{})
}
var (
M_Instance_Start Counter
......@@ -31,6 +36,7 @@ var (
func initMetricVars(settings *MetricSettings) {
UseNilMetrics = settings.Enabled == false
MetricStats = NewRegistry()
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