Configure Grafana Alloy to use the Linux server integration
Did you know?
By default, the integration only collects the metrics and logs necessary to populate the Linux server 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 Linux server integration:
In Grafana Cloud, under the Set up Grafana Alloy to use the Linux server integration section, click Copy to clipboard.
On your Linux machine, run the following command to open the Alloy configuration file:
sudo nano /etc/alloy/config.alloy
Scroll to the end of the configuration file and paste the code snippet you copied from Grafana Cloud.
Press
Ctrl+O
to write the changes to the file.Press Enter to save the changes.
Press
Ctrl+X
to exit the editor.
In the next step of your journey, you’ll restart Alloy and test the configuration.
To move forward, please let us know if you were successful.
Troubleshooting options
At this point in your journey, you can explore the following paths:
Configure Grafana Alloy to collect all metrics and logs (advanced)