Skip to content

PostgreSQL monitoring for engineering teams

Find what’s blocking your PostgreSQL.

See connection pressure, cache efficiency, and blocking sessions in one place. Investigate contention with masked SQL evidence instead of starting from an unexplained spike.

Start with one database. Automated session termination stays off by default. Pilot scope and costs are agreed before you proceed.

Explore the signals behind an incidentIllustrative product walkthrough · sample data, not a customer result
Lookback window
7 days
Forecast horizon
2 hours
Metrics evaluated
2
Minimum samples
6
Blocked connectionspg-orders-primary · hourly rollup
↗ Predicted

Forecast crosses the seven-day deviation boundary at 13:35 UTC.

NOW 08:0010:0012:0014:00
  • Observed
  • Linear forecast
  • Deviation boundary
Incidents & forecastslast 6h
Critical
Root blocker holding AccessExclusiveLockLOCK-2041 · pg-ledger-primary
Warning
Blocked connections above baselineLOCK-2039 · pg-orders-primary
Predicted
Cache hit ratio trending below 7-day medianPRD-0187 · pg-orders-primary

From account to telemetry

A small, inspectable pilot—not a fleet-wide commitment.

Use a test database first. Confirm permissions, connectivity and the measurements you need before expanding the deployment.

  1. 01 · Register

    Create your organization

    Add one PostgreSQL instance and generate a scoped agent credential. Invite the engineers who will evaluate the results.

    Create an account →
  2. 02 · Connect

    Run the Go agent

    Run it where it can reach PostgreSQL over TLS and the GDE HTTPS endpoint. Review the monitoring role and installation instructions for your host.

  3. 03 · Investigate

    Verify actual measurements

    Check first telemetry, connection pressure and masked blocking evidence. Forecasts need sufficient history; they are not guaranteed incident predictions.

What a pilot should answer

Can the agent connect with the intended monitoring privileges? Do measurements match PostgreSQL? Can your engineers identify a blocker? Agree on the evaluation period, database count, support and any service or agent-hosting costs with us first.

Before you connect

Know what gets read—and what leaves your database.

A monitoring connection is still database access. Review its permissions and the deployment settings with your team.

Read the lock-monitoring guide →
SQL telemetry, not a cloud-provider integration
Connection, cache and lock information comes from PostgreSQL. CloudWatch metrics and managed storage capacity are not collected by this SQL-only path.
Visibility depends on privileges
A dedicated monitoring role needs access to the relevant statistics. Managed PostgreSQL may restrict grants or hide other sessions. Preemption is not required for monitoring.
Masked does not mean anonymous
SQL literals are replaced with placeholders; query structure, object names and operational metadata can remain. Do not put secrets in query comments or identifiers.
Your hosting, explicitly evaluated
For RDS, Aurora, Cloud SQL, Azure and Heroku, validate network access and SQL permissions on your plan. We do not claim identical metrics or privileges on every host.

Outcomes by role

One record of database risk, read three ways.

Each team gets the view it needs from the same underlying data — without exporting raw queries to get there.

Explore the Architecture →

01 · Platform & SRE

Investigate the pressure behind the graph.

Connection and cache metrics provide context; blocking-session evidence helps explain contention. Trend forecasts are an additional signal, not a guarantee.

  • connection monitoring
  • lock incidents
  • masked query evidence

02 · Security review

Inspect the monitoring data path.

SQL literals become positional placeholders; query structure and identifiers can remain. Tenant-scoped access, authenticated agents and selected administrative audit events provide controls to review.

  • tenant isolation
  • RBAC
  • audit logging
  • SQL masking

03 · Engineering leadership

Evaluate with the engineers who own the workload.

Invite your team, control roles and review observations together. Automated preemption remains an operator-controlled, explicit opt-in.

  • team access
  • scoped pilot
  • PostgreSQL

An additional signal, not a guarantee

Trend forecasts with explicit limitations.

GDE projects blocked connections and cache hit ratio up to two hours ahead when enough history is available. A confidence score is a model signal—not a calibrated probability of an outage. Sudden changes can make a projection wrong.

Metric

Current
3
2h forecast
8
7-day median
1
Deviation boundary
5
Blocked connectionspg-orders-primary
PredictedCrosses deviation boundary at 13:35 UTC
NOW MAR 27APR 03APR 10APR 17
  • Observed
  • Linear forecast
  • Comparison boundary

Lock incidents & query evidence

Every blocking pair carries its evidence.

The agent resolves the blocked and root-blocking sessions from PostgreSQL lock state. Both SQL texts are masked before storage, with literals replaced by positional placeholders.

Lock incidentLOCK-2041pg-orders-primary
  1. PID 18402 waits on an AccessExclusiveLock

  2. PID 17291 identified after the five-second threshold

  3. SQL literals replaced before telemetry leaves the data path

  4. Credential-bound lock incident accepted once

Blocking pair · latest incidentpg-orders-primary
blocked SQL · maskedliterals masked as $n
UPDATE orders
SET status = $1
WHERE id = $2

Safe opt-in preemption

Preemption stays off until an operator enables it.

The Go agent can terminate an eligible root blocker only when its runtime policy explicitly opts in. System roles, protected databases, replication, autovacuum, and non-client backends remain excluded.

  1. 01Disabled by default in every agent deployment.
  2. 02A global throttle limits termination attempts.
  3. 03Every decision emits a structured audit event.

Agent runtime policy · sample

production-safe-default
Disabled
enabled
GDE_AUTO_PREEMPTION_ENABLED=false
minimum interval
5 minutes
protected role
payments_owner
protected database
billing

Structured stderr audit

  1. preemption · result=skipped · reason=disabled

Architecture

Built on components your platform team already understands.

A Go agent on your hosts, an idempotent ingestion path, and a Rails control plane backed by PostgreSQL, ClickHouse, and Redis.

Data path

  1. GoAgent

    Reads PostgreSQL connection, cache, and lock state and masks SQL before export.

  2. ReceiverBounded ingestion

    Authenticates the agent, deduplicates event IDs, and applies backpressure.

  3. BatchIdempotent writes

    A retried event is accepted once before native ClickHouse insertion.

  4. ClickHouseTelemetry store

    Raw metrics, hourly rollups, and masked lock incidents.

Control plane

  1. RailsApplication & API

    Dashboard reads, forecasts, authentication, RBAC, alerts, and audited admin mutations.

  2. →
  3. PostgreSQL + RedisControl state & jobs

    Clients, users, API keys, alert thresholds, audit entries, and Sidekiq delivery.

Security & reliability

Controls you can inspect in the product.

These are product capabilities, described as they behave. Ask us to walk through any of them against your own review checklist.

Tenant isolation
Credential-bound client and agent identity scopes telemetry before storage; dashboard reads are always scoped to the authenticated client.
Role-based access control
Admin, engineer, and readonly roles govern organization data; readonly users cannot mutate instance or credential configuration.
Audit logging
API-key generation, API-key revocation, and alert-threshold changes are written asynchronously.
SQL data masking
Blocking-query literals are replaced with positional placeholders such as $1, $2, and $3 before storage.
Secure agent authentication
Agent credentials are checked against their tenant-and-agent scope; receiver identity is bound by the private gateway.
Idempotent ingestion
Retried event IDs are deduplicated within the configured window. This is not an unlimited exactly-once guarantee.
Safe opt-in preemption
Automated session preemption is disabled unless the agent operator enables it explicitly.

Start a pilot

Bring one database and one question.

Tell us what you need to investigate. We will review the host, access requirements and evaluation scope with you.

A useful first question
Which session is blocking requests? Are connections approaching their limit? What changes when cache efficiency falls?
Clear terms before deployment
Agree on duration, database count, support and costs before starting.

Prefer to explore first? Create an account. Agent hosting can incur costs on your provider.

I want to

Do not include passwords, connection strings, API keys or customer data. We use your contact details to respond. Data & privacy.