# SigNoz Helm Chart Values - Customized for Bakery IA
# https://github.com/SigNoz/charts

# Global settings
global:
  storageClass: "standard"

# Frontend configuration
frontend:
  service:
    type: ClusterIP
    port: 3301
  ingress:
    enabled: true
    hosts:
      - host: localhost
        paths:
          - path: /signoz
            pathType: Prefix
    annotations:
      nginx.ingress.kubernetes.io/rewrite-target: /$2

# Query Service configuration
queryService:
  replicaCount: 1
  resources:
    requests:
      cpu: 100m
      memory: 256Mi
    limits:
      cpu: 200m
      memory: 512Mi

# AlertManager configuration
alertmanager:
  replicaCount: 1
  resources:
    requests:
      cpu: 50m
      memory: 128Mi
    limits:
      cpu: 100m
      memory: 256Mi

# ClickHouse configuration
clickhouse:
  persistence:
    enabled: true
    size: 10Gi
  resources:
    requests:
      cpu: 500m
      memory: 1Gi
    limits:
      cpu: 1000m
      memory: 2Gi

# OpenTelemetry Collector configuration
otelCollector:
  enabled: true
  config:
    exporters:
      otlp:
        endpoint: "signoz-query-service:8080"
    service:
      pipelines:
        traces:
          receivers: [otlp]
          exporters: [otlp]
        metrics:
          receivers: [otlp]
          exporters: [otlp]
        logs:
          receivers: [otlp]
          exporters: [otlp]

# Resource optimization for development
# These can be increased for production
development: true