diff --git a/Dockerfile b/Dockerfile index 03b4280..f78c80a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -202,7 +202,7 @@ ENV DNS_PORT=53 # ENV DNS_OVER_GRPC_PORT=553 ENV DNS_STUFF_MDNS=false -ENV METRICS_PORT=9253 +ENV METRICS_LISTEN=:9253 # NOTE: this will not be updated at runtime and will always EXPOSE default values # Either way, EXPOSE does not do anything, except function as a documentation helper @@ -210,7 +210,7 @@ EXPOSE $DNS_PORT/udp EXPOSE $DNS_OVER_TLS_PORT/tcp EXPOSE $DNS_OVER_TLS_LEGO_PORT/tcp #EXPOSE $DNS_OVER_GRPC_PORT/tcp -EXPOSE $METRICS_PORT/tcp +EXPOSE $METRICS_LISTEN/tcp # Lego just needs /certs to work VOLUME /certs diff --git a/README.md b/README.md index cd2d3eb..67a431a 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ You can also tweak the following: * DNS_OVER_GRPC_PORT (default to 553) --> * DNS_STUFF_MDNS: convenient little trick to respond for certain mDNS queries over traditional DNS - * METRICS_PORT for Prometheuse (default to 9253) + * METRICS_LISTEN for Prometheus (default to :9253) Of course using any privileged port for these requires CAP_NET_BIND_SERVICE. diff --git a/context/runtime/boot/entrypoint.sh b/context/runtime/boot/entrypoint.sh index bf2d93b..44a661e 100755 --- a/context/runtime/boot/entrypoint.sh +++ b/context/runtime/boot/entrypoint.sh @@ -30,7 +30,7 @@ DNS_PORT="${DNS_PORT:-}" DNS_STUFF_MDNS="${DNS_STUFF_MDNS:-}" # Metrics settings -METRICS_PORT="${METRICS_PORT:-}" +METRICS_LISTEN="${METRICS_LISTEN:-}" certs::renew(){ local domain="$1" diff --git a/context/runtime/config/snips/monitor.conf b/context/runtime/config/snips/monitor.conf index fa53ed4..672b1f9 100644 --- a/context/runtime/config/snips/monitor.conf +++ b/context/runtime/config/snips/monitor.conf @@ -3,7 +3,7 @@ health localhost:8091 # https://coredns.io/plugins/pprof/ pprof localhost:6053 # https://coredns.io/plugins/metrics/ -prometheus :{$METRICS_PORT} +prometheus {$METRICS_LISTEN} # https://coredns.io/plugins/log/ log # {combined}