mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-26 13:58:49 +00:00
feat: Add Grafana provisioning and Prometheus configuration for telecom platform monitoring
- Add Grafana dashboard provisioning with telecom-dashboards provider, 10s update interval, UI updates enabled - Add Grafana datasource provisioning with Prometheus (default) and InfluxDB Flux datasources - Add InfluxDB datasource with telecom org/bucket, admin credentials, token authentication - Add Prometheus configuration with 15s scrape/evaluation intervals, alert_rules.yml integration - Add Alertmanager integration
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: 1
|
||||||
|
|
||||||
|
providers:
|
||||||
|
- name: 'telecom-dashboards'
|
||||||
|
orgId: 1
|
||||||
|
folder: ''
|
||||||
|
type: file
|
||||||
|
disableDeletion: false
|
||||||
|
updateIntervalSeconds: 10
|
||||||
|
allowUiUpdates: true
|
||||||
|
options:
|
||||||
|
path: /var/lib/grafana/dashboards
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: 1
|
||||||
|
|
||||||
|
datasources:
|
||||||
|
- name: Prometheus
|
||||||
|
type: prometheus
|
||||||
|
access: proxy
|
||||||
|
url: http://prometheus:9090
|
||||||
|
isDefault: true
|
||||||
|
editable: true
|
||||||
|
|
||||||
|
- name: InfluxDB
|
||||||
|
type: influxdb
|
||||||
|
access: proxy
|
||||||
|
url: http://influxdb:8086
|
||||||
|
database: telecom
|
||||||
|
user: admin
|
||||||
|
password: password123
|
||||||
|
jsonData:
|
||||||
|
version: Flux
|
||||||
|
organization: telecom
|
||||||
|
defaultBucket: telecom
|
||||||
|
tlsSkipVerify: true
|
||||||
|
secureJsonData:
|
||||||
|
token: telecom-super-secret-auth-token
|
||||||
|
editable: true
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
global:
|
||||||
|
scrape_interval: 15s
|
||||||
|
evaluation_interval: 15s
|
||||||
|
|
||||||
|
rule_files:
|
||||||
|
- "alert_rules.yml"
|
||||||
|
|
||||||
|
alerting:
|
||||||
|
alertmanagers:
|
||||||
|
- static_configs:
|
||||||
|
- targets:
|
||||||
|
- alertmanager:9093
|
||||||
|
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: 'telecom-api-server'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['host.docker.internal:8000']
|
||||||
|
metrics_path: '/metrics'
|
||||||
|
scrape_interval: 5s
|
||||||
|
|
||||||
|
- job_name: 'telecom-charging-engine'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['host.docker.internal:3001']
|
||||||
|
metrics_path: '/metrics'
|
||||||
|
scrape_interval: 5s
|
||||||
|
|
||||||
|
- job_name: 'telecom-packet-gateway'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['host.docker.internal:9000']
|
||||||
|
metrics_path: '/metrics'
|
||||||
|
scrape_interval: 5s
|
||||||
|
|
||||||
|
- job_name: 'prometheus'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['localhost:9090']
|
||||||
|
|
||||||
|
- job_name: 'node-exporter'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['node-exporter:9100']
|
||||||
|
|
||||||
|
- job_name: 'redis'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['redis:6379']
|
||||||
|
|
||||||
|
- job_name: 'influxdb'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['influxdb:8086']
|
||||||
|
metrics_path: '/metrics'
|
||||||
Reference in New Issue
Block a user