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

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.1
File Size Uploaded Provenance Actions
mongo_x_ray_hc-2.1.1.tar.gz 58.0 kB With provenance Details for mongo_x_ray_hc-2.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 166.5 kB

Release files / mongo_x_ray_hc-2.1.1.tar.gz

Download URL mongo_x_ray_hc-2.1.1.tar.gz
Size 58.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0236aea49638fb6640d246ed4f74a58465c993ce4b8a7275e70c3c032dbbf9bc
BLAKE2b-256 checksum
How to use checksums
e6329aba4bcb00ff49a354abe2257a2d36bf37f89ffc6c2b4b48e2b7648c830b
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.1-py3-none-any.whl

Download URL mongo_x_ray_hc-2.1.1-py3-none-any.whl
Size 108.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b8754da926462b5a79fde6795b29505c3630d3535265831736db6bd3a55278d
BLAKE2b-256 checksum
How to use checksums
219682148c09f9f3aab8ec8369dbad7a6fdda581897ba448a36d1b805ab1ce9c
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.1

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