mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-21 04:04:28 +00:00
feat: Add carrier connector database DSN and monitoring configuration with Alertmanager integration
- Add DATABASE_DSN to telecom-config ConfigMap with postgres connection string for carrier database - Add telecom-carrier-connector Prometheus scrape job targeting carrier-connector-service:8080 (/metrics, 5s interval) - Add alertmanager-config ConfigMap in telecom-monitoring namespace with 5m resolve timeout - Add route configuration with grouping by alertname, severity, service (10s wait/interval, 12h repeat) - Add default Slack receiver for #telecom-platform-alerts channel
This commit is contained in:
@@ -8,6 +8,7 @@ data:
|
||||
DATABASE_HOST: "postgres-service"
|
||||
DATABASE_PORT: "5432"
|
||||
DATABASE_NAME: "telecom_platform"
|
||||
DATABASE_DSN: "host=postgres-service user=postgres password=telecom123 dbname=carrier port=5432 sslmode=disable"
|
||||
REDIS_HOST: "redis-service"
|
||||
REDIS_PORT: "6379"
|
||||
CHARGING_ENGINE_URL: "http://charging-engine-service:3001"
|
||||
@@ -92,6 +93,12 @@ data:
|
||||
metrics_path: '/metrics'
|
||||
scrape_interval: 5s
|
||||
|
||||
- job_name: 'telecom-carrier-connector'
|
||||
static_configs:
|
||||
- targets: ['carrier-connector-service:8080']
|
||||
metrics_path: '/metrics'
|
||||
scrape_interval: 5s
|
||||
|
||||
- job_name: 'postgres'
|
||||
static_configs:
|
||||
- targets: ['postgres-exporter:9187']
|
||||
@@ -114,6 +121,29 @@ data:
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: alertmanager-config
|
||||
namespace: telecom-monitoring
|
||||
data:
|
||||
alertmanager.yml: |
|
||||
global:
|
||||
resolve_timeout: 5m
|
||||
route:
|
||||
group_by: ['alertname', 'severity', 'service']
|
||||
group_wait: 10s
|
||||
group_interval: 10s
|
||||
repeat_interval: 12h
|
||||
receiver: 'default'
|
||||
receivers:
|
||||
- name: 'default'
|
||||
slack_configs:
|
||||
- channel: '#telecom-platform-alerts'
|
||||
send_resolved: true
|
||||
title: '{{ .GroupLabels.alertname }}'
|
||||
text: '{{ range .Alerts }}Alert: {{ .Labels.alertname }}\nSeverity: {{ .Labels.severity }}\n{{ end }}'
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: influxdb-config
|
||||
namespace: telecom-monitoring
|
||||
|
||||
Reference in New Issue
Block a user