Skip to content

Commit 0287fdf

Browse files
authored
Merge pull request #671 from cndolo/fix/logging-docs
log correct number of outbound connections
2 parents 9829d18 + 241f580 commit 0287fdf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/logging_monitoring.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ For example, the default metrics listed above would be explicitly configured as
9696
nodes:
9797
- name: tank-0000
9898
metricsExport: true
99-
metrics: blocks=getblockcount() inbounds=getnetworkinfo()["connections_in"] outbounds=getnetworkinfo()["connections_in"] mempool_size=getmempoolinfo()["size"]
99+
metrics: blocks=getblockcount() inbounds=getnetworkinfo()["connections_in"] outbounds=getnetworkinfo()["connections_out"] mempool_size=getmempoolinfo()["size"]
100100
```
101101
102102
The data can be retrieved directly from the Prometheus exporter container in the tank pod via port `9332`, example:
@@ -108,7 +108,7 @@ blocks 704.0
108108
# HELP inbounds getnetworkinfo()["connections_in"]
109109
# TYPE inbounds gauge
110110
inbounds 0.0
111-
# HELP outbounds getnetworkinfo()["connections_in"]
111+
# HELP outbounds getnetworkinfo()["connections_out"]
112112
# TYPE outbounds gauge
113113
outbounds 0.0
114114
# HELP mempool_size getmempoolinfo()["size"]

resources/images/exporter/bitcoin-exporter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def auth_proxy_request(self, method, path, postdata):
2828
# label=method(params)[return object key][...]
2929
METRICS = os.environ.get(
3030
"METRICS",
31-
'blocks=getblockcount() inbounds=getnetworkinfo()["connections_in"] outbounds=getnetworkinfo()["connections_in"] mempool_size=getmempoolinfo()["size"]',
31+
'blocks=getblockcount() inbounds=getnetworkinfo()["connections_in"] outbounds=getnetworkinfo()["connections_out"] mempool_size=getmempoolinfo()["size"]',
3232
)
3333

3434
# Set up bitcoind RPC client

0 commit comments

Comments
 (0)