mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
refactor: dbQueryTimeHistogram
This commit is contained in:
parent
0f392b2dba
commit
d580cac763
1 changed files with 5 additions and 3 deletions
|
|
@ -68,7 +68,9 @@ export const dbAvailableConnectionsGauge = new Gauge({
|
||||||
help: 'Number of available connections in the database pool',
|
help: 'Number of available connections in the database pool',
|
||||||
});
|
});
|
||||||
|
|
||||||
export const dbQueryTime = new Histogram({
|
export const dbQueryTimeHistogram = new Histogram({
|
||||||
name: 'db_query_time',
|
name: 'db_query_duration_seconds',
|
||||||
help: 'Time taken per kysely query',
|
help: 'Duration of database queries',
|
||||||
|
labelNames: ['method'],
|
||||||
|
buckets: [3, 6, 9],
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue