divinity666 / ruby-grafana-reporter

Reporting Service for Grafana
MIT License
73 stars 5 forks source link

Installation in Raspberry pi #1

Closed karan369 closed 3 years ago

karan369 commented 3 years ago

Hi,

have a nice day !!!

How to install in raspberry pi.. Kindly provide the step by step instructions.

Looking forward to hearing from soon.

divinity666 commented 3 years ago

Hi Karan

which raspberry image are you running?

Best regards

Am 04.02.2021 um 18:30 schrieb Karan notifications@github.com:

 Hi,

have a nice day !!!

How to install in raspberry pi.. Kindly provide the step by step instructions.

Looking forward to hearing from soon.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

karan369 commented 3 years ago

Thanks for your prompt reply. Please find the below details,

"Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux"

armv7l GNU/Linux

Model: Raspberry Pi 3 B+ 1 GB RAM

divinity666 commented 3 years ago

Should be a easy then:

sudo apt-get install ruby gem install ruby-grafana-reporter

Then you should be ready to go.

Am 05.02.2021 um 21:15 schrieb Karan notifications@github.com:

 "Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux"

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

karan369 commented 3 years ago

Thanks.. I will try it.

In which location I need to create following file. grafana-reporter.config

karan369 commented 3 years ago

Thanks.. I will try it.

  1. In which location I need to create following file. grafana-reporter.config

  2. How to find the Data Source Id

    datasources: # mandatory, if the api_key has only viewer rights, optional otherwise
      "<<data source name in grafana>>": <<data source id in grafana>>
  3. How to create Multiple report name http://<<your-server-url>>:8815/render?var-template=myfirsttemplate

divinity666 commented 3 years ago

Hi Karan,

  1. Your choice. I propose to start by using the configuration wizard: ruby-grafana-reporter -w It will help you create a first configuration

  2. This is only necessary, if the access rights to your grafana installation are a) not unrestricted, i.e. you have to login first b) the API key, you generate in grafana does not have ADMIN rights In these case you can configure the datasources manually. The datasource ID can be found when editing your datasource in grafana, e.g. http:/your-grafana-host/datasources/edit/1/. In this case the 1 states the datasource ID. The name should also be taken from the grafana propery name at that place.

  3. I am unsure what you are looking for. You may simply place multiple reports with different names in your templates folder. These can be called with the var-template=<<your-template-name>> parameter. If you are rather looking for a way on how to render multiple reports at once, you'll have to place several calls with the different templates to the reporter service. Please note that each report is generated in a separate Thread, i.e. you don't have to wait for one report to finish before calling the service for another report.

Hope this helps

BTW: Thanks for your questions, I'll try to improve the install documentation for future with your comments :-)

karan369 commented 3 years ago

Thanks for your supports.. I will check and get back to you.