aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/README.md b/README.md
index 7e6531f..bd67d5a 100644
--- a/README.md
+++ b/README.md
@@ -121,6 +121,29 @@ $ curl -s -XDELETE 'http://127.0.0.1:8053/cache/v1/' | jq .
}
```
+Metrics:
+
+``` shell
+$ curl 'http://127.0.0.1:8053/metric/v1/' | jq .
+{
+ "summary": {
+ "since": "2020-01-05T00:58:49Z",
+ "total": 2307,
+ "hijacked": 867
+ },
+ "requests": [
+ {
+ "time": "2020-01-05T00:58:49Z",
+ "count": 1
+ }
+ ]
+}
+```
+
+Note that `log_mode = "hijacked"` or `log_mode = "all"` is required to make
+metrics available. Choosing `hijacked` will only produce metrics for hijacked
+requests.
+
## Port redirection
Most operating systems expect to find their DNS resolver on UDP port 53.