Connect Google Cloud Monitoring

Google Cloud Monitoring is a data source for error budgets: Agile Analytics reads your metrics every 30 minutes and measures each SLO against them.

settings-15-add-data-source

1. Create a service account

  1. In the Google Cloud console, open IAM & Admin → Service accounts in the project that holds the metrics and create a service account, for example agile-analytics-slo.
  2. Give it the Monitoring Viewer role on the project. Nothing else is needed; Agile Analytics only reads.
  3. Open the account, go to Keys → Add key → Create new key, choose JSON and download the file.

2. Add the data source

  1. In Agile Analytics, go to Settings → Error Budgets, press Add Data Source and choose Google Cloud Monitoring.
  2. Give it a name, enter the Project ID (Cloud console → the project's dashboard, or Manage resources) and upload the Credentials JSON.
  3. Press Test to check the credentials, then Save.

settings-05-error-budgets

3. Add services and SLOs

Continue on the Error budgets page: Error budgets. The filters of an SLO use Cloud Monitoring's filter syntax; examples are on that page.

Replacing the key

Upload a new JSON on the existing card and press Update backend. All SLOs on this data source use the new key from the next measurement.