I have changed the grafana ip in main.go from local host to my grafana ip, yet when I run grafana-reporter -help the changed ip doesn't reflect there.
root@grafana:~/go/bin# ./grafana-reporter --help
Usage of ./grafana-reporter:
-cmd_apiKey string
Grafana api key. Required (and only used) in command line mode.
-cmd_apiVersion string
Api version: [v4, v5]. Required (and only used) in command line mode, example: -apiVersion v5. (default "v5")
-cmd_dashboard string
Dashboard identifier. Required (and only used) in command line mode.
-cmd_enable
Enable command line mode. Generate report from command line without starting webserver (-cmd_enable=1).
-cmd_o string
Output file. Required (and only used) in command line mode. (default "out.pdf")
-cmd_template string
Specify a custom TeX template file. Only used in command line mode, but is optional even there.
-cmd_ts string
Time span. Required (and only used) in command line mode. (default "from=now-3h&to=now")
-grid-layout
Enable grid layout (-grid-layout=1). Panel width and height will be calculated based off Grafana gridPos width and height.
-ip string
Grafana IP and port. (default "localhost:3000")
-port string
Port to serve on. (default ":8686")
-proto string
Grafana Protocol. Change to 'https://' if Grafana is using https. Reporter will still serve http. (default "http://")
-ssl-check
Check the SSL issuer and validity. Set this to false if your Grafana serves https using an unverified, self-signed certificate. (default true)
-templates string
Directory for custom TeX templates. (default "templates/")
Have installed grafana reporter following this post:
https://github.com/IzakMarais/reporter
Attached is the error.
I have changed the grafana ip in main.go from local host to my grafana ip, yet when I run grafana-reporter -help the changed ip doesn't reflect there.
root@grafana:~/go/bin# ./grafana-reporter --help Usage of ./grafana-reporter: -cmd_apiKey string Grafana api key. Required (and only used) in command line mode. -cmd_apiVersion string Api version: [v4, v5]. Required (and only used) in command line mode, example: -apiVersion v5. (default "v5") -cmd_dashboard string Dashboard identifier. Required (and only used) in command line mode. -cmd_enable Enable command line mode. Generate report from command line without starting webserver (-cmd_enable=1). -cmd_o string Output file. Required (and only used) in command line mode. (default "out.pdf") -cmd_template string Specify a custom TeX template file. Only used in command line mode, but is optional even there. -cmd_ts string Time span. Required (and only used) in command line mode. (default "from=now-3h&to=now") -grid-layout Enable grid layout (-grid-layout=1). Panel width and height will be calculated based off Grafana gridPos width and height. -ip string Grafana IP and port. (default "localhost:3000") -port string Port to serve on. (default ":8686") -proto string Grafana Protocol. Change to 'https://' if Grafana is using https. Reporter will still serve http. (default "http://") -ssl-check Check the SSL issuer and validity. Set this to false if your Grafana serves https using an unverified, self-signed certificate. (default true) -templates string Directory for custom TeX templates. (default "templates/")
Any help is appreciated.