Skip to content

enh(postgres): Add lock filtering capability - #6349

Open
Evan-Adam wants to merge 3 commits into
developfrom
CTOR-2319-plugin-database-postgres-mode-locks-internal-postgre-sql-lock-types-virtualxid-transactionid-incorrectly-counted-as-exclusive-locks
Open

enh(postgres): Add lock filtering capability#6349
Evan-Adam wants to merge 3 commits into
developfrom
CTOR-2319-plugin-database-postgres-mode-locks-internal-postgre-sql-lock-types-virtualxid-transactionid-incorrectly-counted-as-exclusive-locks

Conversation

@Evan-Adam

Copy link
Copy Markdown
Contributor

postgresql use lock internally to process SQL query. this monitoring mode was not filtering lock by type.
This PR add a new argument allowing to filter the lock monitored by locktype

Fixes # CTOR-2319

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Functionality enhancement or optimization (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

How this pull request can be tested ?

Create a pg container and execute the plugin on it. both the default database and the postgres internal database should show metrics

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (develop).
  • In case of a new plugin, I have created the new packaging directory accordingly.
  • I have implemented automated tests related to my commits.
    • Data used for automated tests are anonymized.
  • I have reviewed all the help messages in all the .pm files I have modified.
    • All sentences begin with a capital letter.
    • All sentences end with a period.
    • I am able to understand all the help messages, if not, exchange with the PO or TW to rewrite them.
  • After having created the PR, I will make sure that all the tests provided in this PR have run and passed.

@Evan-Adam
Evan-Adam requested a review from a team as a code owner August 11, 2026 09:57
@Evan-Adam
Evan-Adam requested review from omercier and removed request for a team August 11, 2026 09:57
@Evan-Adam
Evan-Adam requested a review from a team as a code owner August 12, 2026 10:08
@Evan-Adam
Evan-Adam requested review from kduret and mushroomempires and removed request for a team August 12, 2026 10:08
@Evan-Adam
Evan-Adam force-pushed the CTOR-2319-plugin-database-postgres-mode-locks-internal-postgre-sql-lock-types-virtualxid-transactionid-incorrectly-counted-as-exclusive-locks branch from bda7c5c to 6f02bc5 Compare August 12, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants