Skip to content

[receiver/postgresql] Additional metric: deadlocks. #25688

Closed
@bjandras

Description

@bjandras

Component(s)

receiver/postgresql

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

When monitoring a PostgreSQL database, a useful metric is the number of deadlocks detected in each database.

Describe the solution you'd like

The postgresql receiver already queries the pg_stat_database table for information on transactions commited and rolled-back. I would add deadlocks as additional database stat in getDatabaseStats and emit it as postgresql.deadlocks metric.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions