docs/sources/setup-grafana/installation/mac/index.md
This page explains how to install Grafana on macOS.
The following video demonstrates how to install Grafana on macOS as outlined in this document:
{{< youtube id="1zdm8SxOLYQ" >}}
To install Grafana on macOS using Homebrew, complete the following steps:
On the Homebrew homepage, search for Grafana.
The last stable and released version is listed.
Open a terminal and run the following commands:
brew update
brew install grafana
The brew page downloads and untars the files into:
/usr/local/Cellar/grafana/[version] (Intel Silicon)/opt/homebrew/Cellar/grafana/[version] (Apple Silicon)To start Grafana, run the following command:
brew services start grafana
To use the Grafana CLI with Homebrew, you need to append the home path, the config file path and - based on the command - some other configurations to the cli command:
For admin commands, you need to append the --configOverrides cfg:default.paths.data=/opt/homebrew/var/lib/grafana configuration. Example:
/opt/homebrew/opt/grafana/bin/grafana cli --config /opt/homebrew/etc/grafana/grafana.ini --homepath /opt/homebrew/opt/grafana/share/grafana --configOverrides cfg:default.paths.data=/opt/homebrew/var/lib/grafana admin reset-admin-password <new password>
For plugins commands, you need to append the --pluginsDir /opt/homebrew/var/lib/grafana/plugins configuration. Example:
/opt/homebrew/opt/grafana/bin/grafana cli --config /opt/homebrew/etc/grafana/grafana.ini --homepath /opt/homebrew/opt/grafana/share/grafana --pluginsDir "/opt/homebrew/var/lib/grafana/plugins" plugins install <plugin-id>
To install Grafana on macOS using the standalone binaries, complete the following steps:
Navigate to the Grafana download page.
Select the Grafana version you want to install.
Select an Edition.
Click Mac.
Copy and paste the code from the download page into your command line and run.
Untar the gz file and copy the files to the location of your preference.
To start Grafana service, go to the directory and run the command:
./bin/grafana server
Alternatively, watch the Grafana for Beginners video below:
{{< youtube id="T51Qa7eE3W8" >}}