Skip to content

Integration

VitalRix and Google Cloud Monitoring

Chart Cloud Run latency and Cloud SQL CPU next to your traces and uptime checks, and alert on them with the same rules.

3 min read10 sectionsUpdated

On this page

What it does

VitalRix pulls Cloud Monitoring time series (timeSeries.list) for up to 10 metric types you choose, every few minutes. A metric type can end with * to match a prefix, such as compute.googleapis.com/instance/cpu/*. It uses a service account JSON key with the Monitoring Viewer role, stored encrypted.

Set it up

  1. Create a service account. Grant it roles/monitoring.viewer on the project and create a JSON key.
  2. Add it in VitalRix. Settings → Integrations → Google Cloud Monitoring: paste the key, optionally a project ID (defaults to the key’s project) and the metric types.
  3. Test the connection. VitalRix makes a read with the key to confirm access.
  4. Build on it. Add the metrics to dashboards and alert rules.

Credentials are stored encrypted and secret fields are never shown again after saving. Use the test button before relying on it: chat tools and webhooks receive a sample message, while paging, SMS and ticketing integrations check the credentials without paging anyone or creating anything.

Tips

  • Add one integration per project.
  • Prefer specific metric types over broad prefixes to keep API usage low.
  • See Google Cloud monitoring for which metrics matter.

Metric types to start with

UseMetric type
Cloud Run latencyrun.googleapis.com/request_latencies
Cloud Run errorsrun.googleapis.com/request_count
VM CPUcompute.googleapis.com/instance/cpu/utilization
Cloud SQL CPUcloudsql.googleapis.com/database/cpu/utilization
Cloud SQL diskcloudsql.googleapis.com/database/disk/utilization

Metric types worth importing

ServiceMetric typeUse
Compute Enginecompute.googleapis.com/instance/cpu/utilizationSaturation alerts and capacity
Cloud SQLcloudsql.googleapis.com/database/cpu/utilization, .../database/postgresql/num_backendsDatabase load and connections
Cloud Runrun.googleapis.com/request_count, .../request_latenciesTraffic, errors (by response code class) and latency
Load Balancingloadbalancing.googleapis.com/https/request_countErrors by response code at the edge
Pub/Subpubsub.googleapis.com/subscription/num_undelivered_messagesBacklog and stuck consumers

Setup tips for Google Cloud

  • Use a dedicated service account with only the Monitoring Viewer role, so the key cannot change anything.
  • Start with a handful of metric types you will alert on; importing everything adds cost and noise.
  • Combine with traces: Cloud Monitoring shows resource metrics; OpenTelemetry traces from your services show which request is slow. See Google Cloud monitoring.

Frequently asked questions

Can VitalRix modify my Google Cloud project?

No. The Monitoring Viewer role only reads monitoring data.

Does it import logs?

No, metrics only.

Check it now, free

  • A Checkly alternative: VitalRix vs Checkly: VitalRix vs Checkly: synthetic API and browser checks compared, monitoring as code versus in-app setup, plus APM, real-user data and on-call.
  • VitalRix and Opsgenie: Connect VitalRix to Opsgenie with the Alert API: create alerts from uptime, APM and SLO rules, acknowledge and close them on recovery, in the US or EU region.
  • VitalRix and PagerDuty: Connect VitalRix to PagerDuty with Events API v2: trigger incidents from uptime, APM and SLO alerts and resolve them on recovery.
  • Multi-cloud monitoring: Monitor workloads across AWS, Azure and Google Cloud in one place: provider metrics, OpenTelemetry for your apps, consistent tags.
  • Monitoring for fintech and payments: Monitoring for fintech and payments: transaction journeys, payment API latency and errors, audit trails, access control and on-premises options.
  • VitalRix and Jira Cloud: Create Jira Cloud issues from VitalRix incidents for follow-up work and action items, with the link to each issue kept on the incident.

Connect Google Cloud Monitoring in a few minutes

Create a free account, add a monitor and connect your tools. No credit card needed.