@@ -9,6 +9,10 @@ import {
99} from "../getSystemStats.js" ;
1010import { localClient } from "../monitor_components/viemClients.js" ;
1111import { installDir } from "../commandLineOptions.js" ;
12+ import {
13+ getConsensusPeers ,
14+ getExecutionPeers ,
15+ } from "../monitor_components/peerCountGauge.js" ;
1216
1317export let checkIn ;
1418
@@ -91,6 +95,12 @@ export function initializeHttpConnection(httpConfig) {
9195 const memoryUsage = await getMemoryUsage ( ) ;
9296 const diskUsage = await getDiskUsage ( installDir ) ;
9397 const macAddress = await getMacAddress ( ) ;
98+ const executionPeers = await getExecutionPeers (
99+ httpConfig . executionClient
100+ ) ;
101+ const consensusPeers = await getConsensusPeers (
102+ httpConfig . consensusClient
103+ ) ;
94104
95105 const params = new URLSearchParams ( {
96106 id : `${ os . hostname ( ) } -${ macAddress } -${ os . platform ( ) } -${ os . arch ( ) } ` ,
@@ -102,6 +112,8 @@ export function initializeHttpConnection(httpConfig) {
102112 storage_usage : `${ diskUsage } ` ,
103113 block_number : possibleBlockNumber ? possibleBlockNumber . toString ( ) : "" ,
104114 block_hash : possibleBlockHash ? possibleBlockHash : "" ,
115+ execution_peers : executionPeers ,
116+ consensus_peers : consensusPeers ,
105117 } ) ;
106118
107119 const options = {
@@ -118,6 +130,7 @@ export function initializeHttpConnection(httpConfig) {
118130 } ) ;
119131 res . on ( "end" , ( ) => {
120132 debugToFile ( `Checkin response: ${ data } ` , ( ) => { } ) ;
133+ debugToFile ( `Response status: ${ res . statusCode } ` , ( ) => { } ) ;
121134 } ) ;
122135 } ) ;
123136
0 commit comments