Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Stackland
  • What's new
  • Installation
    • All tutorials
    • Installing Stackland on Yandex BareMetal
    • Setting up external access to a pod in a cluster
    • All guides
    • Projects
    • Resource model
      • Overview
      • Certificate Manager
      • DNS
      • IAM
      • Logging Stack
      • Managed Service for Apache Kafka®
      • Managed Service for PostgreSQL
      • Managed Service for ClickHouse®
      • DataLens
      • Monitoring
      • Object Storage
      • Disk subsystem
      • NVIDIA® GPU support
      • Policy Manager
      • Secrets Store
      • SpeechSense
  • Access management
  • Pricing policy
  • Diagnostics and troubleshooting

In this article:

  • Configuration
  • Performance diagnostics
  • Collected metrics
  • Enabling Performance Diagnostics
  1. Concepts
  2. Components
  3. Managed Service for PostgreSQL

Managed PostgreSQL

Written by
Yandex Cloud
Updated at April 8, 2026
  • Configuration
  • Performance diagnostics
    • Collected metrics
    • Enabling Performance Diagnostics

Managed PostgreSQL is a managed solution for operating PostgreSQL, an open-source object-relational DBMS. It simplifies database cluster deployment and upgrades, ensures fault tolerance, and provides tools for backup and monitoring.

With Managed PostgreSQL, you can:

  • Create and recover clusters using the PostgresqlCluster custom resource.
  • Create one-time backups using the PostgresqlBackup custom resource.

You can manage PostgreSQL integration through the ManagedPostgresConfig custom resource settings.

ConfigurationConfiguration

Here is an example:

apiVersion: stackland.yandex.cloud/v1alpha1
kind: ManagedPostgresConfig
metadata:
  name: main # This is a required field you must set to `main`
spec:
  enabled: true
  settings:
    monitoring:
      enabled: true
    stackland-postgres:
      replicas: 1
      resources:
        requests:
          cpu: "200m"
          memory: "256Mi"
        limits:
          cpu: "1000m"
          memory: "1Gi"
    stackland-wal-g:
      resources:
        requests:
          cpu: "200m"
          memory: "256Mi"
        limits:
          cpu: "1000m"
          memory: "1Gi"

Where:

  • enabled: Enables/disables the component.
  • settings.stackland-postgres: Operator pod settings:
    • replicas: Number of operator replicas.
    • resources: Resource requests and limits for the operator pod.
  • settings.stackland-wal-g: WAL-G sidecar resources (backups/restores): resources with requests and limits.
  • settings.monitoring: Monitoring, enabled: true/false. It is enabled by default if you skip this section.
  • settings.performance-diagnostics: Performance diagnostics, enabled: true/false.
  • settings.defaultPostgresResources: Default resources (requests/limits) for PostgreSQL instances in clusters.
  • settings.defaultPoolerResources: Default resources for Pooler (PgBouncer) instances.

All settings sections are optional; you can specify only those you need.

Performance diagnosticsPerformance diagnostics

Performance diagnostics is a feature for collecting and visualizing performance statistics of PostgreSQL clusters. It enables analyzing SQL query performance and session activity to identify bottlenecks and streamline database operations.

The performance diagnostics system features the following components:

  • perfdiag sidecar: Sidecar container that collects statistics from PostgreSQL.
  • ClickHouse®: Long-term storage for performance metrics.
  • Grafana Dashboard: Preconfigured PostgreSQL Cluster Performance Diagnostics dashboard for visualizing collected data.

Collected metricsCollected metrics

Performance diagnostics collects the following types of metrics:

Session activity statistics:

  • Current session state (state, query, pid, user, and application_name).
  • Wait events (wait_event and wait_event_type).
  • Blocking processes (blocking_pids).

Query execution statistics:

  • Execution time (average and total).
  • CPU usage (user time and system time).
  • I/O operations (file system reads and writes, shared, local, and temp block activity).
  • Number of rows processed.
  • Amount of WAL records generated.
  • Number of query calls.

Enabling Performance DiagnosticsEnabling Performance Diagnostics

To use performance diagnostics, you need to:

  1. Enable this feature at the platform level in the ManagedPostgresConfig configuration:

    spec:
      settings:
        performance-diagnostics:
          enabled: true
    
  2. Enable statistics collection for a specific cluster in PostgresqlCluster:

    spec:
      enablePerfDiagStatsCollect: true
    

For more information, see PostgreSQL performance diagnostics.

Was the article helpful?

Previous
Managed Service for Apache Kafka®
Next
Managed Service for ClickHouse®
© 2026 Direct Cursus Technology L.L.C.