# observability-only — full observability stack as a standalone deploy.
#
# kube-prometheus-stack + Loki + Vector + VictoriaMetrics + the
# OpenTelemetry operator + Phoenix. Applies cleanly against any
# existing cluster.

name: alphaswarm-observability-only
slug: observability-only
module_kind: observability_stack
description: |
  Standalone AlphaSwarm observability stack. Applies kube-prometheus-stack
  + Loki + Vector (DaemonSet) + VictoriaMetrics + the OpenTelemetry
  operator + Phoenix against an existing cluster. Useful when adding
  observability to a pre-existing cell without re-running the full
  cell template.

cloud_provider: local
environment: sandbox

provider:
  kind: local

backend:
  kind: local
  config:
    path: data/terraform/state/observability-only.tfstate

variables:
  - name: obs_namespace
    type: string
    default: alphaswarm-observability
  - name: kube_prometheus_version
    type: string
    default: 62.7.0
  - name: loki_version
    type: string
    default: 6.16.0
  - name: vector_version
    type: string
    default: 0.43.0
  - name: victoriametrics_version
    type: string
    default: 0.36.4
  - name: otel_operator_version
    type: string
    default: 0.74.0
  - name: phoenix_enabled
    type: bool
    default: true

required_providers:
  kubernetes:
    source: hashicorp/kubernetes
    version: ~> 2.30
  helm:
    source: hashicorp/helm
    version: ~> 2.15

annotations:
  alphaswarm.io/template-name: observability-only
  alphaswarm.io/template-kind: observability_stack
  alphaswarm.io/composition: kube-prometheus-stack + loki + vector + victoriametrics + otel-operator + phoenix
  alphaswarm.io/target-cost-monthly: "$0 (in-cluster)"
