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:
1
monitoring/__init__.py
Normal file
1
monitoring/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
# Monitoring app for Postgres cluster monitoring
|
7
monitoring/apps.py
Normal file
7
monitoring/apps.py
Normal 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
12
monitoring/urls.py
Normal 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'),
|
||||
]
|
Reference in New Issue
Block a user