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.2

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.2
File Size Uploaded Provenance Actions
mongo_x_ray_hc-2.1.2.tar.gz 61.4 kB With provenance Details for mongo_x_ray_hc-2.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 171.1 kB

Release files / mongo_x_ray_hc-2.1.2.tar.gz

Download URL mongo_x_ray_hc-2.1.2.tar.gz
Size 61.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4cc9bbf17596e5f63014c9a78bfa8fc287e87c9ff8880896b94cbde8b3cae141
BLAKE2b-256 checksum
How to use checksums
903e8d28c6f1b4a6893e86271ccf6d09ad8200c069ac809ba9cb1ee12922a5f9
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 5, 2026.

Transparency log

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

Download URL mongo_x_ray_hc-2.1.2-py3-none-any.whl
Size 109.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc465a76d6168017e309e1b78dcc78789b09f2988cffd57619bc4d7d346098ab
BLAKE2b-256 checksum
How to use checksums
3ec6523fb521435b26c9f5c0e40dcf13124c4afa23c8b534e2219c7b17bb5539
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 5, 2026.

Transparency log

Security for mongo-x-ray-hc 2.1.2

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.2.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 5, 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