aboutsummaryrefslogtreecommitdiff
path: root/plugin/metrics/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/metrics/README.md')
-rw-r--r--plugin/metrics/README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugin/metrics/README.md b/plugin/metrics/README.md
index 714b17bd2..1abb5b40c 100644
--- a/plugin/metrics/README.md
+++ b/plugin/metrics/README.md
@@ -48,6 +48,15 @@ Use an alternative address:
}
~~~
+Or via an enviroment variable (this is supported throughout the Corefile): `export PORT=9253`, and
+then:
+
+~~~ corefile
+. {
+ prometheus localhost:{$PORT}
+}
+~~~
+
# Bugs
When reloading, we keep the handler running, meaning that any changes to the handler's address