From 960849b0de3763811e52ccad6b30c16920f1e68c Mon Sep 17 00:00:00 2001 From: lwandzura <51929958+lwandzura@users.noreply.github.com> Date: Fri, 9 Sep 2022 15:43:58 -0500 Subject: [PATCH] added report-disk command (#4444) * added report-disk command * Update content/enterprise_influxdb/v1.10/tools/influx_inspect.md Co-authored-by: Scott Anderson * Update content/enterprise_influxdb/v1.10/tools/influx_inspect.md Co-authored-by: Scott Anderson * Update content/enterprise_influxdb/v1.10/tools/influx_inspect.md Co-authored-by: Scott Anderson * Update content/enterprise_influxdb/v1.9/tools/influx_inspect.md Co-authored-by: Scott Anderson * Update content/enterprise_influxdb/v1.9/tools/influx_inspect.md Co-authored-by: Scott Anderson Co-authored-by: Scott Anderson --- .../v1.10/tools/influx_inspect.md | 21 +++++++++++++++++++ .../v1.9/tools/influx_inspect.md | 21 +++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/content/enterprise_influxdb/v1.10/tools/influx_inspect.md b/content/enterprise_influxdb/v1.10/tools/influx_inspect.md index 8137d1786..3441a3716 100644 --- a/content/enterprise_influxdb/v1.10/tools/influx_inspect.md +++ b/content/enterprise_influxdb/v1.10/tools/influx_inspect.md @@ -36,6 +36,7 @@ The `influx_inspect` commands are summarized here, with links to detailed inform * [`dumptsmwal`](#dumptsmwal): Dump all data from a WAL file. * [`export`](#export): Exports raw data from a shard in InfluxDB line protocol format. * [`report`](#report): Displays a shard level report. +* [`report-disk`](#report-disk): Reports disk usage by shard and measurement. * [`reporttsi`](#reporttsi): Reports on cardinality for measurements and shards. * [`verify`](#verify): Verifies the integrity of TSM files. * [`verify-seriesfile`](#verify-seriesfile): Verifies the integrity of series files. @@ -455,6 +456,26 @@ The flag to report exact cardinality counts instead of estimates. Default value is `false`. Note: This can use a lot of memory. +### `report-disk` + +Use the `report-disk` command to review TSM file disk usage per shard and measurement in a specified directory. Useful for capacity planning and identifying which measurement or shard is using the most disk space. The default directory path `~/.influxdb/data/`. + +Calculates the total disk size by database (`db`), retention policy (`rp`), shard (`shard`), tsm file (`tsm_file`), and measurement (`measurement`). + +#### Syntax + +``` +influx_inspect report-disk [ options ] +``` + +#### Options + +Optional arguments are in brackets. + +##### [ `-detailed` ] + +Report disk usage by measurement. + ### `reporttsi` The report does the following: diff --git a/content/enterprise_influxdb/v1.9/tools/influx_inspect.md b/content/enterprise_influxdb/v1.9/tools/influx_inspect.md index f209020f6..7c4fe30d4 100644 --- a/content/enterprise_influxdb/v1.9/tools/influx_inspect.md +++ b/content/enterprise_influxdb/v1.9/tools/influx_inspect.md @@ -36,6 +36,7 @@ The `influx_inspect` commands are summarized here, with links to detailed inform * [`dumptsmwal`](#dumptsmwal): Dump all data from a WAL file. * [`export`](#export): Exports raw data from a shard in InfluxDB line protocol format. * [`report`](#report): Displays a shard level report. +* [`report-disk`](#report-disk): Reports disk usage by shards and measurements. * [`reporttsi`](#reporttsi): Reports on cardinality for measurements and shards. * [`verify`](#verify): Verifies the integrity of TSM files. * [`verify-seriesfile`](#verify-seriesfile): Verifies the integrity of series files. @@ -455,6 +456,26 @@ The flag to report exact cardinality counts instead of estimates. Default value is `false`. Note: This can use a lot of memory. +### `report-disk` + +Use the `report-disk` command to review TSM file disk usage per shard and measurement in a specified directory. Useful for capacity planning and identifying which measurement or shard is using the most disk space. The default directory path `~/.influxdb/data/`. + +Calculates the total disk size by database (`db`), retention policy (`rp`), shard (`shard`), tsm file (`tsm_file`), and measurement (`measurement`). + +#### Syntax + +``` +influx_inspect report-disk [ options ] +``` + +#### Options + +Optional arguments are in brackets. + +##### [ `-detailed` ] + +Report disk usage by measurement. + ### `reporttsi` The report does the following: