Skip to content

Commit

Permalink
Added: 0.10/variant-monitoring.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
meeDamian committed May 5, 2020
1 parent 349e3d9 commit 7c8ac88
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions 0.10/variant-monitoring.patch
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
diff --git Dockerfile Dockerfile
index 131b6c6..e05e0a6 100644
index 9ae5e1e..c63bd6b 100644
--- Dockerfile
+++ Dockerfile
@@ -29,7 +29,7 @@ ARG TAGS_LND="signrpc chainrpc"
ARG TAGS_STATIC="osusergo netgo static_build"
@@ -24,7 +24,7 @@ ARG PKG=github.com/lightningnetwork/lnd
ARG TAGS_BASE="autopilotrpc signrpc walletrpc chainrpc invoicesrpc watchtowerrpc"

# Added by yours truly (@lncm)
-ARG TAGS_EXTRA=""
+ARG TAGS_EXTRA="monitoring"

# Force Go to use the cgo based DNS resolver. This is required to ensure DNS
# queries required to connect to linked containers succeed
@@ -285,5 +285,11 @@ VOLUME ${DIR}/.lnd/

#
@@ -253,5 +253,11 @@ VOLUME $DIR/.lnd/
# Expose lnd ports (rest, p2p, watchtower, rpc respectively)
EXPOSE 8080 9735 9911 10009

+# Expose monitoring/Prometheus port
+EXPOSE 8989
+
# Specify the start command and entrypoint as the lnd daemon
ENTRYPOINT ["lnd"]
ENTRYPOINT ["/bin/lnd"]
+
+# Okay to hardcode them here, as it's in a variant that specifically wants Prometheus
+CMD ["--prometheus.enable", "--prometheus.listen=0.0.0.0:8989"]

0 comments on commit 7c8ac88

Please sign in to comment.