Skip to main content

pgX Quick Start

pgX is a powerful PostgreSQL monitoring and optimization Grafana app built into Base14 Scout. It provides deep visibility into every aspect of your PostgreSQL clusters.

What is pgX?​

pgX gives you complete visibility into your PostgreSQL infrastructure:

CapabilityWhat You Get
Health MonitoringReal-time cluster health, connection status, and error rates
Query AnalysisIdentify slow queries, analyze execution patterns, track response times
Table & Index HealthMonitor bloat, cache hit ratios, and vacuum status
Connection ManagementTrack pool utilization, idle connections, and connection patterns
Replication MonitoringMonitor lag, standby health, and WAL generation
Lock AnalysisDetect deadlocks, blocking sessions, and wait events

Prerequisites​

Before configuring pgX, you need to set up PostgreSQL metrics collection:

Instrumentation Required pgX requires metrics from your PostgreSQL

instances. Follow the PostgreSQL Advanced Monitoring guide to set up the pgdashex collector. :::

Configuration​

Step 1: Access pgX Configuration​

  1. Go to Administration → Plugins → pgX
  2. Click the Configuration tab

Step 2: Your PostgreSQL Deployment Type​

For PostgreSQL running on your own infrastructure (VMs, bare metal, Kubernetes).

No additional configuration required beyond the default settings.

Step 3: Select Your Environment​

Use the environment dropdown in pgX to filter metrics by environment. This corresponds to the environment attribute set in your collector configuration.

Step 4: Verify Your Setup​

  1. Click the pgX icon in the Grafana sidebar
  2. Select your environment and cluster from the dropdowns
  3. Verify that metrics are appearing

What to Check:

  • Health Status: Should show "UP" if PostgreSQL is reachable
  • Connection Count: Should reflect current connections
  • Database Size: Should show your database sizes

Available Sections​

pgX provides nine purpose-built sections:

SectionPurposeGuide
OverviewHigh-level cluster health and key metricsOverview
PerformanceQuery and transaction performance analysisPerformance
Tables & IndexesTable health, bloat, and index effectivenessTables & Indexes
QueriesDeep query-level analysis with filteringQueries
ConnectionsConnection pool management and patternsConnections
ReplicationReplica health, lag, and WAL monitoringReplication
ResourcesCloud resource metrics (RDS/Cloud SQL)Resources
Locks & WaitsConcurrency analysis and deadlock detectionLocks & Waits
MaintenanceVacuum, analyze, and maintenance trackingMaintenance
Was this page helpful?