mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 23:14:53 +09:00
Move implementation of master systems into dedicated classes for better organization.
10 lines
281 B
JavaScript
10 lines
281 B
JavaScript
// Shared metrics
|
|
"use strict";
|
|
const libPrometheus = require("@clusterio/lib/prometheus");
|
|
|
|
exports.endpointHitCounter = new libPrometheus.Counter(
|
|
"clusterio_master_http_endpoint_hits_total",
|
|
"How many requests a particular HTTP endpoint has gotten",
|
|
{ labels: ["route"] }
|
|
);
|