FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ROX-34561: add index health stats to diagnostic bundle by dashrews78 · Pull Request #20474 · stackrox/stackrox · GitHub

ROX-34561: add index health stats to diagnostic bundle - #20474

Merged
dashrews78 merged 1 commit into
masterfrom
dashrews/invalid-index
May 19, 2026
Merged

ROX-34561: add index health stats to diagnostic bundle#20474
dashrews78 merged 1 commit into
masterfrom
dashrews/invalid-index

Conversation

dashrews78 commented May 11, 2026
edited
Loading

Copy link
Copy Markdown
Collaborator

Description

Query pg_stat_user_indexes joined with pg_index to capture index
validity, type, size, and scan count. Scoped to current user's
indexes to avoid leaking metadata from external database management
schemas. Output written to central-db-pg-index-stats.json.

Partially generated by AI.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

Deployed cluster. Ran diagnostic bundle with all valid indexes. Ran diagnostic bundle with an invalid index present.

When all indexes are valid, they are all marked as valid in the diagnostic bundle. On the invalid test they are not. See

    { 
      "TableName": "alerts",
      "IndexName": "alerts_state",
      "IndexType": "btree",
      "IndexSizeBytes": 16384,
      "IsValid": false,
      "IsReady": true,
      "IndexScans": 0
    },

dashrews78 commented May 11, 2026
edited
Loading

Copy link
Copy Markdown
Collaborator Author

This change is part of the following stack:

Change managed by git-spice.

openshift-ci Bot commented May 11, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

github-actions Bot commented May 11, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

🚀 Build Images Ready

Images are ready for commit 936152f. To use with deploy scripts:

export MAIN_IMAGE_TAG=4.11.x-1045-g936152f929

dashrews78 changed the title feat: add index health stats to diagnostic bundle ROX-34561: add index health stats to diagnostic bundle May 11, 2026
dashrews78 marked this pull request as ready for review May 19, 2026 11:25
dashrews78 requested a review from a team as a code owner May 19, 2026 11:25
Query pg_stat_user_indexes joined with pg_index to capture index
validity, type, size, and scan count. Scoped to current user's
indexes to avoid leaking metadata from external database management
schemas. Output written to central-db-pg-index-stats.json.

Partially generated by AI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
dashrews78 force-pushed the dashrews/invalid-index branch from 2ded016 to c2457c5 Compare May 19, 2026 11:26

Copy link
Copy Markdown
Collaborator Author

/test create-custom-snapshot

Copy link
Copy Markdown
Collaborator Author

/retest

dashrews78 merged commit 936152f into master May 19, 2026
160 of 184 checks passed
dashrews78 deleted the dashrews/invalid-index branch May 19, 2026 15:53
This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL