updated influxd report-tsi to address PR feedback

pull/381/head
Scott Anderson 2019-08-08 09:53:33 -06:00
parent 4ba04ad1b7
commit 063eaa057c
1 changed files with 16 additions and 17 deletions

View File

@ -11,22 +11,21 @@ weight: 301
---
The `influxd inspect report-tsi` command analyzes Time Series Index (TSI) files
in a storage directory and reports the cardinality of data stored in the files.
The report is divided into organization and bucket cardinalities.
in a storage directory and reports the cardinality of data stored in the files
by organization and bucket.
## Output details
`influxd inspect report-tsi` outputs the following:
- All organizations and buckets in the index.
- The series cardinality within each organization and bucket.
- The time taken to read the index.
- Time to read the index.
When the `--measurements` flag is included, series cardinality is segmented in
the following ways:
When the `--measurements` flag is included, series cardinality is grouped by:
- Series cardinality for each organization.
- Series cardinality for each bucket.
- Series cardinality for each measurement.
- organization
- bucket
- measurement
## Usage
```sh
@ -34,12 +33,12 @@ influxd inspect report-tsi [flags]
```
## Flags
| Flag | Description | Input Type |
|:---- |:----------- |:----------:|
| `--bucket-id` | Process only data belonging to bucket ID. _Requires `org-id` flag to be set._ | string |
| `-h`, `--help` | Help for `report-tsi`. | |
| `-m`, `--measurements` | Segment cardinality by measurements. | |
| `-o`, `--org-id` | Process only data belonging to organization ID. | string |
| `--path` | Path to index. Defaults to `~/.influxdbv2/engine/index`. | string |
| `--series-file` | Path to series file. Defaults to `~/.influxdbv2/engine/_series`. | string |
| `-t`, `-top` | Limit results to the top n. | integer |
| Flag | Description | Input Type |
|:---- |:----------- |:----------:|
| `--bucket-id` | Process data for specified bucket ID. _Requires `org-id` flag to be set._ | string |
| `-h`, `--help` | View help for `report-tsi`. | |
| `-m`, `--measurements` | Group cardinality by measurements. | |
| `-o`, `--org-id` | Process data for specified organization ID. | string |
| `--path` | Specify path to index. Defaults to `~/.influxdbv2/engine/index`. | string |
| `--series-file` | Specify path to series file. Defaults to `~/.influxdbv2/engine/_series`. | string |
| `-t`, `-top` | Limit results to the top n. | integer |