Azure Database for PostgreSQL Flexible Server - Database Is Alive metric stuck at 0 and Query Performance Insight stopped working after restart

Victor Danner 0 Reputation points
2026-08-04T00:51:14.3433333+00:00

Hi everyone,

I'm experiencing an issue with an **Azure Database for PostgreSQL - Flexible Server (**PostgreSQL version: 16.14) after performing a restart (I also tried a Stop/Start, but the issue persists).

The PostgreSQL server appears to be working normally:

  • The application can connect without any issues.
  • New connections are being accepted.
  • Queries execute successfully.
  • The database is fully operational from the application's perspective.

However, I noticed that the "Database Is Alive" metric in Azure Monitor has been stuck at 0 since the restart.

At the same time, I also lost access to performance-related features in the Azure Portal:

  • Query Performance Insight no longer displays any data.
  • The "Top Queries" / most expensive queries view is also empty.

Because these features stopped working at the same time that the Database Is Alive metric became 0, I suspect they are related and that the monitoring/telemetry pipeline may not be functioning correctly.

So far, I have:

  • Restarted the server.
  • Performed a Stop/Start cycle.
  • Confirmed that the database is healthy and serving traffic.
  • Verified that the application continues to work normally.

Has anyone experienced this issue before?

Is there any known way to restart or recover the Azure monitoring components for a Flexible Server, or is this likely a platform-side issue that requires Microsoft intervention?

Any suggestions or ideas would be greatly appreciated.

Thank you!

Azure Database for PostgreSQL

1 answer

Sort by: Most helpful
  1. Victor Danner 0 Reputation points
    2026-08-06T12:50:52.4733333+00:00

    Hi @Ganesh Chelluri ,

    Thank you for your suggestions.

    I verified all of the items you mentioned:

    • shared_preload_libraries includes:
      • pg_qs
        • pgms_wait_sampling
          • pg_stat_statements
          • I already performed both a server restart and a full Stop/Start cycle.
          • The azure_sys database exists and is accessible.

    During the investigation I also found the following:

    • query_store.query_texts continues to contain query texts.
    • query_store.query_plans contains 0 rows.
    • query_store.qs_view stopped receiving new data on 2026-05-14, immediately after the restart.
    • query_stats.pgms_stats_query_counts also stopped updating on the same date.
    • Database Is Alive has remained at 0 ever since.
    • CPU, Memory, Connections, Storage and Throughput metrics continue to work normally.
    • Query Performance Insight and Top Queries are no longer available in the Azure Portal.

    These findings suggest that the PostgreSQL engine is healthy, but the internal telemetry components responsible for Query Store and monitoring stopped collecting data after the restart.

    Since both Restart and Stop/Start did not restore telemetry, do you believe this points to an internal platform issue rather than a configuration issue?

    Thank you for your help.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.