Running Grafana as a Windows Service
The instructions below will allow you to run Grafana as a service on a Windows system. If you are installing on a system other than your ARDI server, you will need to download nssm.
Open an administrative command prompt by searching for 'cmd' in your start menu, right-clicking “Command Prompt”, and choosing Run As Administrator.
Change to your ARDI installation directory. If you've installed to C:\ARDI, do the following…
cd c:\ardi\drivers\nssm\win64 nssm create "Grafana"
A window will appear.
In path, enter the full path to your Grafana executable, usually in the /bin folder. If you have earlier versions of Grafana, you'll want to point to grafana_sever.exe. If you're using later versions (v13 and above), point to grafana.exe and type server in the 'arguments' section.
Change to the I/O tab and provide a file path for the stdout and stderror paths. They can be the same file. This will be your output log file, where you'll find details of any errors.
Then choose 'Install Service' to create the new Grafana service.
You may need to go to the Services application to start the new Grafana service. Make sure the status changes to 'Running' and remains there - if it stops or pauses, check your log file for more details.