|
| 1 | +# HTTP/gRPC server configurations. |
1 | 2 | service:
|
| 3 | + # host forms the bind address along with port. In container environments |
| 4 | + # it might be necessary to set this to 0.0.0.0 (leaving this config empty |
| 5 | + # has the same effect) |
2 | 6 | host: localhost
|
| 7 | + |
| 8 | + # port forms the bind address along with host. |
3 | 9 | port: 8080
|
4 | 10 |
|
5 |
| -# Postgres Connection String |
| 11 | +# pg_conn_str is the PostgresDB connection string for entropy state storage. |
6 | 12 | # Refer https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
|
7 | 13 | pg_conn_str: 'postgres://postgres@localhost:5432/entropy?sslmode=disable'
|
8 | 14 |
|
9 | 15 | log:
|
| 16 | + # level can be one of debug, info, warn, error. |
| 17 | + # This configuration is case-insensitive. |
10 | 18 | level: info
|
11 | 19 |
|
12 | 20 | worker:
|
| 21 | + # unique name for the job queue for async jobs. when using postgres-queue |
| 22 | + # implementation, this forms the table name. |
13 | 23 | queue_name: entropy_jobs
|
| 24 | + |
| 25 | + # specification of the queuing backend. currently only postgres is supported. |
| 26 | + # So this must be a valid PG connection string. |
14 | 27 | queue_spec: 'postgres://postgres@localhost:5432/entropy?sslmode=disable'
|
| 28 | + |
| 29 | + # number of worker threads (goroutines) to launch. each thread will poll the |
| 30 | + # queueing backend for pending jobs. |
15 | 31 | threads: 1
|
| 32 | + |
| 33 | + # Interval between successive polls by a single worker thread. be careful when |
| 34 | + # reducing this since it can cause contention when combined high threads value |
| 35 | + # and lot of entropy instances. |
16 | 36 | poll_interval: 1s
|
17 | 37 |
|
| 38 | +# instrumentation/metrics related configurations. |
18 | 39 | telemetry:
|
| 40 | + # debug_addr is used for exposing the pprof, zpages & `/metrics` endpoints. if |
| 41 | + # not set, all of the above are disabled. |
19 | 42 | debug_addr: "localhost:8081"
|
| 43 | + |
| 44 | + # enable_cpu enables collection of runtime CPU metrics. available in `/metrics`. |
20 | 45 | enable_cpu: true
|
| 46 | + |
| 47 | + # enable_memory enables collection of runtime memory metrics. availbale via `/metrics`. |
21 | 48 | enable_memory: true
|
| 49 | + |
| 50 | + # sampling_fraction indicates the sampling rate for tracing. 1 indicates all traces |
| 51 | + # are collected and 0 means no traces. |
22 | 52 | sampling_fraction: 1
|
| 53 | + |
| 54 | + # service_name is the identifier used in trace exports, NewRelic, etc for the |
| 55 | + # entropy instance. |
23 | 56 | service_name: "entropy"
|
| 57 | + |
| 58 | + # enable_newrelic enables exporting NewRelic instrumentation in addition to the |
| 59 | + # OpenCensus. |
24 | 60 | enable_newrelic: false
|
| 61 | + |
| 62 | + # newrelic_api_key must be a valid NewRelic License key. |
25 | 63 | newrelic_api_key: ""
|
| 64 | + |
| 65 | + # enable_otel_agent enables the OpenTelemetry Exporter for both traces and views. |
26 | 66 | enable_otel_agent: false
|
| 67 | + |
| 68 | + # otel_agent_addr is the addr of OpenTelemetry Collector/Agent. This is where the |
| 69 | + # opene-telemetry exporter will publish the collected traces/views to. |
27 | 70 | otel_agent_addr: "localhost:8088"
|
0 commit comments