Initial Django project setup for Postgres cluster management - Created Django project structure with postgres_handholder main app - Added clusters, backups, and monitoring apps - Implemented comprehensive models for PostgresCluster, PostgresInstance, ClusterUser, ClusterDatabase - Added forms and views for cluster management - Created Bootstrap 5 templates with modern UI - Added Docker and Docker Compose configuration - Included Celery for background tasks - Added comprehensive requirements.txt with all dependencies - Updated README with installation and usage instructions - Added environment configuration example - Set up proper URL routing and app structure

This commit is contained in:
2025-06-18 06:24:56 +02:00
parent b1d9ec8ec0
commit a856fb73f7
26 changed files with 1577 additions and 1 deletions

1
monitoring/__init__.py Normal file
View File

@ -0,0 +1 @@
# Monitoring app for Postgres cluster monitoring

7
monitoring/apps.py Normal file
View File

@ -0,0 +1,7 @@
from django.apps import AppConfig
class MonitoringConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'monitoring'
verbose_name = 'Cluster Monitoring'

12
monitoring/urls.py Normal file
View File

@ -0,0 +1,12 @@
from django.urls import path
from . import views
app_name = 'monitoring'
urlpatterns = [
path('', views.dashboard, name='dashboard'),
path('clusters/', views.cluster_metrics, name='cluster_metrics'),
path('clusters/<int:cluster_id>/', views.cluster_detail_metrics, name='cluster_detail_metrics'),
path('alerts/', views.alerts, name='alerts'),
path('logs/', views.logs, name='logs'),
]