How to setup grafana as a service on macos

  • What Grafana version and what operating system are you using?
    Grafana v11.0.1 on macOS Sonoma 14.6.1
  • What are you trying to achieve?
    To start Grafana server as a service.
  • How are you trying to achieve it?
    Creating a plist file in ~/Library/LaunchAgents
  • What happened?
    Load fails.
  • What did you expect to happen?
    The service to start.
  • Can you copy/paste the configuration(s) that you are having problems with?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.grafana.server</string>
    <key>ProgramArguments</key>
    <array>
        <string>/Users/maxsalibe/grafana-v11.0.1/bin/grafana server</string>
        <string>--homepath</string>
        <string>/Users/maxsalibe/grafana-v11.0.1</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <true/>
    <key>StandardOutPath</key>
    <string>/Users/maxsalibe/grafana-v11.0.1/logs/grafana-stdout.log</string>
    <key>StandardErrorPath</key>
    <string>/Users/maxsalibe/grafana-v11.0.1/logs/grafana-stderr.log</string>
</dict>
</plist>
  • 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?

Did you follow this manual?