1

PostgreSQL Monitoring with Percona Monitoring and Management: A Redefined Summar...

 1 month ago
source link: https://www.percona.com/blog/postgresql-monitoring-with-percona-monitoring-and-management-a-redefined-summary/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

PostgreSQL Monitoring with Percona Monitoring and Management: A Redefined Summary

March 20, 2024

Daniel Guzmán Burgos

When checking for how good (or bad) a PostgreSQL instance is behaving, one just wants to see everything that matters on a single-ish page. That’s what the new summary dashboard in Percona Monitoring and Management (PMM) is achieving:

Percona Monitoring and Management PostgreSQL

So, what is “everything that matters”? It goes like this:

  1. Is my database ALIVE (in other words: uptime ok?)?
  2. Is my database receiving connections?
  3. Does it have way too many connections?
  4. Does it have way too many ACTIVE connections (elevated concurrency)?
  5. Does it have lingering transactions, A.K.A: idle transactions?
  6. Is it experiencing an increase in SLOW queries?
  7. Do the Queries per Second value make sense? No anomalies or weird spikes?
  8. Tuples seem to be read via indexes or everything is just “Fetch bigger than Return”?
  9. Locks are okay? Locks make sense for the schema?
  10. Autovacuum is running?
  11. Dead Tuples under control, or everything is just a big bloat?
  12. Is my database soon to reach the horrible Transaction Wraparound scenario?
  13. Do the three key server-level variables look sane? (CPU/Disk Read Latency/Disk Write Latency)

That list looks like a lot, right? But all that information is what one can see at a glance with the new Summary dashboard, in a simple not-overwhelming approach.

Sections are logically clustered like, for example, bloating info:

image2-2-1024x141.png

You can now spot tables with autovacuum not running for a long time or tables with an excessive amount of dead tuples compared to the live ones. And to check how close the trx id is to the frozen value.

For the slow log information, two key panels are available: the first one is the dynamic slow query count:

image1-2-1024x512.png

One can choose from a set of thresholds to see how many queries are taking longer in the selected time range.

The second one is the introduction of a Queries panel:

image3-2-1024x179.png

The queries shown are the ones executed during the time range set for the dashboard and ordered by Execution Time (descending) instead of timestamp, so one can easily spot slow queries.

The table can be filtered by different dimensions, such as Service Name:

image3-1-1024x557.png

This new PostgreSQL summary dashboard will be available firstly as an experimental piece of PMM in the release version 2.41.2 and is also available on the PMM Demo: https://pmmdemo.percona.com/graph/d/Q09d8k7Ik/postgresql-instance?orgId=1&refresh=30s

The reason for this is that we want to hear from everyone before making it to GA, so make sure to add comments and suggestions right here in the comment section or in the Percona Forum!

Percona Monitoring and Management is a best-of-breed open source database monitoring solution tool for use with MySQL, PostgreSQL, MongoDB, and the servers on which they run. Monitor, manage, and improve the performance of your databases no matter where they are located or deployed.

Download Percona Monitoring and Management Today

Share This Post!

Subscribe
Connect with
guest
Label
0 Comments

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK