Building an Integrated Observability Architecture with GitOps
The problem
Section titled “The problem”Cramming Application, Node, and Kubernetes object state into a single OpenTelemetry Collector creates two problems immediately.
- Blast radius: stateful processing like trace tail sampling and per-node log tailing running as a DaemonSet end up in the same process, so a single incident or resource contention drags down every other signal too.
- Mismatched scaling axes: log/host-metric collection needs to scale per node, while trace/OTLP collection needs to scale with application throughput. Bundling them into one Deployment/DaemonSet forces over-provisioning for whichever axis dominates.
So in this environment the Collector is split into four role-specific deployments, and each backend (Loki/Mimir/Tempo) also gets its own storage/retention policy tuned to the signal’s characteristics.
Implementation snapshot (2025 development snapshot)
Section titled “Implementation snapshot (2025 development snapshot)”The table below reflects the chart versions and component layout actually deployed. These values describe a single development environment (single replica, short retention) and are not production recommendations.
| Component | Chart | Version | Deployment mode | Role |
|---|---|---|---|---|
| Loki | loki (Grafana) | 6.27.0 | Distributed mode | Log storage/query |
| Mimir | mimir-distributed | 5.6.0 | Distributed mode | Metric storage/query |
| Tempo | tempo-distributed | 1.32.0 | Distributed mode | Trace storage/query |
| Grafana | grafana | 8.9.0 | Deployment | Unified visualization |
| OpenTelemetry Collector | opentelemetry-collector | 0.117.1 | 1 Deployment + 3 DaemonSets | Four separated collection roles |
| kube-state-metrics | kube-state-metrics | 5.30.1 | Deployment, 1 replica | 28 Kubernetes object state collectors |
| prometheus-node-exporter | prometheus-node-exporter | 4.44.1 | DaemonSet | Host/node metrics |
- Every observability workload carries a toleration for the MGMT node pool, keeping it physically separate from application node pools.
- Each component gets its own namespace using generic names (
loki,mimir,tempo,grafana,otel-collector, etc.).
GitOps deployment structure
Section titled “GitOps deployment structure”The deployment flow is fixed as Argo CD Application → Kustomize overlay → vendored Helm chart (Helm inflation). Instead of application code calling helm install directly, each component overlay inflates a vendored chart via Kustomize’s helmCharts feature.
# generic Argo CD Application exampleapiVersion: argoproj.io/v1alpha1kind: Applicationmetadata: name: observability-loki namespace: argocdspec: project: platform source: repoURL: <gitops-repo> targetRevision: develop path: observability/loki/overlays/dev destination: server: https://kubernetes.default.svc namespace: loki syncPolicy: automated: prune: true selfHeal: true# generic Kustomize overlay: helm inflation + MGMT toleration patchapiVersion: kustomize.config.k8s.io/v1beta1kind: KustomizationhelmCharts: - name: loki repo: https://grafana.github.io/helm-charts version: 6.27.0 releaseName: loki valuesFile: values.yamlpatches: - target: kind: Deployment patch: |- - op: add path: /spec/template/spec/tolerations/- value: key: node-role operator: Equal value: mgmt effect: NoScheduleEach component has its own overlay directory and values.yaml, so a PR changing Loki retention has no effect on Tempo or Mimir sync.
Signal routing: why the Collector is split into four roles
Section titled “Signal routing: why the Collector is split into four roles”All four use the same OpenTelemetry Collector image, but deployment shape and pipeline configuration differ per role.
otel-apps(Deployment): receives application OTLP trace/metric/log. Traces go through tail sampling to Tempo, spanmetrics-derived and general metrics go to Mimir, logs go to Loki. It attaches aservice.instance.idresource attribute to distinguish multiple instances of the same service.otel-loki(DaemonSet): reads/var/log/pods/*/*/*.logon every node via the filelog receiver, applies a container parser and Kubernetes attributes, and forwards to Loki.otel-prometheus(DaemonSet): scrapes node/cAdvisor metrics via the kubeletstats receiver and remote-writes to Mimir.otel-meta-monitoring(Deployment): aggregates kube-state-metrics plus Loki/Mimir/Tempo’s own metrics and the Collector’s own metrics, sending them to Mimir. This is the role that watches the LGTM stack itself.
The role split follows a simple rule: Deployments fit application-scoped processing that scales with usage, DaemonSets fit node-scoped processing that scales with node count.
Storage and operational boundaries
Section titled “Storage and operational boundaries”- Loki, Mimir, and Tempo all use Azure object storage as their backend.
- Loki retention is set to 24h and Tempo block retention to 168h, both are development-environment cost/convenience calls, and long-term retention would need a separate policy.
- Most components (distributor/ingester/querier, etc.) run at 1 replica. This is effectively a replication factor of 1: a node failure can make that entire component briefly unavailable. Production would need at least 3 replicas with anti-affinity.
- There’s no ServiceMonitor/Prometheus Operator-based discovery. Scrape targets are explicitly defined in the OTel Collector pipelines.
| Item | Current implementation (dev snapshot) | Production hardening |
|---|---|---|
| Replica count | Mostly 1 | At least 3, with anti-affinity |
| Loki retention | 24h | Extend to meet audit/compliance needs |
| Tempo retention | 168h | Re-evaluate against cost and query needs |
| Alerting | Not configured | Introduce Mimir Ruler/Alertmanager, Loki Ruler |
| Dashboard provisioning | JSON export only, not auto-wired | ConfigMap/sidecar-based auto-provisioning |
Reading order for the five parts
Section titled “Reading order for the five parts”This post is the entry point of the sub-series. The actual pipeline details continue in the four posts below.
- Building an Integrated Observability Architecture with GitOps (this post)
- Kubernetes Log Pipeline: From OpenTelemetry Collector to Loki
- Kubernetes Metrics Pipeline: From Exporters and OTel Collector to Mimir
- Distributed Trace Pipeline: From Tail Sampling to Tempo Service Graphs
- Operating Grafana Dashboards: Signal Correlation and GitOps Boundaries
Closing
Section titled “Closing”Splitting the Collector by role and separating backends by signal characteristics keeps a failure in one signal path from propagating to the others. But it’s worth being clear that this is still a single-replica development snapshot. The next posts walk through each signal’s actual pipeline one at a time.