Skip to content

Transaction API / micrometer integration #30791

Open
@pjgg

Description

Description

Hi, I was playing with transaction API quarkus-narayana-jta (that comes with quarkus-hibernate-orm-panache)
and I would like to open a discussion about "default metrics".

Currently, there are several "default metrics" that comes with some extensions, for example related to postgres we could find the following ones:

# TYPE postgresql_reset counter
# HELP postgresql_reset Total number of resets
postgresql_reset_total{clientName="<default>",clientType="sql"} 0.0
# TYPE postgresql_queue_delay_seconds summary
# HELP postgresql_queue_delay_seconds Time spent in the waiting queue before being processed
postgresql_queue_delay_seconds_count{clientName="<default>",clientType="sql"} 1.0
postgresql_queue_delay_seconds_sum{clientName="<default>",clientType="sql"} 0.010889765
# TYPE postgresql_queue_delay_seconds_max gauge
# HELP postgresql_queue_delay_seconds_max Time spent in the waiting queue before being processed
postgresql_queue_delay_seconds_max{clientName="<default>",clientType="sql"} 0.010889765

I think that could be useful to add some metrics related to JTA transactions, for example, the total amount of rollbacks that are done, so the end user could define some alerts based on these metrics.

I am not sure about other transaction metrics...

WDYT?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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