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
093563ac
Commit
093563ac
authored
Aug 17, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(metrics): restored prefix default to prod.grafana..
parent
0951da9c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
conf/defaults.ini
+2
-2
conf/sample.ini
+5
-5
docs/sources/installation/configuration.md
+1
-1
pkg/metrics/graphite_test.go
+3
-3
No files found.
conf/defaults.ini
View file @
093563ac
...
@@ -350,13 +350,13 @@ global_session = -1
...
@@ -350,13 +350,13 @@ global_session = -1
# Metrics available at HTTP API Url /api/metrics
# Metrics available at HTTP API Url /api/metrics
[metrics]
[metrics]
enabled
=
true
enabled
=
true
interval_seconds
=
6
0
interval_seconds
=
1
0
# Send internal Grafana metrics to graphite
# Send internal Grafana metrics to graphite
[metrics.graphite]
[metrics.graphite]
# Enable by setting the address setting (ex localhost:2003)
# Enable by setting the address setting (ex localhost:2003)
address
=
address
=
prefix
=
service
.grafana.%(instance_name)s.
prefix
=
prod
.grafana.%(instance_name)s.
[grafana_net]
[grafana_net]
url
=
https://grafana.net
url
=
https://grafana.net
conf/sample.ini
View file @
093563ac
...
@@ -297,18 +297,18 @@ check_for_updates = true
...
@@ -297,18 +297,18 @@ check_for_updates = true
# Metrics available at HTTP API Url /api/metrics
# Metrics available at HTTP API Url /api/metrics
[metrics]
[metrics]
# Disable / Enable internal metrics
# Disable / Enable internal metrics
enabled
=
true
;
enabled = true
# Publish interval
# Publish interval
interval_seconds
=
10
;
interval_seconds = 10
# Send internal metrics to Graphite
# Send internal metrics to Graphite
[metrics.graphite]
[metrics.graphite]
# Enable by setting the address setting (ex localhost:2003)
# Enable by setting the address setting (ex localhost:2003)
address
=
;
address =
prefix
=
service
.grafana.%(instance_name)s.
;prefix = prod
.grafana.%(instance_name)s.
#################################### Internal Grafana Metrics ##########################
#################################### Internal Grafana Metrics ##########################
# Url used to to import dashboards directly from Grafana.net
# Url used to to import dashboards directly from Grafana.net
[grafana_net]
[grafana_net]
url
=
https://grafana.net
;
url = https://grafana.net
docs/sources/installation/configuration.md
View file @
093563ac
...
@@ -466,7 +466,7 @@ Enable metrics reporting. defaults true. Available via HTTP API `/api/metrics`.
...
@@ -466,7 +466,7 @@ Enable metrics reporting. defaults true. Available via HTTP API `/api/metrics`.
### interval_seconds
### interval_seconds
Flush/Write interval when sending metrics to external TSDB. Defaults to
6
0s.
Flush/Write interval when sending metrics to external TSDB. Defaults to
1
0s.
## [metrics.graphite]
## [metrics.graphite]
Include this section if you want to send internal Grafana metrics to Graphite.
Include this section if you want to send internal Grafana metrics to Graphite.
...
...
pkg/metrics/graphite_test.go
View file @
093563ac
...
@@ -19,7 +19,7 @@ func TestGraphitePublisher(t *testing.T) {
...
@@ -19,7 +19,7 @@ func TestGraphitePublisher(t *testing.T) {
So
(
err
,
ShouldBeNil
)
So
(
err
,
ShouldBeNil
)
sec
,
err
:=
setting
.
Cfg
.
NewSection
(
"metrics.graphite"
)
sec
,
err
:=
setting
.
Cfg
.
NewSection
(
"metrics.graphite"
)
sec
.
NewKey
(
"prefix"
,
"
service
.grafana.%(instance_name)s."
)
sec
.
NewKey
(
"prefix"
,
"
prod
.grafana.%(instance_name)s."
)
sec
.
NewKey
(
"address"
,
"localhost:2001"
)
sec
.
NewKey
(
"address"
,
"localhost:2001"
)
So
(
err
,
ShouldBeNil
)
So
(
err
,
ShouldBeNil
)
...
@@ -30,7 +30,7 @@ func TestGraphitePublisher(t *testing.T) {
...
@@ -30,7 +30,7 @@ func TestGraphitePublisher(t *testing.T) {
So
(
err
,
ShouldBeNil
)
So
(
err
,
ShouldBeNil
)
So
(
publisher
,
ShouldNotBeNil
)
So
(
publisher
,
ShouldNotBeNil
)
So
(
publisher
.
prefix
,
ShouldEqual
,
"
service
.grafana.hostname_with_dots_com."
)
So
(
publisher
.
prefix
,
ShouldEqual
,
"
prod
.grafana.hostname_with_dots_com."
)
So
(
publisher
.
address
,
ShouldEqual
,
"localhost:2001"
)
So
(
publisher
.
address
,
ShouldEqual
,
"localhost:2001"
)
})
})
...
@@ -53,7 +53,7 @@ func TestGraphitePublisher(t *testing.T) {
...
@@ -53,7 +53,7 @@ func TestGraphitePublisher(t *testing.T) {
So
(
err
,
ShouldBeNil
)
So
(
err
,
ShouldBeNil
)
So
(
publisher
,
ShouldNotBeNil
)
So
(
publisher
,
ShouldNotBeNil
)
So
(
publisher
.
prefix
,
ShouldEqual
,
"
service
.grafana.hostname_with_dots_com."
)
So
(
publisher
.
prefix
,
ShouldEqual
,
"
prod
.grafana.hostname_with_dots_com."
)
So
(
publisher
.
address
,
ShouldEqual
,
"localhost:2001"
)
So
(
publisher
.
address
,
ShouldEqual
,
"localhost:2001"
)
})
})
...
...
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