Skip to main content

Monitor and kill MongoDB operations

Project description

close-mongo-ops-manager

Monitor and kill MongoDB operations (Be advised that this is in a Beta state. You may encounter some bugs.)

The app is also published in pypi

Requirements

Install uv

Once installed you should see something similar to this:

$ uv self version
uv 0.9.5 (d5f39331a 2025-10-21)

Sync Project Dependencies

Sync the project

uv sync --python 3.13

For development, you can use the --all-groups flag to install all dev dependencies

uv sync --python 3.13 --all-groups

Testing

Run tests

uv run pytest -v

Running the app

Launch the application

uv run src/close_mongo_ops_manager/app.py --help

Or you can just use uvx

uvx -n close-mongo-ops-manager

Command Line Options

The application supports these command line options:

  • --host: MongoDB host (default: localhost or MONGODB_HOST env var)
  • --port: MongoDB port (default: 27017 or MONGODB_PORT env var)
  • --username: MongoDB username (or MONGODB_USERNAME env var)
  • --password: MongoDB password (or MONGODB_PASSWORD env var)
  • --namespace: MongoDB namespace to monitor (default: ".*")
  • --refresh-interval: Refresh interval in seconds (default: 2, min: 1, max: 10)
  • --show-system-ops: Show system operations (disabled by default)
  • --load-balanced: Enable load balancer support for MongoDB connections
  • --version: Show version information
  • --help: Show help information

Usage

These are the actions you can do in the app. You can see them in the app help menu as well.

f1      : Show this help
Ctrl+Q  : Quit application
Ctrl+R  : Refresh operations list
Ctrl+K  : Kill selected operations
Ctrl+P  : Pause/Resume auto-refresh
Ctrl+S  : Sort by running time
Ctrl+L  : View application logs
Ctrl+A  : Toggle selection (select all/deselect all)
Ctrl+F  : Toggle filter bar visibility
Ctrl+T  : Change theme
Ctrl++  : Increase refresh interval
Ctrl+-  : Decrease refresh interval
Enter   : See operation details
Space   : Select operations

The mouse is enabled, so all menus are clickable.

Take into account that the auto-refresh is disabled by default. If you enable it to refresh the operations automatically, when you find the operation you want to kill you need to stop it first. Then select the operation and kill it.

The selected operations are not preserved between refreshes. This will improve in the future releases. There is also a known issue about in the filter bar that looses focus.

This is the tipical usage:

  • Use arrow keys or mouse to navigate
  • Space/Click to select operations
  • Filter operations using the input fields
  • Clear filters with the Clear button
  • Confirm kill operations when prompted

Theming

The application supports multiple themes that can be changed using Ctrl+T. Available themes include:

  • textual-dark (default) - Standard dark theme
  • textual-light - Standard light theme
  • close-mongodb - Custom theme with MongoDB brand colors
  • nord - Nord color scheme
  • gruvbox - Gruvbox color scheme
  • tokyo-night - Tokyo Night theme
  • solarized-light - Solarized light theme
  • dracula - Dracula theme
  • monokai - Monokai theme
  • flexoki - Flexoki theme
  • catppuccin-mocha - Catppuccin Mocha theme
  • catppuccin-latte - Catppuccin Latte theme

Theme preferences are automatically saved to ~/.config/close-mongo-ops-manager/config.json and will be restored when you restart the application.

Screenshot

App screenshot

Project details


Download files

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

Source Distribution

close_mongo_ops_manager-0.5.5.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

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

close_mongo_ops_manager-0.5.5-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file close_mongo_ops_manager-0.5.5.tar.gz.

File metadata

  • Download URL: close_mongo_ops_manager-0.5.5.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for close_mongo_ops_manager-0.5.5.tar.gz
Algorithm Hash digest
SHA256 e5bea6d75c81c2de74840c4530d16550a0776d2c3b2c375d690f17b89b7e0da8
MD5 bff4845d4f2f8cb493f8d17f01492f66
BLAKE2b-256 3bab04c8796928e35ee62bd8bd804811e85742aae71d763992f5eadb29c5408f

See more details on using hashes here.

File details

Details for the file close_mongo_ops_manager-0.5.5-py3-none-any.whl.

File metadata

  • Download URL: close_mongo_ops_manager-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for close_mongo_ops_manager-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c0b5edf4b883b47306d9fda78b44c99eb1d3001f9fdb79af8299086134cbd91c
MD5 fe4ebbbf9b341540a3e96476429e47d2
BLAKE2b-256 39399cdc8f7b1e2c8e14bb539a61dca16df702b58a241509c04b3c568ed90c5c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page