overleaf-cep/services/project-history/app/js/Metrics.js
Eric Mc Sween 30e5c95a27 Merge pull request #22871 from overleaf/em-history-flush-metrics
History flush metrics

GitOrigin-RevId: eb8b357427942e9816ad92ccd46c0dd8a65ab939
2025-01-17 09:05:00 +00:00

15 lines
463 B
JavaScript

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