MATIH Platform is in active MVP development. Documentation reflects current implementation status.
18. CI/CD & Build System
Stage 10: DP Monitoring

Stage 10: Data Plane Monitoring

Stage 10 deploys the shared monitoring stack for data plane services. It supports two deployment modes: shared (for FREE/PROFESSIONAL tier tenants) and per-tenant (for ENTERPRISE tier tenants).

Source file: scripts/stages/10-data-plane-monitoring.sh


Components Deployed

ComponentChartPurpose
Prometheuskube-prometheus-stackMetrics collection for data plane services
GrafanaBundled with kube-prometheus-stackData plane dashboards
OpenTelemetry Collectoropentelemetry-collectorTrace and metric ingestion

Deployment Modes

ModeNamespaceConfiguration
Sharedmatih-monitoring-data-planeSingle stack for all tenants
Per-tenantmatih-monitoring-{tenant}Dedicated stack per ENTERPRISE tenant

The mode is controlled by the MONITORING_MODE environment variable (default: shared).


Helm Repositories

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts

Chart Location

infrastructure/helm/matih-monitoring-data-plane/

Libraries Used

LibraryPurpose
core/logging.shUnified logging
core/config.shConfiguration access
k8s/namespace.shNamespace creation
k8s/health.shPod health checks
helm/repo.shRepository management
helm/deploy.shDeployment functions
k8s/dev-secrets.shDev secrets for Grafana credentials

Dependencies

  • Requires: 05b-data-plane-infrastructure, 06-ingress-controller
  • Required by: 16-data-plane-services (monitoring must be ready before services)

Dependency Verification

kubectl get pods -n matih-monitoring-data-plane -l app=prometheus
kubectl get pods -n matih-monitoring-data-plane -l app.kubernetes.io/name=grafana