-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathconfig.yaml
More file actions
96 lines (81 loc) · 2.48 KB
/
config.yaml
File metadata and controls
96 lines (81 loc) · 2.48 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
modules:
- class: modules::stream::StreamModule
config:
port: ${STREAMS_PORT:3112}
host: 127.0.0.1
adapter:
class: modules::stream::adapters::RedisAdapter
config:
redis_url: redis://localhost:6379
- class: modules::kv_server::KvServer
config:
store_method: file_based
file_path: ./data/kv_store
save_interval_ms: 5000
- class: modules::state::StateModule
config:
adapter:
class: modules::state::adapters::KvStore
config:
store_method: file_based
file_path: ./data/state_store.db
- class: modules::api::RestApiModule
config:
port: 3111
host: 127.0.0.1
default_timeout: 30000
concurrency_request_limit: 1024
cors:
allowed_origins:
- http://localhost:3000
- http://localhost:5173
allowed_methods:
- GET
- POST
- PUT
- DELETE
- OPTIONS
- class: modules::observability::OtelModule
config:
enabled: ${OTEL_ENABLED:true}
service_name: ${OTEL_SERVICE_NAME:iii-engine}
service_version: ${SERVICE_VERSION:0.1.0}
service_namespace: ${SERVICE_NAMESPACE:production}
service_instance_id: ${SERVICE_INSTANCE_ID:auto-generated}
exporter: ${OTEL_EXPORTER_TYPE:both}
endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://localhost:4317}
sampling_ratio: 1.0
memory_max_spans: ${OTEL_MEMORY_MAX_SPANS:10000}
metrics_enabled: true
metrics_exporter: ${OTEL_METRICS_EXPORTER:memory}
prometheus_port: ${PROMETHEUS_PORT:9464}
metrics_retention_seconds: 3600
metrics_max_count: 10000
logs_enabled: ${OTEL_LOGS_ENABLED:true}
logs_exporter: ${OTEL_LOGS_EXPORTER:both}
logs_max_count: ${OTEL_LOGS_MAX_COUNT:1000}
logs_retention_seconds: ${OTEL_LOGS_RETENTION_SECONDS:3600}
worker_metrics:
enabled: true
collection_interval_seconds: 5
history_size: 60
- class: modules::queue::QueueModule
config:
adapter:
class: modules::queue::RedisAdapter
config:
redis_url: redis://localhost:6379
- class: modules::pubsub::PubSubModule
config:
adapter:
class: modules::pubsub::LocalAdapter
- class: modules::cron::CronModule
config:
adapter:
class: modules::cron::KvCronAdapter
- class: modules::shell::ExecModule
config:
watch:
- src/**/*.py
exec:
- uv run iii-example