How to get Grafana server running without executing Grafana-server on macOS manually

  • What Grafana version and what operating system are you using?
    Grafana v9.2.1 | macOS Sonoma 14.2.1

  • What are you trying to achieve?
    To have Grafana server running every time with no need to run Grafana/bin/grafana-server

  • How are you trying to achieve it?

  • What happened?

  • What did you expect to happen?

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

Create a service that runs grafana.

In windows we use nssm install

Not sure if there is an equivalent in mac

1 Like

@maximilianosalibe

Alternative is running it as docker container. The container service can start automatically, dependent on the configuration, the container can auto start then as well.

On MacOS you can use Docker Desktop, but that requires a license when used in a company.
Alternatives are Podman Desktop and Rancher Desktop. Both provide the same functionality.

2 Likes

Podman yes!

1 Like

Perhaps I could implement some of those solutions soon. But, for now, could you just tell me how can I stop grafana/bin/grafana-server once I’ve finished working? Thanks!

How did you start it and why do you want to stop it

I started on the terminal and I want to stop it because I need to close the terminal.