Add prefix to all metrics

This commit is contained in:
Rogerio Chaves 2020-04-15 20:33:09 +02:00
parent 0d49dcbe05
commit 9f00a48728
No known key found for this signature in database
GPG Key ID: E6AF5440509B1D94
1 changed files with 7 additions and 7 deletions

View File

@ -9,32 +9,32 @@ const { Gauge, Summary, Counter } = prometheus;
module.exports = {
register,
router: new Counter({
name: "router",
name: "social_router",
help: "Routes accessed by users",
labelNames: ["method", "path"],
}),
ssbProgressRate: new Gauge({
name: "ssb_progress_rate",
name: "social_ssb_progress_rate",
help: "Tracks ssb syncing progress rate",
}),
ssbProgressFeeds: new Gauge({
name: "ssb_progress_feeds",
name: "social_ssb_progress_feeds",
help: "Tracks ssb syncing progress feeds",
}),
ssbProgressIncompleteFeeds: new Gauge({
name: "ssb_progress_incomplete_feeds",
name: "social_ssb_progress_incomplete_feeds",
help: "Tracks ssb syncing progress incomplete feeds",
}),
ssbProgressProgress: new Gauge({
name: "ssb_progress_progress",
name: "social_ssb_progress_progress",
help: "Tracks ssb syncing progress progress",
}),
ssbProgressTotal: new Gauge({
name: "ssb_progress_total",
name: "social_ssb_progress_total",
help: "Tracks ssb syncing progress total",
}),
searchResults: new Summary({
name: "search_results",
name: "social_search_results",
help: "Amount of results returned from search",
}),
};