chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:34:48 +08:00
commit 77bb5bf71f
3762 changed files with 353249 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { Registry, Counter, Histogram } from 'prom-client'
export const registry = new Registry()
export const httpRequestsTotal = new Counter({
name: 'http_requests_total',
help: 'Total number of HTTP requests',
labelNames: ['method', 'status_code', 'path'],
registers: [registry],
})
export const httpRequestDuration = new Histogram({
name: 'http_request_duration_seconds',
help: 'Duration of HTTP requests in seconds',
labelNames: ['method', 'status_code', 'path'],
buckets: [0.05, 0.1, 0.5, 1, 3, 10, 60, 120],
registers: [registry],
})