mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
31 lines
788 B
TypeScript
31 lines
788 B
TypeScript
import * as lib from "@clusterio/lib";
|
|
|
|
declare module "@clusterio/lib" {
|
|
export interface InstanceConfigFields {
|
|
"statistics_exporter.command_timeout": number;
|
|
}
|
|
}
|
|
|
|
export const plugin: lib.PluginDeclaration = {
|
|
name: "statistics_exporter",
|
|
title: "Statistics Exporter",
|
|
description:
|
|
"Provides in-game item/fluid production, builds, kills, and pollution "+
|
|
"statistics to the cluster's Prometheus endpoint.",
|
|
instanceEntrypoint: "dist/node/instance",
|
|
instanceConfigFields: {
|
|
"statistics_exporter.command_timeout": {
|
|
title: "Command Timeout",
|
|
description:
|
|
"Timeout in seconds of the metrics command before returning results from the previous invocation.",
|
|
type: "number",
|
|
initialValue: 1,
|
|
},
|
|
},
|
|
|
|
features: [
|
|
"SavePatching",
|
|
"ScriptCommands",
|
|
],
|
|
};
|