Initial Working Commit, all opensearch ang grafana is working, grafana plots cpanel and opensearch getting all the log from cpanel, only access_log, syslog and auditd log are parsed

This commit is contained in:
Mosiur Rahman
2026-08-13 07:30:18 +00:00
commit 0362f95667
31 changed files with 1497 additions and 0 deletions

View File

@@ -0,0 +1,77 @@
grafana:
enabled: true
adminPassword: "Enp129s0f0-0bS#rb!L!tyN#vv"
persistence:
enabled: true
size: 10Gi
service:
type: ClusterIP
prometheus:
prometheusSpec:
retention: 30d
retentionSize: "45GB"
resources:
requests: { cpu: 500m, memory: 1Gi }
limits: { cpu: "2", memory: 4Gi }
storageSpec:
volumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
resources: { requests: { storage: 50Gi } }
configMaps:
- blackbox-targets
additionalScrapeConfigs:
- job_name: 'cpanel-node'
static_configs:
- targets: ['bwebhosting.brilliant.com.bd:9100']
labels: { role: 'cpanel-host' }
- job_name: 'cpanel-apache'
static_configs:
- targets: ['bwebhosting.brilliant.com.bd:9117']
- job_name: 'cpanel-mariadb'
static_configs:
- targets: ['bwebhosting.brilliant.com.bd:9104']
- job_name: 'cpanel-process'
static_configs:
- targets: ['bwebhosting.brilliant.com.bd:9256']
- job_name: 'cpanel-whm'
static_configs:
- targets: ['bwebhosting.brilliant.com.bd:9124']
- job_name: 'bind-dns'
static_configs:
- targets: ['dns1.intercloud-bd.net:9119','dns2.intercloud-bd.net:9119','dns3.intercloud-bd.net:9119']
- job_name: 'blackbox-http'
metrics_path: /probe
params: { module: [http_2xx] }
file_sd_configs:
- files:
- /etc/prometheus/configmaps/blackbox-targets/targets.json
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox-exporter-prometheus-blackbox-exporter.monitoring.svc.cluster.local:9115
alertmanager:
alertmanagerSpec:
storage:
volumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
resources: { requests: { storage: 5Gi } }
config:
route:
receiver: 'default'
group_by: ['alertname', 'role']
group_wait: 30s
repeat_interval: 4h
receivers:
- name: default