Files
tedbearr 058cd6edfc update
2023-05-12 16:10:32 +07:00

42 lines
1013 B
JavaScript

const client = require("prom-client");
const topuponline_metrics = new client.Histogram({
name: "topuponline",
help: "this is the metric for getting request data based on code status",
labelNames: ["route", "status_code", "issuer_name", "date", "month", "year"],
});
const topuponline_metrics_response_time = new client.Histogram({
name: "topuponline_response_time",
help: "this is the metric for getting request data based on response time",
labelNames: [
"route",
"status_code",
"issuer_name",
"date",
"month",
"year",
"response_time",
],
});
const topuponline_metrics_load_balance = new client.Histogram({
name: "topuponline_load_balance",
help: "this is the metric for getting request data based on response time",
labelNames: [
"route",
"status_code",
"issuer_name",
"date",
"month",
"year",
"trxId",
],
});
module.exports = {
topuponline_metrics,
topuponline_metrics_response_time,
topuponline_metrics_load_balance,
};