mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 07:33:12 +09:00
Add platform speed and weight metrics
clusterio_statistics_exporter_platform_speed clusterio_statistics_exporter_platform_weight
This commit is contained in:
1 parent
9464541d61
commit
8e22de9d2d
3 files changed
+41
-3
No files matched your search
@@ -52,6 +52,8 @@ describe("statistics_exporter plugin", function() {
|
||||
"platform-1": {
|
||||
force: "player",
|
||||
surface: "nauvis",
|
||||
speed: 1,
|
||||
weight: 2,
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -70,6 +72,12 @@ describe("statistics_exporter plugin", function() {
|
||||
assert.equal(instance._instancePlatformMapping.labels(
|
||||
"7357", "platform-1", "player", "nauvis").get(),
|
||||
1);
|
||||
assert.equal(instance._instancePlatformSpeed.labels(
|
||||
"7357", "player", "nauvis").get(),
|
||||
1);
|
||||
assert.equal(instance._instancePlatformWeight.labels(
|
||||
"7357", "player", "nauvis").get(),
|
||||
2);
|
||||
});
|
||||
it("should pass on JSON parse errors", async function() {
|
||||
let string = "An error occured\n";
|
||||
|
||||
Reference in new issue
Block a user