Cloud Monitoring is connected through Google Cloud. Connect Google Cloud once, then
enable the projects you want Nexus to read. There’s nothing to set up for Cloud Monitoring on its own.
What we support
Nexus queries Cloud Monitoring with PromQL, through Google Cloud’s Prometheus-compatible API. It uses this to:- Graph a metric over the incident window: CPU utilization on a Cloud SQL instance, memory on a container, the backlog on a Pub/Sub subscription, scoped to a project.
- Narrow by resource: filter on resource labels so a query reaches one GKE namespace, one database, or one backend service rather than everything in the project.
- Aggregate and rank: sum across the containers in a namespace, average across instances, or pull the top few pods by memory to find the one that’s misbehaving.
Did the database’s CPU spike when the checkout errors started?
Which pods in the payments namespace were using the most memory during the outage?
Was the Pub/Sub backlog growing while messages went unprocessed?
Checking a metric before trusting it
A metric that isn’t emitting tells you nothing, and a filter on a label that doesn’t exist returns an empty graph that looks like a problem when it isn’t. Before building a query, Nexus checks whether a metric is actually producing data in the incident window and learns which labels it carries, so it doesn’t graph a silent metric or filter on a label that was never there, and it knows which resource labels are available to narrow on.Knowing what’s in each project
A project can run many kinds of workload, and a PromQL query only works if it names the right metric and labels. Cloud Monitoring’s naming differs from plain Prometheus, and resource labels vary by service. Nexus learns what each enabled project actually runs (its GKE clusters, Cloud SQL instances, load balancers, and the metric types they emit) so it queries the resources that matter instead of guessing. How that works is covered in How telemetry works.Connecting Cloud Monitoring
Cloud Monitoring is connected through Google Cloud. Connect Google Cloud with a service account that can read metrics, then enable the projects your team runs production workloads in. Each project is disabled by default, so you opt in deliberately; enabling one turns on its Cloud Monitoring access.Best practice
- Enable the projects your responders actually investigate, rather than every project the service account can reach.
- Grant the service account read-only monitoring access. Nexus only ever reads from Cloud Monitoring.
Related
Google Cloud
The provider Cloud Monitoring is connected through.
How telemetry works
How Nexus queries your metrics.