Hosting Grafana to a Public IP in Windows

Hi,

I have been trying to Host Grafana in a Public IP, however I’m not able to do the same.

I tried changing the domain name( within the custom.ini file, but this did not work too)

Is there any other step that I missed out ?

Any help on this would be highly appreciated.

Below were the custom.ini file’s settings that we received

[server]

Protocol (http, https, socket)

protocol = http

The ip address to bind to, empty will bind to all interfaces

;http_addr =

The http port to use

http_port = 80

The public facing domain name used to access grafana from a browser

domain = sc811-dashboards.fingent.net

Redirect to correct domain if host header does not match domain

Prevents DNS rebinding attacks

;enforce_domain = false

The full public facing url you use in browser, used for redirects and emails

If you use reverse proxy and sub path specify full url (with sub path)

root_url = http://sc811-dashboards.fingent.net

Log web requests

;router_logging = false

the path relative working path

static_root_path = public

enable gzip

;enable_gzip = false

https certs & key file

;cert_file =
;cert_key =

Unix socket path

;socket =

Thank you!!

Hi,

I have been trying to Host Grafana in a Public IP, however I’m not able to
do the same.

When you say “not able to do the same”, what actual problem do you encounter?

I tried changing the domain name( within the custom.ini file, but this did
not work too)

You say “did not work”. What does not work? What error messages do you get?
Where do you get them?

Is there any other step that I missed out ?

I assume you did create a DNS entry for sc811-dashboards.fingent.net pointing
at the IP address of the Grafana server?

Any help on this would be highly appreciated.

Tell us more about what is not working and how you know it isn’t working -
what fails to work as expected, what error messages do you get, and how are
you testing it?

Regards,

Antony.

Hi Antony,

Thank you for your quick response, sorry I missed out your reply.

When you say “not able to do the same”, what actual problem do you encounter?

When trying to run the Grafana server from command prompt, the window kept getting closed.

You say “did not work”. What does not work? What error messages do you get?
Where do you get them?

We did not get any error messages, as mentioned above the grafana server window kept closing for some reason.

I assume you did create a DNS entry for sc811-dashboards.fingent.net pointing
at the IP address of the Grafana server?

Yes, we did.

We are new in Grafana development. Our aim is to make the Grafana server accessible on a public domain. Could you please advise on the steps that we need to follow for this?

Currently, we are running Grafana by opening the grafana-server.exe file.

However, when we close the server command window, the dashboard stops working.

Can we overcome this by running Grafana server in background?

Thank you.

Currently, we are running Grafana by opening the grafana-server.exe
file.

Sorry, but I have no experience of running Grafana in a Windows environment.

However, when we close the server command window, the dashboard stops
working.

Is that different from any other command? I think I would expect that if you
run a command in a window and then close the window, the command stops
running…

Can we overcome this by running Grafana server in background?

Yes, the Grafana process should be running in the background. I’m sure
someone who knows about using Windows can tell you how to do this.

Regards,

Antony.

Hi Antony,

Thank you for your response.

We are a bit confused whether we followed the right steps.

Would you be able to share your knowledge on making the Grafana server available on a public domain ?

Thank you very much !!

The docs tell you how to run grafana as a service under windows.

Having to use NSSM is a poor practice, especially for those that are in an environment where this can’t be installed. Is there any documentation as to how to get the binary to work without having to download and install a secondary service manager?