mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 23:30:41 +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.
25 lines
806 B
JavaScript
25 lines
806 B
JavaScript
"use strict";
|
|
const { libConfig } = require("@clusterio/lib");
|
|
|
|
class InstanceConfigGroup extends libConfig.PluginConfigGroup {}
|
|
InstanceConfigGroup.defaultAccess = ["controller", "slave", "control"];
|
|
InstanceConfigGroup.groupName = "statistics_exporter";
|
|
InstanceConfigGroup.define({
|
|
name: "command_timeout",
|
|
title: "Command Timeout",
|
|
description: "Timeout in seconds of the metrics command before returning results from the previous invocation.",
|
|
type: "number",
|
|
initial_value: 1,
|
|
});
|
|
InstanceConfigGroup.finalize();
|
|
|
|
module.exports = {
|
|
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: "instance",
|
|
InstanceConfigGroup,
|
|
};
|