Skip to main content

A Django app to perform health checks for various services.

Project description

Rishtedaar: The Nosey Neighbor for Your Django Health

Welcome to Rishtedaar—the Django package that’s like that one relative who just can’t resist sticking their nose into everyone’s business and pointing out every little flaw. Whether they’re scrutinizing your wardrobe choices or your career decisions, Rishtedaar is here to make sure every component of your Django application is living up and let you know if it's not!

Why "Rishtedaar"?

Ever had a relative who knows a little too much about everyone’s life? They’re always ready with unsolicited advice and are quick to point out anything that’s slightly off. That’s exactly what Rishtedaar does for your Django project. It's the ultimate busybody, keeping an eye on your application’s health.

Features

  • Database Health Check: Keeps a nosy eye on your database. If it’s not up to snuff, you’ll hear about it.
  • Cache Health Check: Checks if your cache is working properly—because, of course, a cache that isn’t caching is practically a scandal.
  • Celery Health Check: Makes sure your Celery workers are on their best behavior and not slacking off.
  • RabbitMQ Health Check: Monitors RabbitMQ’s performance, ensuring it's not acting up or playing games.
  • Configurable Checks: Enable or disable checks depending on how much oversight you actually want (or don’t want) from your busybody app.

Installation

Ready for some unsolicited advice? Install Rishtedaar using pip:

pip install rishtedaar

Configuration

Just like setting up boundaries with a nosy relative, configure Rishtedaar in your Django settings to manage its level of intrusiveness. Add rishtedaar to your INSTALLED_APPS and tweak the settings:

# settings.py

INSTALLED_APPS = [
    ...
    'rishtedaar',
    ...
]

# Optional: Configure which health checks to enable
RISHTEDAAR_DB_CHECK = True   # Or False, if you’re feeling rebellious
RISHTEDAAR_CACHE_CHECK = True
RISHTEDAAR_CELERY_CHECK = True
RISHTEDAAR_RMQ_CHECK = True

Usage

Add Rishtedaar’s opinionated perspective to your project by including it in your URL patterns. Because everyone needs a little unsolicited advice:

# urls.py

from django.urls import path
from rishtedaar.views import health_check

urlpatterns = [
    ...
    path('rishtedaar/', include('rishtedaar.urls')),
    ...
]

Visit /health/ to get a detailed status report. Rishtedaar will let you know if everything's perfect or if it has found something to gossip about.

Example

Here’s what a typical health check response might look like:

{
  "overall_health": true,
  "details": {
    "db": true,
    "cache": true,
    "celery": true,
    "rabbitmq": true
  }
}

If there’s trouble brewing, the overall_health key will be false, and the details will provide the dirt on what’s not up to snuff.

Contributing

Think Rishtedaar could be even more nosy or have a better gossip game? We welcome your contributions! Fork the repo, add your enhancements, and send a pull request. Don’t forget to add tests and documentation, so we can all keep an eye on them.

License

Rishtedaar is licensed under the MIT License. Check out the LICENSE file for all the legal jargon.

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

rishtedaar-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

rishtedaar-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file rishtedaar-0.1.0.tar.gz.

File metadata

  • Download URL: rishtedaar-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for rishtedaar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5e9b0b52ab6b185c52341c75a50d12a5659e8cdbbb831bff74437db49e3ef9f1
MD5 a56b696c16b38e90a2bd1f4b1ae88487
BLAKE2b-256 f57d3641c7fc86b5dde1ccb696fea0381eb4dd7d8e93f3cd50d10b71f21fdb32

See more details on using hashes here.

File details

Details for the file rishtedaar-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rishtedaar-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for rishtedaar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c58c8406c130cf5369395b31ee7f0acc05984aa5f3066e2051ce52a0253335cf
MD5 66dd583a84a45095a4bbab55e1328273
BLAKE2b-256 d52284d9203fe61f1eefe6baf3473ff33de7e9d1714d4264ffebf86bc8e851f0

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