Metrics.js 463 B

123456789101112131415
  1. // @ts-check
  2. import { prom } from '@overleaf/metrics'
  3. export const historyFlushDurationSeconds = new prom.Histogram({
  4. name: 'history_flush_duration_seconds',
  5. help: 'Duration of a history flush in seconds',
  6. buckets: [0.05, 0.1, 0.2, 0.3, 0.5, 1, 2, 5, 10],
  7. })
  8. export const historyFlushQueueSize = new prom.Histogram({
  9. name: 'history_flush_queue_size',
  10. help: 'Size of the queue during history flushes',
  11. buckets: prom.exponentialBuckets(1, 2, 10),
  12. })