Skip to main content

mongo-x-ray-hc

CI PyPI

Health check analysis plugin for x-ray.

Install

pip install mongo-x-ray mongo-x-ray-hc

Usage

x-ray healthcheck
x-ray hc  # alias for healthcheck
x-ray healthcheck -u mongodb://localhost:27017 -f html -o /path/to/output/

Compatibility

Supports MongoDB 5.0 and above on replica sets and sharded clusters. Standalone deployments are not supported.

Replica Set Sharded Cluster Standalone
✅ ✅ ❌

Parameters

x-ray healthcheck [-h] [-u URI] [-s CHECKSET] [-o OUTPUT]
                  [-f {markdown,html,pdf}] [--no-browser]
Argument Description Default
-u, --uri MongoDB connection URI. HC_URI env var, else mongodb://localhost:47017
-s, --checkset Checkset to run. default
-o, --output Output folder path. output/
-f, --format Output format: markdown, html or pdf (PDF also keeps Markdown and HTML). html
--no-browser Do not open the generated report in the browser. false

Check Items

Item Purpose
BuildInfoItem MongoDB server build information, including a version end-of-life check.
ClusterItem Cluster topology: replica set config/status, sharding overview and oplog window.
CollInfoItem Collection information: sizes, fragmentation and operation latency.
HostInfoItem Host information: filesystem type, NUMA settings and host properties.
IndexInfoItem Index coverage and health.
SecurityItem Security posture (authentication and authorization).
ServerStatusItem Server status: cache, connections, opcounters and query targeting.
ShardKeyItem Shard key selection and data balance.

Development

Requires Python 3.10+, MongoDB 5.0 or later, and the mongo-x-ray core package.

make unit-test   # run the unit tests
make lint        # ruff check + ruff format --check
make minify      # minify templates

Metadata

Release files for mongo-x-ray-hc 2.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mongo-x-ray-hc 2.1.5
File Size Uploaded Provenance Actions
mongo_x_ray_hc-2.1.5.tar.gz 63.2 kB With provenance Details for mongo_x_ray_hc-2.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mongo-x-ray-hc 2.1.5
File Interpreter ABI Platform Actions
mongo_x_ray_hc-2.1.5-py3-none-any.whl Python 3 none any Details for mongo_x_ray_hc-2.1.5-py3-none-any.whl

Total release size: 175.5 kB

Release files / mongo_x_ray_hc-2.1.5.tar.gz

Download URL mongo_x_ray_hc-2.1.5.tar.gz
Size 63.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7900da1f898bf369262e2f3f8f48708024e8c2fc204d20f48b3bf51465ea8386
BLAKE2b-256 checksum
How to use checksums
7060e150142cb6cd76cb03efbe146308f613570e272d845e425f47f6bc385168
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / mongo_x_ray_hc-2.1.5-py3-none-any.whl

Download URL mongo_x_ray_hc-2.1.5-py3-none-any.whl
Size 112.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68e0b56403c9d9d7d5a2ed1d6ee90ace01c4d489fb375fb92c94dc8c4caed205
BLAKE2b-256 checksum
How to use checksums
3062ad3daf3dbf6820bdba132af6f643f01db8c0ea60e977c9732b041d517cc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for mongo-x-ray-hc 2.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mongo_x_ray_hc-2.1.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page