Add prefix to all metrics
This commit is contained in:
parent
0d49dcbe05
commit
9f00a48728
|
@ -9,32 +9,32 @@ const { Gauge, Summary, Counter } = prometheus;
|
||||||
module.exports = {
|
module.exports = {
|
||||||
register,
|
register,
|
||||||
router: new Counter({
|
router: new Counter({
|
||||||
name: "router",
|
name: "social_router",
|
||||||
help: "Routes accessed by users",
|
help: "Routes accessed by users",
|
||||||
labelNames: ["method", "path"],
|
labelNames: ["method", "path"],
|
||||||
}),
|
}),
|
||||||
ssbProgressRate: new Gauge({
|
ssbProgressRate: new Gauge({
|
||||||
name: "ssb_progress_rate",
|
name: "social_ssb_progress_rate",
|
||||||
help: "Tracks ssb syncing progress rate",
|
help: "Tracks ssb syncing progress rate",
|
||||||
}),
|
}),
|
||||||
ssbProgressFeeds: new Gauge({
|
ssbProgressFeeds: new Gauge({
|
||||||
name: "ssb_progress_feeds",
|
name: "social_ssb_progress_feeds",
|
||||||
help: "Tracks ssb syncing progress feeds",
|
help: "Tracks ssb syncing progress feeds",
|
||||||
}),
|
}),
|
||||||
ssbProgressIncompleteFeeds: new Gauge({
|
ssbProgressIncompleteFeeds: new Gauge({
|
||||||
name: "ssb_progress_incomplete_feeds",
|
name: "social_ssb_progress_incomplete_feeds",
|
||||||
help: "Tracks ssb syncing progress incomplete feeds",
|
help: "Tracks ssb syncing progress incomplete feeds",
|
||||||
}),
|
}),
|
||||||
ssbProgressProgress: new Gauge({
|
ssbProgressProgress: new Gauge({
|
||||||
name: "ssb_progress_progress",
|
name: "social_ssb_progress_progress",
|
||||||
help: "Tracks ssb syncing progress progress",
|
help: "Tracks ssb syncing progress progress",
|
||||||
}),
|
}),
|
||||||
ssbProgressTotal: new Gauge({
|
ssbProgressTotal: new Gauge({
|
||||||
name: "ssb_progress_total",
|
name: "social_ssb_progress_total",
|
||||||
help: "Tracks ssb syncing progress total",
|
help: "Tracks ssb syncing progress total",
|
||||||
}),
|
}),
|
||||||
searchResults: new Summary({
|
searchResults: new Summary({
|
||||||
name: "search_results",
|
name: "social_search_results",
|
||||||
help: "Amount of results returned from search",
|
help: "Amount of results returned from search",
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue