Skip to content

Additional metric number of database locks #26317

Closed
@samiura

Description

@samiura

Component(s)

receiver/postgresql

Describe the issue you're reporting

Component(s)

receiver/postgresql

Is your feature request related to a problem? Please describe.

PostgreSQL locks often called “write locks” or “exclusive locks,” restrict users from modifying a row or a PostgreSQL table's contents. Rows that have undergone a DELETE or UPDATE operation will be locked solely until the transaction is finished. Hence, this metric will be useful for users to assess the number of locks.

Describe the solution you'd like.

We can query pg_locks, pg_class to count the number of process PIDs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions