Skip to content

Commit ad046f9

Browse files
committed
deploy: check ln nodes if prometheus and grafana are needed
1 parent e57a55c commit ad046f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/warnet/deploy.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ def check_logging_required(directory: Path):
204204
return True
205205
if default_file.get("metricsExport", False):
206206
return True
207+
if default_file.get("lnd", {}).get("metricsExport"):
208+
return True
207209

208210
# check to see if individual nodes have logging enabled
209211
network_file_path = directory / NETWORK_FILE
@@ -216,6 +218,8 @@ def check_logging_required(directory: Path):
216218
return True
217219
if node.get("metricsExport", False):
218220
return True
221+
if node.get("lnd", {}).get("metricsExport"):
222+
return True
219223

220224
return False
221225

0 commit comments

Comments
 (0)