diff --git a/custom-exporter/openstack-exporter b/custom-exporter/openstack-exporter new file mode 160000 index 0000000..38c8acf --- /dev/null +++ b/custom-exporter/openstack-exporter @@ -0,0 +1 @@ +Subproject commit 38c8acfd06300b27d3f7cc3eb705dc5713c936e6 diff --git a/helm-charts b/helm-charts new file mode 160000 index 0000000..fe69421 --- /dev/null +++ b/helm-charts @@ -0,0 +1 @@ +Subproject commit fe6942189cbc5d836716235ff20e89f9d1dd5ed4 diff --git a/values-kube-prometheus-stack.yaml b/values-kube-prometheus-stack.yaml index 2afe3a9..8cda743 100644 --- a/values-kube-prometheus-stack.yaml +++ b/values-kube-prometheus-stack.yaml @@ -14,8 +14,8 @@ prometheus: retention: 30d retentionSize: "45GB" resources: - requests: { cpu: 500m, memory: 1Gi } - limits: { cpu: "2", memory: 4Gi } + requests: { cpu: "4", memory: 4Gi } + limits: { cpu: "8", memory: 8Gi } storageSpec: volumeClaimTemplate: spec: @@ -62,11 +62,151 @@ prometheus: scrape_interval: 15s scrape_timeout: 10s static_configs: + - targets: + - '192.168.20.53:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute3.brilliant.com.bd' + - targets: + - '192.168.20.54:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute4.brilliant.com.bd' + - targets: + - '192.168.20.55:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute5.brilliant.com.bd' + - targets: + - '192.168.20.56:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute6.brilliant.com.bd' + - targets: + - '192.168.20.59:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute9.brilliant.com.bd' + - targets: + - '192.168.20.60:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute10.brilliant.com.bd' + - targets: + - '192.168.20.101:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute11.brilliant.com.bd' + - targets: + - '192.168.20.102:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute12.brilliant.com.bd' - targets: - '192.168.20.103:9177' labels: role: 'openstack-compute-libvirt' - compute_host: 'compute13.brilliant.com.bd' + compute_host: 'compute13.brilliant.com.bd' + - targets: + - '192.168.20.104:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute14.brilliant.com.bd' + - targets: + - '192.168.20.105:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute15.brilliant.com.bd' + - targets: + - '192.168.20.106:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute16.brilliant.com.bd' + - targets: + - '192.168.20.107:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute17.brilliant.com.bd' + - targets: + - '192.168.20.108:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute18.brilliant.com.bd' + - targets: + - '192.168.20.109:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute19.brilliant.com.bd' + - targets: + - '192.168.20.113:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute20.brilliant.com.bd' + - targets: + - '192.168.20.120:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute21.brilliant.com.bd' + - targets: + - '192.168.20.121:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute22.brilliant.com.bd' + - targets: + - '192.168.20.122:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute23.brilliant.com.bd' + - targets: + - '192.168.20.123:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute24.brilliant.com.bd' + - targets: + - '192.168.20.124:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute25.brilliant.com.bd' + - targets: + - '192.168.20.125:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute26.brilliant.com.bd' + - targets: + - '192.168.20.127:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute27.brilliant.com.bd' + - targets: + - '192.168.20.128:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute28.brilliant.com.bd' + - targets: + - '192.168.20.130:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute29.brilliant.com.bd' + - targets: + - '192.168.20.131:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute30.brilliant.com.bd' + - targets: + - '192.168.20.132:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute31.brilliant.com.bd' + - targets: + - '192.168.20.133:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute32.brilliant.com.bd' + - targets: + - '192.168.20.134:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute33.brilliant.com.bd' alertmanager: alertmanagerSpec: storage: @@ -82,4 +222,3 @@ alertmanager: repeat_interval: 4h receivers: - name: default - diff --git a/values-kube-prometheus-stack.yaml.202602 b/values-kube-prometheus-stack.yaml.202602 new file mode 100644 index 0000000..2afe3a9 --- /dev/null +++ b/values-kube-prometheus-stack.yaml.202602 @@ -0,0 +1,85 @@ +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 + - job_name: 'openstack_libvirt' + scrape_interval: 15s + scrape_timeout: 10s + static_configs: + - targets: + - '192.168.20.103:9177' + labels: + role: 'openstack-compute-libvirt' + compute_host: 'compute13.brilliant.com.bd' +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 +