chain-gang / PIVT

Kubernetes Native HF Deployment Framwork:
https://chain-gang.github.io/PIVT/
Apache License 2.0
2 stars 0 forks source link

How to use one-click monitoring #10

Open abhisamant7 opened 3 years ago

abhisamant7 commented 3 years ago

Hi @gWOLF3,

I am looking to use one-click monitoring however could you please assist me how to use it as I couldn't get Documentation of this.

Thanks ABhi

gWOLF3 commented 3 years ago

Hey @abhisamant7 - sorry I should have mentioned - in this repo, inside the "etc-charts" subdirectory, you will find additional helm charts for prometheus, argo, and graphana.

If you've already got the fabric network set up and running on minikube, the steps would be as follows:

1) enter external helm chart folder: cd ./etc-charts 2) install prometheus: helm install prometheus prometheus (see helm docs for more specifics on how these commands are working, or try helm --help) 3) install graphana: helm install graphana graphana

you should now have a prometheus metrics server running which is automatically scraping the pre-exposed fabric metrics and any that are exposed by the actual chain code application. to view these:

1) get the services running on your minikube setup: kubectl get services --all-namespaces 2) port forward to the prometheus dashboard on your localhost (prometheus should actually also give you some basic instructions when you run the initial helm install): kubectl port-forward svc/prometheus-server 8081:8081 3) access the prometheus server in your browser: open http://localhost:8081 4) now try searching for various hyperledger metrics that are automatically exposed, there should be a list in the fabric documenation. try searhing for blockchain on the prom server dashboard for example.

let me know if you need more help. sorry these docs are old because I left IBM a while ago and havent been maintaining this or working on it since then.

gWOLF3 commented 3 years ago

FYI - "one-click" - is referring to the fact all you really have to do is run the helm install command for prometheus, and everything else is configured to just work out the box. if you have any issues though, i'll help you get it up - happy that it can be useful.

abhisamant7 commented 3 years ago

Thanks for all information. Sure I will try once I solve some issue with hyperledger network.

abhisamant7 commented 3 years ago

Hey @abhisamant7 - sorry I should have mentioned - in this repo, inside the "etc-charts" subdirectory, you will find additional helm charts for prometheus, argo, and graphana.

If you've already got the fabric network set up and running on minikube, the steps would be as follows:

  1. enter external helm chart folder: cd ./etc-charts
  2. install prometheus: helm install prometheus prometheus (see helm docs for more specifics on how these commands are working, or try helm --help)
  3. install graphana: helm install graphana graphana

you should now have a prometheus metrics server running which is automatically scraping the pre-exposed fabric metrics and any that are exposed by the actual chain code application. to view these:

  1. get the services running on your minikube setup: kubectl get services --all-namespaces
  2. port forward to the prometheus dashboard on your localhost (prometheus should actually also give you some basic instructions when you run the initial helm install): kubectl port-forward svc/prometheus-server 8081:8081
  3. access the prometheus server in your browser: open http://localhost:8081
  4. now try searching for various hyperledger metrics that are automatically exposed, there should be a list in the fabric documenation. try searhing for blockchain on the prom server dashboard for example.

let me know if you need more help. sorry these docs are old because I left IBM a while ago and havent been maintaining this or working on it since then.

Hi @gWOLF3 ,

I had tried to implement as you mention above however I am not getting output as may be I am trying on aws using kops. Could you please help me how to do it as I am close to get it.

Please look my pods on cluster

Screenshot from 2020-09-25 22-41-45

Services

160105415676237479