-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Reindex In Progress Metric (#23160)
* Add a telemetry metric to track if a reindex is in progress or not * changelog * Add other reindex related metrics * cleanup types * Add docs for these metrics * check for nil values
- Loading branch information
1 parent
68dd82c
commit c93137d
Showing
7 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
replication: Add re-index status metric to telemetry | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...te/content/partials/telemetry-metrics/vault/core/replication/build_progress.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### vault.core.replication.build_progress ((#vault-core-replication-build_progress)) | ||
|
||
Metric type | Value | Description | ||
----------- | ------- | ----------- | ||
gauge | keys | Number of keys that have been inserted into the new tree |
5 changes: 5 additions & 0 deletions
5
website/content/partials/telemetry-metrics/vault/core/replication/build_total.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### vault.core.replication.build_total ((#vault-core-replication-build_total)) | ||
|
||
Metric type | Value | Description | ||
----------- | ------- | ----------- | ||
gauge | keys | Total number of keys that have to be inserted into the new tree |
11 changes: 11 additions & 0 deletions
11
...ite/content/partials/telemetry-metrics/vault/core/replication/reindex_stage.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
### vault.core.replication.reindex_stage ((#vault-core-replication-reindex_stage)) | ||
|
||
Metric type | Value | Description | ||
----------- | ------- | ----------- | ||
gauge | stage | Current stage of the reindexing process | ||
|
||
- A value of `4` indicates the reindex process is committing any differences between the newly created tree and the old tree. | ||
- A value of `3` indicates the reindex process is replaying WALs to ensure no updates were missed while scanning and building. | ||
- A value of `2` indicates the reindex process is currently building a new merkle tree based of the values for the keys obtained in the scanning stage. | ||
- A value of `1` indicates the reindex process is currently creating a list of all known storage keys. | ||
- A value of `0` indicates that a reindex is not in progress. |