# Global registry prefix (optional, e.g., docker.io/, ghcr.io/)
# Leave empty to pull from Docker Hub by default
GLOBAL_REGISTRY=

# Timezone setting for all containers
TZ=UTC

# ============================================
# SigNoz Version Configuration
# ============================================

# SigNoz image repository/name
SIGNOZ_IMAGE_NAME=signoz/signoz

# SigNoz all-in-one backend + frontend + alertmanager version
SIGNOZ_VERSION=v0.125.1

# SigNoz OTel Collector version (also used for migration jobs)
SIGNOZ_OTEL_COLLECTOR_VERSION=v0.144.4

# ClickHouse version
SIGNOZ_CLICKHOUSE_VERSION=25.5.6

# ZooKeeper version
SIGNOZ_ZOOKEEPER_VERSION=3.7.1

# ============================================
# Security Configuration
# ============================================

# JWT secret for SigNoz token signing - MUST be changed in production
SIGNOZ_JWT_SECRET=please-change-this-secret

# ============================================
# Port Configuration
# ============================================

# SigNoz UI port (default: 8080)
SIGNOZ_PORT_OVERRIDE=8080

# OTel Collector OTLP gRPC port (default: 4317)
SIGNOZ_OTEL_GRPC_PORT_OVERRIDE=4317

# OTel Collector OTLP HTTP port (default: 4318)
SIGNOZ_OTEL_HTTP_PORT_OVERRIDE=4318

# ============================================
# OTel Collector Configuration
# ============================================

# OTel resource attributes
SIGNOZ_OTEL_RESOURCE_ATTRIBUTES=host.name=signoz-host,os.type=linux

# Exception grouping for low-cardinality exceptions (true/false)
SIGNOZ_LOW_CARDINAL_EXCEPTION_GROUPING=false

# ============================================
# Resource Limits - ClickHouse
# ============================================

# CPU limit for ClickHouse
SIGNOZ_CLICKHOUSE_CPU_LIMIT=2.0

# Memory limit for ClickHouse
SIGNOZ_CLICKHOUSE_MEMORY_LIMIT=4G

# CPU reservation for ClickHouse
SIGNOZ_CLICKHOUSE_CPU_RESERVATION=0.1

# Memory reservation for ClickHouse
SIGNOZ_CLICKHOUSE_MEMORY_RESERVATION=1G

# ============================================
# Resource Limits - OTel Collector
# ============================================

# CPU limit for OTel Collector
SIGNOZ_OTEL_COLLECTOR_CPU_LIMIT=1.0

# Memory limit for OTel Collector
SIGNOZ_OTEL_COLLECTOR_MEMORY_LIMIT=2G

# CPU reservation for OTel Collector
SIGNOZ_OTEL_COLLECTOR_CPU_RESERVATION=0.1

# Memory reservation for OTel Collector
SIGNOZ_OTEL_COLLECTOR_MEMORY_RESERVATION=512M

# ============================================
# Resource Limits - SigNoz
# ============================================

# CPU limit for SigNoz
SIGNOZ_CPU_LIMIT=1.0

# Memory limit for SigNoz
SIGNOZ_MEMORY_LIMIT=2G

# CPU reservation for SigNoz
SIGNOZ_CPU_RESERVATION=0.1

# Memory reservation for SigNoz
SIGNOZ_MEMORY_RESERVATION=256M

# ============================================
# Resource Limits - ZooKeeper
# ============================================

# CPU limit for ZooKeeper
SIGNOZ_ZOOKEEPER_CPU_LIMIT=0.5

# Memory limit for ZooKeeper
SIGNOZ_ZOOKEEPER_MEMORY_LIMIT=512M

# CPU reservation for ZooKeeper
SIGNOZ_ZOOKEEPER_CPU_RESERVATION=0.1

# Memory reservation for ZooKeeper
SIGNOZ_ZOOKEEPER_MEMORY_RESERVATION=128M
