feat: CI/CD pipeline setup complete - Ansible playbooks updated, secrets configured, workflow ready
This commit is contained in:
12
monitoring/grafana/provisioning/dashboards/default.yml
Normal file
12
monitoring/grafana/provisioning/dashboards/default.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: 1
|
||||
|
||||
providers:
|
||||
- name: 'Default'
|
||||
orgId: 1
|
||||
folder: ''
|
||||
type: file
|
||||
disableDeletion: false
|
||||
updateIntervalSeconds: 10
|
||||
allowUiUpdates: true
|
||||
options:
|
||||
path: /etc/grafana/provisioning/dashboards
|
||||
11
monitoring/grafana/provisioning/datasources/prometheus.yml
Normal file
11
monitoring/grafana/provisioning/datasources/prometheus.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: 1
|
||||
|
||||
datasources:
|
||||
- name: Prometheus
|
||||
type: prometheus
|
||||
access: proxy
|
||||
url: http://prometheus:9090
|
||||
isDefault: true
|
||||
editable: true
|
||||
jsonData:
|
||||
timeInterval: "15s"
|
||||
44
monitoring/prometheus/prometheus.yml
Normal file
44
monitoring/prometheus/prometheus.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
evaluation_interval: 15s
|
||||
external_labels:
|
||||
environment: 'production'
|
||||
project: 'michaelschiemer-framework'
|
||||
|
||||
# Alerting configuration
|
||||
alerting:
|
||||
alertmanagers:
|
||||
- static_configs:
|
||||
- targets: []
|
||||
|
||||
# Scrape configurations
|
||||
scrape_configs:
|
||||
# Prometheus self-monitoring
|
||||
- job_name: 'prometheus'
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
|
||||
# Framework application metrics (if exposed)
|
||||
- job_name: 'framework-app'
|
||||
static_configs:
|
||||
- targets: ['web:80']
|
||||
metrics_path: '/metrics'
|
||||
scrape_interval: 30s
|
||||
|
||||
# PostgreSQL metrics (via postgres_exporter if configured)
|
||||
- job_name: 'postgres'
|
||||
static_configs:
|
||||
- targets: ['db:5432']
|
||||
scrape_interval: 30s
|
||||
|
||||
# Redis metrics (via redis_exporter if configured)
|
||||
- job_name: 'redis'
|
||||
static_configs:
|
||||
- targets: ['redis:6379']
|
||||
scrape_interval: 30s
|
||||
|
||||
# Docker metrics (via cAdvisor if configured)
|
||||
- job_name: 'docker'
|
||||
static_configs:
|
||||
- targets: ['host.docker.internal:8080']
|
||||
scrape_interval: 30s
|
||||
Reference in New Issue
Block a user