Configure Grafana Alloy to use the macOS integration
After you’ve installed Grafana Alloy, the next step is to configure it for the macOS integration. This configuration process requires you to copy a code snippet from Grafana Cloud and add it to the Alloy configuration file.
Did you know? By default, the integration only collects the metrics and logs necessary to populate the macOS dashboards and alerts. Although you have the option to configure Alloy to collect all available metrics and logs, we recommend starting with the default configuration.
To configure Alloy to use the macOS integration:
- In Grafana Cloud, under the Make configuration selections section, click Make optional selections and ensure Simple set-up is checked.
On your macOS machine, run the following command to open the Alloy configuration file:
nano $(brew --prefix)/etc/alloy/config.alloy- Back in Grafana Cloud, scroll down to the Prepare your configuration file section and click Copy to clipboard.
- On your macOS machine, scroll to the end of the configuration file and paste the configuration snippets you copied from Grafana Cloud.
- Press
Ctrl+Oto write the changes to the file, then press Enter to save. PressCtrl+Xto exit the editor.
In the next step of your journey, you’ll restart Alloy and test the connection.
Troubleshooting options
Please tell us what didn't work:
At this point in your journey, you can explore the following paths:
Configure Grafana Alloy to collect all metrics and logs (advanced)
