|
| 1 | +# ============================================================================= |
| 2 | +# TelemetryFlow Python SDK - Environment Variables |
| 3 | +# ============================================================================= |
| 4 | +# Copy this file to .env and update the values as needed |
| 5 | +# ============================================================================= |
| 6 | + |
| 7 | +# ----------------------------------------------------------------------------- |
| 8 | +# Build Configuration |
| 9 | +# ----------------------------------------------------------------------------- |
| 10 | +VERSION=1.1.1 |
| 11 | +GIT_COMMIT=unknown |
| 12 | +GIT_BRANCH=main |
| 13 | +BUILD_TIME=unknown |
| 14 | + |
| 15 | +# ----------------------------------------------------------------------------- |
| 16 | +# TelemetryFlow API Credentials |
| 17 | +# ----------------------------------------------------------------------------- |
| 18 | +# Get your API keys from https://app.telemetryflow.id |
| 19 | + |
| 20 | +TELEMETRYFLOW_API_KEY_ID=tfk_your_key_id |
| 21 | +TELEMETRYFLOW_API_KEY_SECRET=tfs_your_key_secret |
| 22 | + |
| 23 | +# ----------------------------------------------------------------------------- |
| 24 | +# Service Configuration |
| 25 | +# ----------------------------------------------------------------------------- |
| 26 | +# Unique name for your service |
| 27 | +TELEMETRYFLOW_SERVICE_NAME=my-python-service |
| 28 | + |
| 29 | +# Service version (semver recommended) |
| 30 | +TELEMETRYFLOW_SERVICE_VERSION=1.0.0 |
| 31 | + |
| 32 | +# Service namespace for multi-tenant support |
| 33 | +TELEMETRYFLOW_SERVICE_NAMESPACE=telemetryflow |
| 34 | + |
| 35 | +# ----------------------------------------------------------------------------- |
| 36 | +# Connection Settings |
| 37 | +# ----------------------------------------------------------------------------- |
| 38 | +# OTLP collector endpoint |
| 39 | +TELEMETRYFLOW_ENDPOINT=api.telemetryflow.id:4317 |
| 40 | + |
| 41 | +# Use insecure connection (for local development) |
| 42 | +TELEMETRYFLOW_INSECURE=false |
| 43 | + |
| 44 | +# Deployment environment (production, staging, development) |
| 45 | +TELEMETRYFLOW_ENVIRONMENT=development |
| 46 | + |
| 47 | +# ----------------------------------------------------------------------------- |
| 48 | +# Collector Configuration |
| 49 | +# ----------------------------------------------------------------------------- |
| 50 | +# Unique collector ID for distributed collectors |
| 51 | +# TELEMETRYFLOW_COLLECTOR_ID=collector-001 |
| 52 | + |
| 53 | +# TelemetryFlow backend (if using local collector) |
| 54 | +# TELEMETRYFLOW_API_ENDPOINT=http://localhost:3100 |
| 55 | + |
| 56 | +# Tenant and workspace (for multi-tenant deployments) |
| 57 | +# TELEMETRYFLOW_TENANT_ID=default |
| 58 | +# TELEMETRYFLOW_WORKSPACE_ID=default |
| 59 | + |
| 60 | +# ----------------------------------------------------------------------------- |
| 61 | +# Telemetry Feature Flags |
| 62 | +# ----------------------------------------------------------------------------- |
| 63 | +TELEMETRYFLOW_ENABLE_METRICS=true |
| 64 | +TELEMETRYFLOW_ENABLE_LOGS=true |
| 65 | +TELEMETRYFLOW_ENABLE_TRACES=true |
| 66 | + |
| 67 | +# ----------------------------------------------------------------------------- |
| 68 | +# Batch Processing Configuration |
| 69 | +# ----------------------------------------------------------------------------- |
| 70 | +TELEMETRYFLOW_BATCH_SIZE=512 |
| 71 | +TELEMETRYFLOW_BATCH_TIMEOUT=5s |
| 72 | + |
| 73 | +# ----------------------------------------------------------------------------- |
| 74 | +# Network Configuration (for local development) |
| 75 | +# ----------------------------------------------------------------------------- |
| 76 | +# OTLP gRPC receiver port |
| 77 | +OTLP_GRPC_PORT=4317 |
| 78 | + |
| 79 | +# OTLP HTTP receiver port |
| 80 | +OTLP_HTTP_PORT=4318 |
| 81 | + |
| 82 | +# Prometheus metrics port (self-observability) |
| 83 | +METRICS_PORT=8888 |
| 84 | + |
| 85 | +# Prometheus exporter port |
| 86 | +PROMETHEUS_EXPORTER_PORT=8889 |
| 87 | + |
| 88 | +# Health check port |
| 89 | +HEALTH_PORT=13133 |
| 90 | + |
| 91 | +# ----------------------------------------------------------------------------- |
| 92 | +# Logging Configuration |
| 93 | +# ----------------------------------------------------------------------------- |
| 94 | +LOG_LEVEL=info |
| 95 | +LOG_FORMAT=json |
| 96 | + |
| 97 | +# ----------------------------------------------------------------------------- |
| 98 | +# Python SDK Specific Settings |
| 99 | +# ----------------------------------------------------------------------------- |
| 100 | +# Flask/FastAPI server port (for examples) |
| 101 | +APP_PORT=8080 |
| 102 | + |
| 103 | +# Debug mode (for development) |
| 104 | +APP_DEBUG=false |
| 105 | + |
| 106 | +# ----------------------------------------------------------------------------- |
| 107 | +# Database Configuration (for RESTful API generator) |
| 108 | +# ----------------------------------------------------------------------------- |
| 109 | +DB_DRIVER=postgresql |
| 110 | +DB_HOST=localhost |
| 111 | +DB_PORT=5432 |
| 112 | +DB_NAME=myapp |
| 113 | +DB_USER=postgres |
| 114 | +DB_PASSWORD= |
| 115 | + |
| 116 | +# ----------------------------------------------------------------------------- |
| 117 | +# Security Configuration (for RESTful API generator) |
| 118 | +# ----------------------------------------------------------------------------- |
| 119 | +SECRET_KEY=change-me-in-production |
| 120 | +JWT_SECRET_KEY=change-me-in-production |
| 121 | +JWT_EXPIRES=3600 |
| 122 | + |
| 123 | +# ----------------------------------------------------------------------------- |
| 124 | +# Resource Limits (for Docker deployments) |
| 125 | +# ----------------------------------------------------------------------------- |
| 126 | +MEMORY_LIMIT=512M |
| 127 | +CPU_LIMIT=1.0 |
0 commit comments