Install Grafana Agent in static mode on macOS
You can install Grafana Agent in static mode on macOS with Homebrew.
Before you begin
Install Homebrew on your computer.
Note
The default prefix for Homebrew on Intel is/usr/local
. The default prefix for Homebrew on Apple Silicon is/opt/Homebrew
. To verify the default prefix for Homebrew on your computer, open a terminal window and typebrew --prefix
.
Install
To install Grafana Agent on macOS, run the following commands in a terminal window.
Update Homebrew:
shellbrew update
Install Grafana Agent:
shellbrew install grafana-agent
Grafana Agent is installed by default at $(brew --prefix)/Cellar/grafana-agent/VERSION
.
Upgrade
To upgrade Grafana Agent on macOS, run the following commands in a terminal window.
Upgrade Grafana Agent:
shellbrew upgrade grafana-agent
Restart Grafana Agent:
shellbrew services restart grafana-agent
Uninstall
To uninstall Grafana Agent on macOS, run the following command in a terminal window:
brew uninstall grafana-agent
Configure
To create the Agent
config.yml
file, open a terminal and run the following command:shelltouch $(brew --prefix)/etc/grafana-agent/config.yml
Edit
$(brew --prefix)/etc/grafana-agent/config.yml
and add the configuration blocks for your specific telemetry needs. Refer to Configure Grafana Agent for more information.
Note
To send your data to Grafana Cloud, set up Grafana Agent using the Grafana Cloud integration. Refer to how to install an integration and macOS integration.
Next steps
Was this page helpful?
Related resources from Grafana Labs
![Getting started with the Grafana LGTM Stack](/static/assets/featured/getting-started-with-grafana-lgtm-stack-amer_featured.png?w=200 200w, /static/assets/featured/getting-started-with-grafana-lgtm-stack-amer_featured.png?w=400 400w)
![Intro to Kubernetes monitoring in Grafana Cloud](/media/webinar/Screenshot-2024-02-12-at-4.09.30-PM.png?w=200 200w, /media/webinar/Screenshot-2024-02-12-at-4.09.30-PM.png?w=400 400w)
![Building advanced Grafana dashboards](/media/webinar/AMER_buildadv_notxt.png?w=200 200w, /media/webinar/AMER_buildadv_notxt.png?w=400 400w)