Can hyperledger-fabric get the peer node running status without entering the docker container? If so, how should I get it?
Can hyperledger-fabric get the peer node running status without entering the docker container?
469 Views Asked by xupter At
2
There are 2 best solutions below
0

The Operations Service might be what you are looking for, the simple check is for "Health" and the more complex check is to look the "metrics".
It is covered in the Fabric docs.
In docker-compose file, for peer service add following env variable. (You may add a different port for different services)
expose the port(You may expose port number as per availability). Export different port for different peer
Once all services up hit the following path for specific service(As per port defined)
You will get a following response if the service is running.
If service is not available, you will get the following response.