mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
The role of the master server as the party controlling every part of the cluster is not well reflected in its name and has caused confusion among users on several occasions. Rename master to controller to better reflects its role.
15 lines
496 B
JavaScript
15 lines
496 B
JavaScript
// Shared metrics
|
|
"use strict";
|
|
const libPrometheus = require("@clusterio/lib/prometheus");
|
|
const util = require("util");
|
|
|
|
exports.endpointHitCounter = new libPrometheus.Counter(
|
|
"clusterio_controller_http_endpoint_hits_total",
|
|
"How many requests a particular HTTP endpoint has gotten",
|
|
{ labels: ["route"], register: false }
|
|
);
|
|
|
|
exports.endpointHitCounter.labels = util.deprecate(
|
|
exports.endpointHitCounter.labels, "incrementing endpointHitCounter is no longer needed and has no effect"
|
|
);
|