added report-disk command (#4444)

* added report-disk command

* Update content/enterprise_influxdb/v1.10/tools/influx_inspect.md

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* Update content/enterprise_influxdb/v1.10/tools/influx_inspect.md

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* Update content/enterprise_influxdb/v1.10/tools/influx_inspect.md

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* Update content/enterprise_influxdb/v1.9/tools/influx_inspect.md

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* Update content/enterprise_influxdb/v1.9/tools/influx_inspect.md

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
pull/4451/head
lwandzura 2022-09-09 15:43:58 -05:00 committed by GitHub
parent 572b415590
commit 960849b0de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View File

@ -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 ] <data_dir>
```
#### Options
Optional arguments are in brackets.
##### [ `-detailed` ]
Report disk usage by measurement.
### `reporttsi`
The report does the following:

View File

@ -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 ] <data_dir>
```
#### Options
Optional arguments are in brackets.
##### [ `-detailed` ]
Report disk usage by measurement.
### `reporttsi`
The report does the following: