diff options
author | 2017-10-18 17:20:27 +0100 | |
---|---|---|
committer | 2017-10-18 17:20:27 +0100 | |
commit | 73d702c05201c44b6c8a9367efd1c12caa896bcf (patch) | |
tree | 28e8c34073a75e7596df06e6db181e7085f00b3c /plugin | |
parent | 4d6e9c383342eca3adc540af5fc86170cab88cf5 (diff) | |
download | coredns-73d702c05201c44b6c8a9367efd1c12caa896bcf.tar.gz coredns-73d702c05201c44b6c8a9367efd1c12caa896bcf.tar.zst coredns-73d702c05201c44b6c8a9367efd1c12caa896bcf.zip |
plugin/metrcs: add env variable example (#1151)
We support ENV variables in config files, add an example in the one for
metric, note that `localhost:` is a valid host (in Go), so the
TestReadme will parse this correctly.
Fixes #1150
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/metrics/README.md | 9 |
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 |