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
73e927d6
Commit
73e927d6
authored
Jun 24, 2020
by
Zou Nengren
Committed by
GitHub
Jun 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
completed metrics of cache and forward (#3962)
Signed-off-by:
zounengren
<
zounengren@cmss.chinamobile.com
>
parent
55a33aa9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
4 deletions
+10
-4
man/coredns-cache.7
man/coredns-cache.7
+2
-0
man/coredns-forward.7
man/coredns-forward.7
+4
-2
plugin/cache/README.md
plugin/cache/README.md
+1
-0
plugin/forward/README.md
plugin/forward/README.md
+2
-1
plugin/forward/metrics.go
plugin/forward/metrics.go
+1
-1
No files found.
man/coredns-cache.7
View file @
73e927d6
...
@@ -100,6 +100,8 @@ If monitoring is enabled (via the \fIprometheus\fP plugin) then the following me
...
@@ -100,6 +100,8 @@ If monitoring is enabled (via the \fIprometheus\fP plugin) then the following me
.IP \(bu 4
.IP \(bu 4
\fB\fCcoredns_cache_misses_total{server}\fR - Counter of cache misses.
\fB\fCcoredns_cache_misses_total{server}\fR - Counter of cache misses.
.IP \(bu 4
.IP \(bu 4
\fB\fCcoredns_cache_prefetch_total{server}\fR - Counter of cache has prefetched a cached item.
.IP \(bu 4
\fB\fCcoredns_cache_drops_total{server}\fR - Counter of responses excluded from the cache due to request/response question name mismatch.
\fB\fCcoredns_cache_drops_total{server}\fR - Counter of responses excluded from the cache due to request/response question name mismatch.
.IP \(bu 4
.IP \(bu 4
\fB\fCcoredns_cache_served_stale_total{server}\fR - Counter of requests served from stale cache entries.
\fB\fCcoredns_cache_served_stale_total{server}\fR - Counter of requests served from stale cache entries.
...
...
man/coredns-forward.7
View file @
73e927d6
...
@@ -163,9 +163,11 @@ The read timeout is static at 2s.
...
@@ -163,9 +163,11 @@ The read timeout is static at 2s.
If monitoring is enabled (via the \fIprometheus\fP plugin) then the following metric are exported:
If monitoring is enabled (via the \fIprometheus\fP plugin) then the following metric are exported:
.IP \(bu 4
.IP \(bu 4
\fB\fCcoredns_forward_request_duration_seconds{to}\fR - duration per upstream interaction.
\fB\fCcoredns_forward_requests_total{to}\fR - Counter of requests made per upstream.
.IP \(bu 4
\fB\fCcoredns_forward_responses_total{to}\fR - Counter of responses made per upstream.
.IP \(bu 4
.IP \(bu 4
\fB\fCcoredns_forward_request
s_total{to}\fR - query count per upstream
.
\fB\fCcoredns_forward_request
_duration_seconds{to}\fR - duration per upstream interaction
.
.IP \(bu 4
.IP \(bu 4
\fB\fCcoredns_forward_responses_total{to, rcode}\fR - count of RCODEs per upstream.
\fB\fCcoredns_forward_responses_total{to, rcode}\fR - count of RCODEs per upstream.
.IP \(bu 4
.IP \(bu 4
...
...
plugin/cache/README.md
View file @
73e927d6
...
@@ -73,6 +73,7 @@ If monitoring is enabled (via the *prometheus* plugin) then the following metric
...
@@ -73,6 +73,7 @@ If monitoring is enabled (via the *prometheus* plugin) then the following metric
*
`coredns_cache_entries{server, type}`
- Total elements in the cache by cache type.
*
`coredns_cache_entries{server, type}`
- Total elements in the cache by cache type.
*
`coredns_cache_hits_total{server, type}`
- Counter of cache hits by cache type.
*
`coredns_cache_hits_total{server, type}`
- Counter of cache hits by cache type.
*
`coredns_cache_misses_total{server}`
- Counter of cache misses.
*
`coredns_cache_misses_total{server}`
- Counter of cache misses.
*
`coredns_cache_prefetch_total{server}`
- Counter of cache has prefetched a cached item.
*
`coredns_cache_drops_total{server}`
- Counter of responses excluded from the cache due to request/response question name mismatch.
*
`coredns_cache_drops_total{server}`
- Counter of responses excluded from the cache due to request/response question name mismatch.
*
`coredns_cache_served_stale_total{server}`
- Counter of requests served from stale cache entries.
*
`coredns_cache_served_stale_total{server}`
- Counter of requests served from stale cache entries.
...
...
plugin/forward/README.md
View file @
73e927d6
...
@@ -107,8 +107,9 @@ On each endpoint, the timeouts for communication are set as follows:
...
@@ -107,8 +107,9 @@ On each endpoint, the timeouts for communication are set as follows:
If monitoring is enabled (via the
*prometheus*
plugin) then the following metric are exported:
If monitoring is enabled (via the
*prometheus*
plugin) then the following metric are exported:
*
`coredns_forward_request_duration_seconds{to}`
- duration per upstream interaction.
*
`coredns_forward_requests_total{to}`
- query count per upstream.
*
`coredns_forward_requests_total{to}`
- query count per upstream.
*
`coredns_forward_responses_total{to}`
- Counter of responses made per upstream.
*
`coredns_forward_request_duration_seconds{to}`
- duration per upstream interaction.
*
`coredns_forward_responses_total{to, rcode}`
- count of RCODEs per upstream.
*
`coredns_forward_responses_total{to, rcode}`
- count of RCODEs per upstream.
*
`coredns_forward_healthcheck_failures_total{to}`
- number of failed health checks per upstream.
*
`coredns_forward_healthcheck_failures_total{to}`
- number of failed health checks per upstream.
*
`coredns_forward_healthcheck_broken_total{}`
- counter of when all upstreams are unhealthy,
*
`coredns_forward_healthcheck_broken_total{}`
- counter of when all upstreams are unhealthy,
...
...
plugin/forward/metrics.go
View file @
73e927d6
...
@@ -18,7 +18,7 @@ var (
...
@@ -18,7 +18,7 @@ var (
Namespace
:
plugin
.
Namespace
,
Namespace
:
plugin
.
Namespace
,
Subsystem
:
"forward"
,
Subsystem
:
"forward"
,
Name
:
"responses_total"
,
Name
:
"responses_total"
,
Help
:
"Counter of re
quests
made per upstream."
,
Help
:
"Counter of re
sponse
made per upstream."
,
},
[]
string
{
"rcode"
,
"to"
})
},
[]
string
{
"rcode"
,
"to"
})
RequestDuration
=
prometheus
.
NewHistogramVec
(
prometheus
.
HistogramOpts
{
RequestDuration
=
prometheus
.
NewHistogramVec
(
prometheus
.
HistogramOpts
{
Namespace
:
plugin
.
Namespace
,
Namespace
:
plugin
.
Namespace
,
...
...
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