Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use one-click monitoring #10

Open
abhisamant7 opened this issue Aug 29, 2020 · 4 comments
Open

How to use one-click monitoring #10

abhisamant7 opened this issue Aug 29, 2020 · 4 comments

Comments

@abhisamant7
Copy link

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
Copy link
Member

gWOLF3 commented Aug 30, 2020

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
Copy link
Member

gWOLF3 commented Aug 30, 2020

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
Copy link
Author

abhisamant7 commented Aug 31, 2020

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

@abhisamant7
Copy link
Author

abhisamant7 commented Sep 25, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants