forked from SigNoz/signoz
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
328 lines (253 loc) · 9.66 KB
/
.env.example
File metadata and controls
328 lines (253 loc) · 9.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
# SentinelAI Development Environment Variables
# Copy this file to .env and customize for your development environment
# =============================================================================
# GitHub Configuration (for forking SigNoz)
# =============================================================================
# Your GitHub username
GITHUB_USERNAME=your-github-username
# GitHub personal access token (optional, for GitHub CLI)
# Generate at: https://github.com/settings/tokens
# Scopes needed: repo, read:org
GITHUB_TOKEN=your-github-token
# =============================================================================
# Kubernetes Configuration
# =============================================================================
# Kubernetes context to use (docker-desktop, minikube, kind)
KUBE_CONTEXT=docker-desktop
# Kubernetes namespace for SentinelAI development
KUBE_NAMESPACE=sentinelai-dev
# Storage class for persistent volumes
# Common values: standard, hostpath, local-path
STORAGE_CLASS=standard
# =============================================================================
# SigNoz Configuration
# =============================================================================
# SigNoz version to use (latest, v0.76.0, etc.)
SIGNOZ_VERSION=latest
# Ports for local development
SIGNOZ_UI_PORT=3301
SIGNOZ_API_PORT=8080
# ClickHouse connection details
CLICKHOUSE_HOST=localhost
CLICKHOUSE_PORT=9000
CLICKHOUSE_HTTP_PORT=8123
CLICKHOUSE_DATABASE=signoz_traces
# OTel Collector endpoints
OTEL_COLLECTOR_GRPC_PORT=4317
OTEL_COLLECTOR_HTTP_PORT=4318
# =============================================================================
# Development Settings
# =============================================================================
# Enable development mode features
DEV_MODE=true
# Log level (debug, info, warn, error)
LOG_LEVEL=debug
# Enable hot reload for frontend development
HOT_RELOAD=true
# Enable sample data generation
SAMPLE_DATA_ENABLED=true
# Enable mock services for testing
MOCK_SERVICES_ENABLED=true
# =============================================================================
# Local Storage Configuration
# =============================================================================
# Local data directory for persistent storage
DATA_PATH=/tmp/sentinelai-data
# Local logs directory
LOGS_PATH=/tmp/sentinelai-logs
# Local source code directory (for development mounting)
SRC_PATH=/tmp/sentinelai-src
# =============================================================================
# SentinelAI Features (Future Implementation)
# =============================================================================
# Multi-tenancy configuration
MULTI_TENANT_ENABLED=true
DEFAULT_TENANT_ID=demo
TENANT_ISOLATION_LEVEL=row-level
# AI Integration
AI_ENABLED=true
AI_MOCK_MODE=true
AI_SERVICE_ENDPOINT=http://localhost:8081
# Cost tracking
COST_TRACKING_ENABLED=true
COST_TRACKING_INTERVAL=1m
# Business metrics
BUSINESS_METRICS_ENABLED=true
BUSINESS_AUTO_DETECTION=true
# =============================================================================
# AI Integration (OpenAI - Future Implementation)
# =============================================================================
# OpenAI configuration for AI-powered insights
# OPENAI_API_KEY=your-openai-api-key
# OPENAI_MODEL=gpt-4
# OPENAI_ORGANIZATION=your-openai-org-id
# AI service configuration
# AI_SERVICE_TIMEOUT=30s
# AI_BATCH_SIZE=100
# AI_CACHE_TTL=300s
# =============================================================================
# Database Configuration (Future Implementation)
# =============================================================================
# PostgreSQL for user/tenant management
# POSTGRES_HOST=localhost
# POSTGRES_PORT=5432
# POSTGRES_DB=sentinelai
# POSTGRES_USER=sentinelai
# POSTGRES_PASSWORD=password
# POSTGRES_SSL_MODE=disable
# Redis for caching and session management
# REDIS_HOST=localhost
# REDIS_PORT=6379
# REDIS_PASSWORD=
# REDIS_DB=0
# =============================================================================
# Authentication & Security (Future Implementation)
# =============================================================================
# JWT configuration
# JWT_SECRET=your-jwt-secret-key
# JWT_EXPIRATION=24h
# OAuth providers
# GOOGLE_CLIENT_ID=your-google-client-id
# GOOGLE_CLIENT_SECRET=your-google-client-secret
# GITHUB_CLIENT_ID=your-github-client-id
# GITHUB_CLIENT_SECRET=your-github-client-secret
# MICROSOFT_CLIENT_ID=your-microsoft-client-id
# MICROSOFT_CLIENT_SECRET=your-microsoft-client-secret
# Basic auth for development
# BASIC_AUTH_ENABLED=false
# BASIC_AUTH_USERNAME=admin
# BASIC_AUTH_PASSWORD=admin
# =============================================================================
# Cloud Configuration (Future Implementation)
# =============================================================================
# Google Cloud Platform
# GCP_PROJECT_ID=your-gcp-project
# GCP_REGION=us-central1
# GCP_ZONE=us-central1-a
# GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
# AWS Configuration
# AWS_REGION=us-west-2
# AWS_ACCESS_KEY_ID=your-aws-access-key
# AWS_SECRET_ACCESS_KEY=your-aws-secret-key
# Azure Configuration
# AZURE_SUBSCRIPTION_ID=your-azure-subscription-id
# AZURE_TENANT_ID=your-azure-tenant-id
# AZURE_CLIENT_ID=your-azure-client-id
# AZURE_CLIENT_SECRET=your-azure-client-secret
# =============================================================================
# Monitoring & Observability (Future Implementation)
# =============================================================================
# Prometheus configuration
# PROMETHEUS_ENABLED=true
# PROMETHEUS_PORT=9090
# Grafana configuration
# GRAFANA_ENABLED=true
# GRAFANA_PORT=3000
# GRAFANA_ADMIN_PASSWORD=admin
# Jaeger configuration
# JAEGER_ENABLED=true
# JAEGER_UI_PORT=16686
# =============================================================================
# Email & Notifications (Future Implementation)
# =============================================================================
# SMTP configuration for alerts
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# SMTP_USERNAME=your-email@gmail.com
# SMTP_PASSWORD=your-app-password
# SMTP_FROM=sentinelai@yourcompany.com
# Slack integration
# SLACK_WEBHOOK_URL=https://hooks.slack.com/services/...
# SLACK_CHANNEL=#alerts
# Teams integration
# TEAMS_WEBHOOK_URL=https://outlook.office.com/webhook/...
# =============================================================================
# Business Configuration (Future Implementation)
# =============================================================================
# Company information
# COMPANY_NAME=Your Company Name
# COMPANY_DOMAIN=yourcompany.com
# COMPANY_LOGO_URL=https://yourcompany.com/logo.png
# Billing configuration
# BILLING_ENABLED=false
# STRIPE_PUBLISHABLE_KEY=pk_test_...
# STRIPE_SECRET_KEY=sk_test_...
# Usage limits
# FREE_TIER_TRACES_PER_MONTH=100000
# GROWTH_TIER_TRACES_PER_MONTH=1000000
# ENTERPRISE_TIER_TRACES_PER_MONTH=unlimited
# =============================================================================
# Development Tools Configuration
# =============================================================================
# VS Code configuration
# VSCODE_WORKSPACE=/path/to/sentinelai.code-workspace
# Debug configuration
# DEBUG_ENABLED=true
# DEBUG_PORT=2345
# DELVE_ENABLED=true
# Testing configuration
# TEST_TIMEOUT=300s
# COVERAGE_ENABLED=true
# COVERAGE_THRESHOLD=80
# Build configuration
# BUILD_ENV=development
# BUILD_VERSION=dev
# BUILD_COMMIT=local
# =============================================================================
# Container Registry (Future Implementation)
# =============================================================================
# Docker registry configuration
# DOCKER_REGISTRY=gcr.io/your-project
# DOCKER_USERNAME=your-username
# DOCKER_PASSWORD=your-password
# Container image tags
# SENTINELAI_IMAGE_TAG=latest
# SIGNOZ_IMAGE_TAG=latest
# CLICKHOUSE_IMAGE_TAG=latest
# =============================================================================
# Feature Flags (Future Implementation)
# =============================================================================
# Experimental features
# FEATURE_AI_INSIGHTS=true
# FEATURE_COST_OPTIMIZATION=true
# FEATURE_BUSINESS_DASHBOARDS=true
# FEATURE_GUIDED_ONBOARDING=true
# FEATURE_REAL_TIME_ALERTS=true
# Performance features
# FEATURE_QUERY_CACHING=true
# FEATURE_RESULT_COMPRESSION=true
# FEATURE_LAZY_LOADING=true
# =============================================================================
# Compliance & Security (Future Implementation)
# =============================================================================
# Data retention policies
# DEFAULT_RETENTION_DAYS=30
# MAX_RETENTION_DAYS=365
# AUTO_CLEANUP_ENABLED=true
# Security settings
# ENCRYPT_AT_REST=true
# ENCRYPT_IN_TRANSIT=true
# AUDIT_LOGGING=true
# GDPR compliance
# GDPR_ENABLED=false
# DATA_EXPORT_ENABLED=false
# DATA_DELETION_ENABLED=false
# =============================================================================
# Performance Tuning (Future Implementation)
# =============================================================================
# Resource limits
# MAX_CONCURRENT_QUERIES=100
# QUERY_TIMEOUT=30s
# MAX_MEMORY_USAGE=4Gi
# Cache configuration
# QUERY_CACHE_SIZE=1Gi
# RESULT_CACHE_TTL=300s
# METADATA_CACHE_TTL=3600s
# =============================================================================
# Notes
# =============================================================================
# 1. Copy this file to .env and uncomment/modify values as needed
# 2. Never commit .env files to version control
# 3. Use strong passwords and secure tokens in production
# 4. Regularly rotate secrets and API keys
# 5. Review and update configuration as features are implemented