Note
The setup script in this repo includes reducing metrics usage as documented here: Analyze and reduce metrics usage with Grafana Mimirtool
-
Install Grafana Agent (
https://<stack name>.grafana.net/a/grafana-easystart-app/windows-exporter
) (see tab Configuration Details). -
Skip manually modifying the agent configuration and instead run
grafana-agent-config.ps1
in a PowerShell session with elevated rights (Run as Administrator):.\grafana-agent-config.ps1 -StackName "<Grafana Cloud stack name>" -GrafanaInstanceApiKey "<api-key>" -GrafanaCloudApiKey "<api-key>" -PrometheusId <user-id>
Note:
GrafanaInstanceApiKey
refers to this,GrafanaCloudApiKey
to this, andPrometheusId
to the Prometheus instance ID. -
Verify that the file
C:\Program Files\Grafana Agent\agent-config.yaml
has been properly updated by comparing it toagent-config-example.yaml
-
Done!
When Grafana Agent runs as a service, logs are written to the Windows Event Log. Open the Event Viewer, navigate to Windows > Applications, and filter on event source Grafana Agent
.