Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
98a8fb26
Commit
98a8fb26
authored
Oct 30, 2016
by
Ben Kochie
Committed by
Miek Gieben
Oct 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update metric names (#371)
Cleanup names/typos to match standard naming conventions.
parent
490ffbd6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
middleware/cache/README.md
middleware/cache/README.md
+2
-2
middleware/cache/handler.go
middleware/cache/handler.go
+4
-4
middleware/dnssec/README.md
middleware/dnssec/README.md
+2
-2
middleware/dnssec/handler.go
middleware/dnssec/handler.go
+4
-4
middleware/metrics/test/scrape.go
middleware/metrics/test/scrape.go
+1
-1
No files found.
middleware/cache/README.md
View file @
98a8fb26
...
@@ -39,8 +39,8 @@ The minimum TTL allowed on resource records is 5 seconds.
...
@@ -39,8 +39,8 @@ The minimum TTL allowed on resource records is 5 seconds.
If monitoring is enabled (via the
*prometheus*
directive) then the following metrics are exported:
If monitoring is enabled (via the
*prometheus*
directive) then the following metrics are exported:
*
coredns_cache_size
_guage
{type} - total elements in the case, type is either "denial" or "success".
*
coredns_cache_size{type} - total elements in the case, type is either "denial" or "success".
*
coredns_cache_capacity
_guage
{type} - total capacity of the cache, type is either "denial" or "success".
*
coredns_cache_capacity{type} - total capacity of the cache, type is either "denial" or "success".
## Examples
## Examples
...
...
middleware/cache/handler.go
View file @
98a8fb26
...
@@ -57,15 +57,15 @@ var (
...
@@ -57,15 +57,15 @@ var (
cacheSize
=
prometheus
.
NewGaugeVec
(
prometheus
.
GaugeOpts
{
cacheSize
=
prometheus
.
NewGaugeVec
(
prometheus
.
GaugeOpts
{
Namespace
:
middleware
.
Namespace
,
Namespace
:
middleware
.
Namespace
,
Subsystem
:
subsystem
,
Subsystem
:
subsystem
,
Name
:
"size
_guage
"
,
Name
:
"size"
,
Help
:
"
Gauge of
number of elements in the cache."
,
Help
:
"
The
number of elements in the cache."
,
},
[]
string
{
"type"
})
},
[]
string
{
"type"
})
cacheCapacity
=
prometheus
.
NewGaugeVec
(
prometheus
.
GaugeOpts
{
cacheCapacity
=
prometheus
.
NewGaugeVec
(
prometheus
.
GaugeOpts
{
Namespace
:
middleware
.
Namespace
,
Namespace
:
middleware
.
Namespace
,
Subsystem
:
subsystem
,
Subsystem
:
subsystem
,
Name
:
"capacity
_gauge
"
,
Name
:
"capacity"
,
Help
:
"
Gauge of
cache's capacity."
,
Help
:
"
The
cache's capacity."
,
},
[]
string
{
"type"
})
},
[]
string
{
"type"
})
)
)
...
...
middleware/dnssec/README.md
View file @
98a8fb26
...
@@ -41,7 +41,7 @@ dnssec [ZONES... ] {
...
@@ -41,7 +41,7 @@ dnssec [ZONES... ] {
If monitoring is enabled (via the
*prometheus*
directive) then the following metrics are exported:
If monitoring is enabled (via the
*prometheus*
directive) then the following metrics are exported:
*
coredns_dnssec_
size_guag
e{type} - total elements in the cache, type is "signature".
*
coredns_dnssec_
cache_siz
e{type} - total elements in the cache, type is "signature".
*
coredns_dnssec_ca
pacity_guage
{type} - total capacity of the cache, type is "signature".
*
coredns_dnssec_ca
che_capacity
{type} - total capacity of the cache, type is "signature".
## Examples
## Examples
middleware/dnssec/handler.go
View file @
98a8fb26
...
@@ -43,15 +43,15 @@ var (
...
@@ -43,15 +43,15 @@ var (
cacheSize
=
prometheus
.
NewGaugeVec
(
prometheus
.
GaugeOpts
{
cacheSize
=
prometheus
.
NewGaugeVec
(
prometheus
.
GaugeOpts
{
Namespace
:
middleware
.
Namespace
,
Namespace
:
middleware
.
Namespace
,
Subsystem
:
subsystem
,
Subsystem
:
subsystem
,
Name
:
"
size_guag
e"
,
Name
:
"
cache_siz
e"
,
Help
:
"
Gauge of number of elements in the
cache."
,
Help
:
"
The number of elements in the dnssec
cache."
,
},
[]
string
{
"type"
})
},
[]
string
{
"type"
})
cacheCapacity
=
prometheus
.
NewGaugeVec
(
prometheus
.
GaugeOpts
{
cacheCapacity
=
prometheus
.
NewGaugeVec
(
prometheus
.
GaugeOpts
{
Namespace
:
middleware
.
Namespace
,
Namespace
:
middleware
.
Namespace
,
Subsystem
:
subsystem
,
Subsystem
:
subsystem
,
Name
:
"ca
pacity_gauge
"
,
Name
:
"ca
che_capacity
"
,
Help
:
"
Gauge of
cache's capacity."
,
Help
:
"
The dnssec
cache's capacity."
,
},
[]
string
{
"type"
})
},
[]
string
{
"type"
})
)
)
...
...
middleware/metrics/test/scrape.go
View file @
98a8fb26
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
// Basic usage:
// Basic usage:
//
//
// result := Scrape("http://localhost:9153/metrics")
// result := Scrape("http://localhost:9153/metrics")
// v := MetricValue("coredns_cache_capacity
_gauge
", result)
// v := MetricValue("coredns_cache_capacity", result)
//
//
package
test
package
test
...
...
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