Files
Hornwitser 8c4d2db192 Move TypeScript Node.js build to dist/node
Use a separate folder for the TypeScript build for Node.js in the dist
folder.  This makes each type of build consistently have its own output
folder instead of being interleaved with the Node.js build.
2024-02-08 03:20:26 +01:00

26 lines
732 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,
},
},
};