Skip to main content

Overview

See our Prometheus integration documentation for how to set Prometheus up to automatically discover and scrape metrics for your database branches. If you’re using Datadog, see our Datadog tutorial for how to setup your Datadog agent to scrape metrics for your branch.

Metrics

PlanetScale Postgres emits the following metrics to be scraped.

Database Metrics

Edge Metrics

PgBouncer Metrics

Infrastructure Metrics

Tag Glossary

  • cluster: The PlanetScale cluster identifier
  • planetscale_access: The access path on bytes sent/received metrics (public for traffic over the public internet, or private for traffic over AWS PrivateLink or GCP Private Service Connect)
  • planetscale_database_branch_id: The unique identifier for the database branch
  • planetscale_pod: The Kubernetes pod name
  • planetscale_container: The container name (postgres, pgbouncer, walg-daemon)
  • planetscale_role: The database role (primary, replica)
  • planetscale_cell: The PlanetScale cell identifier
  • planetscale_component: The PlanetScale component identifier
  • planetscale_connection_state: The state of database connections
  • planetscale_lock_mode: The PostgreSQL lock mode
  • planetscale_database_name: The PostgreSQL database name
  • planetscale_port: The connection port number
  • planetscale_region: The geographic region
  • planetscale_pgbouncer_pool: The PgBouncer connection pool identifier
  • planetscale_connector_id: The edge connector identifier
  • planetscale_restart_reason: The reason for container restart

Need help?

Get help from the PlanetScale Support team, or join our Discord community to see how others are using PlanetScale.