aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGravatar Zou Nengren <zounengren@cmss.chinamobile.com> 2020-06-24 12:54:03 +0800
committerGravatar GitHub <noreply@github.com> 2020-06-24 06:54:03 +0200
commit73e927d6a813677a075adf6fe82281cdabe82f24 (patch)
tree9214690287213c6b4af576e2d038f289bb18d2a2 /plugin
parent55a33aa9d2c90fb2e7ddbe8d091a7dbc03af78d9 (diff)
downloadcoredns-73e927d6a813677a075adf6fe82281cdabe82f24.tar.gz
coredns-73e927d6a813677a075adf6fe82281cdabe82f24.tar.zst
coredns-73e927d6a813677a075adf6fe82281cdabe82f24.zip
completed metrics of cache and forward (#3962)
Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
Diffstat (limited to 'plugin')
-rw-r--r--plugin/cache/README.md1
-rw-r--r--plugin/forward/README.md3
-rw-r--r--plugin/forward/metrics.go2
3 files changed, 4 insertions, 2 deletions
diff --git a/plugin/cache/README.md b/plugin/cache/README.md
index 6c343fe12..8e7c24d9e 100644
--- a/plugin/cache/README.md
+++ b/plugin/cache/README.md
@@ -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_hits_total{server, type}` - Counter of cache hits by cache type.
* `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_served_stale_total{server}` - Counter of requests served from stale cache entries.
diff --git a/plugin/forward/README.md b/plugin/forward/README.md
index e745e2970..54810fbac 100644
--- a/plugin/forward/README.md
+++ b/plugin/forward/README.md
@@ -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:
-* `coredns_forward_request_duration_seconds{to}` - duration per upstream interaction.
* `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_healthcheck_failures_total{to}` - number of failed health checks per upstream.
* `coredns_forward_healthcheck_broken_total{}` - counter of when all upstreams are unhealthy,
diff --git a/plugin/forward/metrics.go b/plugin/forward/metrics.go
index 4122bc210..07aa1a6ed 100644
--- a/plugin/forward/metrics.go
+++ b/plugin/forward/metrics.go
@@ -18,7 +18,7 @@ var (
Namespace: plugin.Namespace,
Subsystem: "forward",
Name: "responses_total",
- Help: "Counter of requests made per upstream.",
+ Help: "Counter of response made per upstream.",
}, []string{"rcode", "to"})
RequestDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Namespace: plugin.Namespace,
href='/ansg191/bun/log/integration/snapshots/optional-chain-with-function.debug.js?h=jarred/esbuild-plugin-api&follow=1'>optional-chain-with-function.debug.js (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-02-05Update bun-flavored-toml.mdGravatar Jarred Sumner 1-0/+2
2022-02-05Add unit test for toml importsGravatar Jarred Sumner 2-0/+47
2022-02-05[TOML] Fix bug with [[arrays]]Gravatar Jarred Sumner 1-2/+5
2022-02-05Handle promise rejections in testsGravatar Jarred Sumner 2-19/+35
2022-02-05Update resolve_path.zigGravatar Jarred Sumner 1-37/+35
2022-02-05Always try to load bunfig.toml for `install`, `dev`, `bun`, `test`Gravatar Jarred Sumner 1-3/+25
2022-02-05()Gravatar Jarred Sumner 1-1/+1
2022-02-05One less memcpyGravatar Jarred Sumner 1-68/+100
2022-02-05Further reliability improvements to http clientGravatar Jarred Sumner 2-14/+62
2022-02-05Implement keep-alive but disable itGravatar Jarred Sumner 2-17/+126
2022-02-05Make bun-install slower but more reliable on Linux Kernel 5.5 and lowerGravatar Jarred SUmner 1-112/+31
2022-02-04Several reliability improvements to HTTPGravatar Jarred SUmner 12-141/+189
2022-02-04reminderGravatar Jarred Sumner 3-5/+6
2022-02-04`path.resolve()` passes testsGravatar Jarred Sumner 2-13/+81
2022-02-04Update multiple-var.jsGravatar Jarred Sumner 1-1/+2
2022-02-04:camera:Gravatar Jarred Sumner 74-340/+669
2022-02-04Update snippets.jsonGravatar Jarred Sumner 1-1/+3
2022-02-04Add integration test for reading .json files that have UTF-8 string literalsGravatar Jarred Sumner 2-0/+9
2022-02-04[http] fix segfaultGravatar Jarred Sumner 1-17/+25
2022-02-04[bun dev] Fix bug with serving static files on next.js apps introduced in af6...Gravatar Jarred Sumner 1-5/+7
2022-02-04Update types.zigGravatar Jarred Sumner 1-9/+10
2022-02-04Update test_command.zigGravatar Jarred Sumner 1-2/+0
2022-02-04`path.normalize()` tests passGravatar Jarred Sumner 2-146/+213
2022-02-03Fix test failures in path.joinGravatar Jarred Sumner 1-8/+115
2022-02-03Update mimalloc_arena.zigGravatar Jarred Sumner 1-0/+9
2022-02-03[bun test] Support multiple filesGravatar Jarred Sumner 1-2/+12
2022-02-03Update js_ast.zigGravatar Jarred Sumner 1-0/+1
2022-02-03Support loading multiple entry points by changing what `bun:main` points toGravatar Jarred Sumner 6-4/+36
2022-02-03[bun install] Configurable max http retry countGravatar Jarred Sumner 1-0/+7
2022-02-03Missing newline in errors in bun installGravatar Jarred Sumner 1-4/+8
2022-02-03Fix bug with http clientGravatar Jarred Sumner 6-107/+101
2022-02-03Move detectFastRefresh to later so HTTP request handler starts fasterGravatar Jarred Sumner 1-2/+1
2022-02-03Fix bug with macro remaps in Bun.Transpiler apiGravatar Jarred Sumner 2-5/+8
2022-02-03Slight improvement to non-ascii file path handlingGravatar Jarred Sumner 4-18/+79
2022-02-02`path.relative` passes Node's tests (which also fixed bugs)Gravatar Jarred Sumner 8-283/+571