@tonbo/cli 0.26.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/tonbo.js +14 -4
- package/package.json +1 -1
package/dist/bin/tonbo.js
CHANGED
|
@@ -5690,7 +5690,13 @@ var MACHINE_COLUMNS = {
|
|
|
5690
5690
|
network_rx_bytes: ["NET IN", (value) => bytes(value)],
|
|
5691
5691
|
network_tx_bytes: ["NET OUT", (value) => bytes(value)],
|
|
5692
5692
|
internet_rx_bytes: ["INTERNET IN", (value) => bytes(value)],
|
|
5693
|
-
internet_tx_bytes: ["INTERNET OUT", (value) => bytes(value)]
|
|
5693
|
+
internet_tx_bytes: ["INTERNET OUT", (value) => bytes(value)],
|
|
5694
|
+
volume_throttled_requests: ["VOLUME THROTTLED", String],
|
|
5695
|
+
disk_stalled_seconds: ["DISK STALLED", (value) => `${value} s`],
|
|
5696
|
+
disk_read_bytes: ["DISK READ", (value) => bytes(value)],
|
|
5697
|
+
disk_write_bytes: ["DISK WRITTEN", (value) => bytes(value)],
|
|
5698
|
+
disk_read_ops: ["DISK READ OPS", String],
|
|
5699
|
+
disk_write_ops: ["DISK WRITE OPS", String]
|
|
5694
5700
|
};
|
|
5695
5701
|
function machineMetricsTable(granularity, points) {
|
|
5696
5702
|
const series = Object.keys(MACHINE_COLUMNS).filter(
|
|
@@ -6060,7 +6066,11 @@ var VOLUME_COLUMNS = {
|
|
|
6060
6066
|
write_bytes: ["WRITTEN", (value) => bytes(value)],
|
|
6061
6067
|
read_ops: ["READ OPS", String],
|
|
6062
6068
|
write_ops: ["WRITE OPS", String],
|
|
6063
|
-
trim_ops: ["TRIMS", String]
|
|
6069
|
+
trim_ops: ["TRIMS", String],
|
|
6070
|
+
read_latency_p50_ms: ["READ P50", (value) => `${value} ms`],
|
|
6071
|
+
read_latency_p99_ms: ["READ P99", (value) => `${value} ms`],
|
|
6072
|
+
write_latency_p50_ms: ["WRITE P50", (value) => `${value} ms`],
|
|
6073
|
+
write_latency_p99_ms: ["WRITE P99", (value) => `${value} ms`]
|
|
6064
6074
|
};
|
|
6065
6075
|
async function volumeMetricsCommand(deps, name, options = {}) {
|
|
6066
6076
|
const metrics = await deps.api.getVolumeNameMetrics(
|
|
@@ -7877,7 +7887,7 @@ var COMMAND_HELP = {
|
|
|
7877
7887
|
},
|
|
7878
7888
|
"tonbo machine metrics": {
|
|
7879
7889
|
about: [
|
|
7880
|
-
"Prints the Machine's metrics, one row per UTC hour or day: how long it was awake, its wakes and refused wakes and how long they took (the median and the longest), its average CPU (in cores) and memory while awake, the bytes on its network interface, Tonbo's traffic included,
|
|
7890
|
+
"Prints the Machine's metrics, one row per UTC hour or day: how long it was awake, its wakes and refused wakes and how long they took (the median and the longest), its average CPU (in cores) and memory while awake, the bytes on its network interface, Tonbo's traffic included, the bytes it exchanged with the internet, and its disks: the Volume drive's requests held back at the shape's disk limit, the time its own disks stalled on I/O, and their bytes and operations. Above zero, either of the first two means the Machine is hitting its shape's disk limit. A dash is a step it was never awake in, or for the disks one with no reading; the current step is still growing.",
|
|
7881
7891
|
"Give `--window`, or `--from` and `--to` with `--granularity` (at most 32 days hourly, 92 days daily). `--series` prints only the series it names. It carries no money: `tonbo usage show` says what it cost."
|
|
7882
7892
|
],
|
|
7883
7893
|
examples: [
|
|
@@ -7951,7 +7961,7 @@ var COMMAND_HELP = {
|
|
|
7951
7961
|
},
|
|
7952
7962
|
"tonbo volume metrics": {
|
|
7953
7963
|
about: [
|
|
7954
|
-
"Prints the Volume's metrics, one row per UTC hour or day: the bytes and requests its Machine read, wrote and trimmed, as the Volume served them, and what its files held at the step's last sample, compressed. The I/O updates about every 30 seconds while the Volume is attached; the current step is marked `so far`.",
|
|
7964
|
+
"Prints the Volume's metrics, one row per UTC hour or day: the bytes and requests its Machine read, wrote and trimmed, as the Volume served them, how long the Volume took to answer its reads and writes (median and 99th percentile, from a request's arrival to its reply), and what its files held at the step's last sample, compressed. The I/O updates about every 30 seconds while the Volume is attached; the current step is marked `so far`.",
|
|
7955
7965
|
"Give `--window` (24h hourly; 7d, 30d or 90d daily, 7d also hourly with `--granularity hour`), or `--from` and `--to` with `--granularity` (at most 8 days hourly, 92 days daily). `--series` prints only the series it names. It carries no money: `tonbo usage show` says what the Volume cost."
|
|
7956
7966
|
],
|
|
7957
7967
|
examples: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonbo/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "The Tonbo CLI. Compute, disks, databases and streams for AI agents: your agent picks what it needs, sets it up, and knows what it costs, from the command line.",
|
|
5
5
|
"homepage": "https://tonbo.dev",
|
|
6
6
|
"bugs": {
|