2016-10-21 04:01:34 -05:00
|
|
|
+++
|
|
|
|
title = "Installing on Mac"
|
|
|
|
description = "Installing Grafana on Mac"
|
|
|
|
keywords = ["grafana", "configuration", "documentation", "mac", "homebrew", "osx"]
|
|
|
|
type = "docs"
|
|
|
|
[menu.docs]
|
|
|
|
parent = "installation"
|
|
|
|
weight = 4
|
|
|
|
+++
|
|
|
|
|
2015-04-13 01:14:13 -05:00
|
|
|
|
|
|
|
# Installing on Mac
|
|
|
|
|
2016-05-10 09:02:00 -05:00
|
|
|
Installation can be done using [homebrew](http://brew.sh/)
|
|
|
|
|
|
|
|
Install latest stable:
|
|
|
|
|
2017-10-05 12:01:03 -05:00
|
|
|
```bash
|
2016-08-10 01:39:57 -05:00
|
|
|
brew update
|
2016-05-10 09:02:00 -05:00
|
|
|
brew install grafana
|
|
|
|
```
|
|
|
|
|
2016-08-10 01:39:57 -05:00
|
|
|
To start grafana look at the command printed after the homebrew install completes.
|
2016-05-10 09:02:00 -05:00
|
|
|
|
|
|
|
To upgrade use the reinstall command
|
|
|
|
|
2017-10-05 12:01:03 -05:00
|
|
|
```bash
|
2016-08-10 01:39:57 -05:00
|
|
|
brew update
|
|
|
|
brew reinstall grafana
|
2016-05-10 09:02:00 -05:00
|
|
|
```
|
2015-04-13 01:14:13 -05:00
|
|
|
|
2016-08-11 00:36:14 -05:00
|
|
|
-------------
|
2015-04-13 01:14:13 -05:00
|
|
|
|
2016-08-11 00:36:14 -05:00
|
|
|
You can also install the latest unstable grafana from git:
|
|
|
|
|
|
|
|
|
2017-10-05 12:01:03 -05:00
|
|
|
```bash
|
2016-08-11 00:36:14 -05:00
|
|
|
brew install --HEAD grafana/grafana/grafana
|
|
|
|
```
|
|
|
|
|
|
|
|
To upgrade grafana if you've installed from HEAD:
|
|
|
|
|
2017-10-05 12:01:03 -05:00
|
|
|
```bash
|
2016-08-11 00:36:14 -05:00
|
|
|
brew reinstall --HEAD grafana/grafana/grafana
|
|
|
|
```
|
2017-09-22 07:05:10 -05:00
|
|
|
|
|
|
|
### Starting Grafana
|
|
|
|
|
|
|
|
To start Grafana using homebrew services first make sure homebrew/services is installed.
|
|
|
|
|
2017-10-05 12:01:03 -05:00
|
|
|
```bash
|
2017-09-22 07:05:10 -05:00
|
|
|
brew tap homebrew/services
|
|
|
|
```
|
|
|
|
|
|
|
|
Then start Grafana using:
|
|
|
|
|
2017-10-05 12:01:03 -05:00
|
|
|
```bash
|
2017-09-22 07:05:10 -05:00
|
|
|
brew services start grafana
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Configuration
|
|
|
|
|
|
|
|
The Configuration file should be located at `/usr/local/etc/grafana/grafana.ini`.
|
|
|
|
|
|
|
|
### Logs
|
|
|
|
|
|
|
|
The log file should be located at `/usr/local/var/log/grafana/grafana.log`.
|
|
|
|
|
|
|
|
### Plugins
|
|
|
|
|
|
|
|
If you want to manually install a plugin place it here: `/usr/local/var/lib/grafana/plugins`.
|
|
|
|
|
|
|
|
### Database
|
|
|
|
|
|
|
|
The default sqlite database is located at `/usr/local/var/lib/grafana`
|
|
|
|
|