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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mongo_x_ray_hc-2.0.0.tar.gz (51.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mongo_x_ray_hc-2.0.0-py3-none-any.whl (102.3 kB view details)

Uploaded Python 3

File details

Details for the file mongo_x_ray_hc-2.0.0.tar.gz.

File metadata

  • Download URL: mongo_x_ray_hc-2.0.0.tar.gz
  • Upload date:
  • Size: 51.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mongo_x_ray_hc-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d83498c9dec79a8dc3e6875c3d64a16eed740c4d67b849c5d3278159a8a64c45
MD5 6fa9a49b32e137dbed64d95f3d2bdbac
BLAKE2b-256 6058cd0111c80f38c8e4951be6fa369d7554629e6d61f49aa9c8d96a5c4b2c28

See more details on using hashes here.

Provenance

The following attestation bundles were made for mongo_x_ray_hc-2.0.0.tar.gz:

Publisher: publish-pypi.yml on zhangyaoxing/mongo-x-ray-hc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mongo_x_ray_hc-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: mongo_x_ray_hc-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 102.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mongo_x_ray_hc-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8f4206de41985bb3bbfec11fe636ca4235c51a28ec78f94cec1de9239061a9b
MD5 5768c897f65aa7571aee0341086067f8
BLAKE2b-256 d42dd746638f86ce71cd00d7be66d043431a154e6566ad00dd31c8524fdd6835

See more details on using hashes here.

Provenance

The following attestation bundles were made for mongo_x_ray_hc-2.0.0-py3-none-any.whl:

Publisher: publish-pypi.yml on zhangyaoxing/mongo-x-ray-hc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 files

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