Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
aef2b6b4
Commit
aef2b6b4
authored
Jun 03, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(instrumentation): finial polish
parent
35a7a3a5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
pkg/api/dataproxy.go
+0
-2
pkg/metrics/metrics.go
+8
-2
No files found.
pkg/api/dataproxy.go
View file @
aef2b6b4
...
...
@@ -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
,
...
...
pkg/metrics/metrics.go
View file @
aef2b6b4
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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment