aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/trpc/stats.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/trpc/stats.ts b/packages/trpc/stats.ts
index 465bddcd..1e573f86 100644
--- a/packages/trpc/stats.ts
+++ b/packages/trpc/stats.ts
@@ -17,7 +17,7 @@ import {
// Queue metrics
const queuePendingJobsGauge = new Gauge({
- name: "queue_jobs",
+ name: "karakeep_queue_jobs",
help: "Number of jobs in each background queue",
labelNames: ["queue_name", "status"],
async collect() {
@@ -58,7 +58,7 @@ const queuePendingJobsGauge = new Gauge({
// User metrics
const totalUsersGauge = new Gauge({
- name: "total_users",
+ name: "karakeep_total_users",
help: "Total number of users in the system",
async collect() {
try {
@@ -73,7 +73,7 @@ const totalUsersGauge = new Gauge({
// Asset metrics
const totalAssetSizeGauge = new Gauge({
- name: "total_asset_size_bytes",
+ name: "karakeep_total_asset_size_bytes",
help: "Total size of all assets in bytes",
async collect() {
try {
@@ -90,7 +90,7 @@ const totalAssetSizeGauge = new Gauge({
// Bookmark metrics
const totalBookmarksGauge = new Gauge({
- name: "total_bookmarks",
+ name: "karakeep_total_bookmarks",
help: "Total number of bookmarks in the system",
async collect() {
try {
@@ -105,19 +105,19 @@ const totalBookmarksGauge = new Gauge({
// Api metrics
const apiRequestsTotalCounter = new Counter({
- name: "trpc_requests_total",
+ name: "karakeep_trpc_requests_total",
help: "Total number of API requests",
labelNames: ["type", "path", "is_error"],
});
const apiErrorsTotalCounter = new Counter({
- name: "trpc_errors_total",
+ name: "karakeep_trpc_errors_total",
help: "Total number of API requests",
labelNames: ["type", "path", "code"],
});
const apiRequestDurationSummary = new Summary({
- name: "trpc_request_duration_seconds",
+ name: "karakeep_trpc_request_duration_seconds",
help: "Duration of tRPC requests in seconds",
labelNames: ["type", "path"],
});