diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 11:19:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:53:24 +0000 |
commit | b5f8ee61a7f7e9bd291dd26b0585d03eb686c941 (patch) | |
tree | d4d31289c39fc00da064a825df13a0b98ce95b10 /src/go/collectors/go.d.plugin/modules/zookeeper/charts.go | |
parent | Adding upstream version 1.44.3. (diff) | |
download | netdata-b5f8ee61a7f7e9bd291dd26b0585d03eb686c941.tar.xz netdata-b5f8ee61a7f7e9bd291dd26b0585d03eb686c941.zip |
Adding upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/go/collectors/go.d.plugin/modules/zookeeper/charts.go | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/zookeeper/charts.go b/src/go/collectors/go.d.plugin/modules/zookeeper/charts.go new file mode 100644 index 000000000..2c2cf6a05 --- /dev/null +++ b/src/go/collectors/go.d.plugin/modules/zookeeper/charts.go @@ -0,0 +1,111 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + +package zookeeper + +import "github.com/netdata/netdata/go/go.d.plugin/agent/module" + +type ( + Charts = module.Charts + Dims = module.Dims + Vars = module.Vars +) + +var charts = Charts{ + { + ID: "requests", + Title: "Outstanding Requests", + Units: "requests", + Fam: "requests", + Ctx: "zookeeper.requests", + Dims: Dims{ + {ID: "outstanding_requests", Name: "outstanding"}, + }, + }, + { + ID: "requests_latency", + Title: "Requests Latency", + Units: "ms", + Fam: "requests", + Ctx: "zookeeper.requests_latency", + Dims: Dims{ + {ID: "min_latency", Name: "min", Div: 1000}, + {ID: "avg_latency", Name: "avg", Div: 1000}, + {ID: "max_latency", Name: "max", Div: 1000}, + }, + }, + { + ID: "connections", + Title: "Alive Connections", + Units: "connections", + Fam: "connections", + Ctx: "zookeeper.connections", + Dims: Dims{ + {ID: "num_alive_connections", Name: "alive"}, + }, + }, + { + ID: "packets", + Title: "Packets", + Units: "pps", + Fam: "net", + Ctx: "zookeeper.packets", + Dims: Dims{ + {ID: "packets_received", Name: "received", Algo: module.Incremental}, + {ID: "packets_sent", Name: "sent", Algo: module.Incremental, Mul: -1}, + }, + }, + { + ID: "file_descriptor", + Title: "Open File Descriptors", + Units: "file descriptors", + Fam: "file descriptors", + Ctx: "zookeeper.file_descriptor", + Dims: Dims{ + {ID: "open_file_descriptor_count", Name: "open"}, + }, + Vars: Vars{ + {ID: "max_file_descriptor_count"}, + }, + }, + { + ID: "nodes", + Title: "Number of Nodes", + Units: "nodes", + Fam: "data tree", + Ctx: "zookeeper.nodes", + Dims: Dims{ + {ID: "znode_count", Name: "znode"}, + {ID: "ephemerals_count", Name: "ephemerals"}, + }, + }, + { + ID: "watches", + Title: "Number of Watches", + Units: "watches", + Fam: "data tree", + Ctx: "zookeeper.watches", + Dims: Dims{ + {ID: "watch_count", Name: "watches"}, + }, + }, + { + ID: "approximate_data_size", + Title: "Approximate Data Tree Size", + Units: "KiB", + Fam: "data tree", + Ctx: "zookeeper.approximate_data_size", + Dims: Dims{ + {ID: "approximate_data_size", Name: "size", Div: 1024}, + }, + }, + { + ID: "server_state", + Title: "Server State", + Units: "state", + Fam: "server state", + Ctx: "zookeeper.server_state", + Dims: Dims{ + {ID: "server_state", Name: "state"}, + }, + }, +} |