Replaced `django-prometheus` with the default Django components, including model mixins, database backends, and cache configuration. This change simplifies monitoring setup by removing unnecessary dependencies, reducing overhead, and improving compatibility. **Details:** - Removed Prometheus metrics endpoints and middleware. - Updated database, cache, and model configurations to remove `django-prometheus`. - Adjusted WSGI settings to integrate OpenTelemetry instrumentation instead of Prometheus. - Updated dependency files and migration schemas accordingly.
16 lines
354 B
YAML
16 lines
354 B
YAML
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
|
|
scrape_configs:
|
|
- job_name: 'database'
|
|
static_configs:
|
|
- targets: [ 'database_exporter:9187' ]
|
|
|
|
- job_name: 'redis'
|
|
static_configs:
|
|
- targets: [ 'redis_exporter:9121' ]
|
|
|
|
- job_name: 'elasticsearch'
|
|
static_configs:
|
|
- targets: [ 'elasticsearch_exporter:9114' ]
|