mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
14 lines
418 B
TypeScript
14 lines
418 B
TypeScript
import * as lib from "@clusterio/lib";
|
|
import util from "util";
|
|
|
|
export const endpointHitCounter = new lib.Counter(
|
|
"clusterio_controller_http_endpoint_hits_total",
|
|
"How many requests a particular HTTP endpoint has gotten",
|
|
{ labels: ["route"], register: false }
|
|
);
|
|
|
|
endpointHitCounter.labels = util.deprecate(
|
|
endpointHitCounter.labels,
|
|
"incrementing endpointHitCounter is no longer needed and has no effect"
|
|
);
|