Open
Description
opened on Feb 1, 2023
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