-
Notifications
You must be signed in to change notification settings - Fork 2
/
.env.example
33 lines (31 loc) · 1.5 KB
/
.env.example
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
#### IC WebSocket Gateway
# the url of the IC replica/subnet
IC_URL=https://icp0.io
# gateway to canister polling interval in milliseconds
POLLING_INTERVAL=100
# minimum interval between incoming messages in milliseconds
MIN_INCOMING_INTERVAL=100
# the public port where the gateway will listen
LISTEN_PORT=443
# the public domain name of the server
DOMAIN_NAME=icws.io
# the log configuration (can also be empty). See README.md for more details
RUST_LOG_FILE=ic_websocket_gateway=trace
RUST_LOG_STDOUT=ic_websocket_gateway=debug
## TELEMETRY CONFIG ##
# the telemetry collector endpoint (leave empty to disable telemetry)
# if you're running the gateway from the docker-compose.yml file, you can use `otlp_collector` as the hostname
OPENTELEMETRY_COLLECTOR_ENDPOINT=grpc://otlp_collector:4317
# configure the telemetry trace level
RUST_LOG_TELEMETRY=ic_websocket_gateway=trace
# the info necessary to relay the telemetry traces to Grafana Tempo
# find how to set the following variables at:
# https://medium.com/@rasnaut/the-easiest-way-to-send-traces-from-the-rust-app-to-grafana-cloud-7a66baf2e45b
# set this to the Grafana Tempo endpoint
GRAFANA_TEMPO_ENDPOINT=https://your_tempo_endpoint
# Set this to the access token obtained from Grafana Tempo
GRAFANA_TEMPO_ACCESS_TOKEN=your_tempo_basic_auth_token
GRAFANA_TEMPO_LOCAL=false
GRAFANA_PROMETHEUS_ENDPOINT=https://your_grafana_prometheus_cloud_enpoint
GRAFANA_PROMETHEUS_USERNAME=your_grafana_prometheus_cloud_username
GRAFANA_PROMETHEUS_TOKEN=your_grafana_prometheus_cloud_token