generated from rmcguire/go-server-with-otel
implement econet exporter
This commit is contained in:
+9
-3
@@ -1,14 +1,20 @@
|
||||
# App Config
|
||||
APP_NAME="go-server-with-otel"
|
||||
APP_LOG_LEVEL=trace ## For testing only
|
||||
APP_NAME="econet-exporter"
|
||||
APP_LOG_LEVEL=info ## trace, debug, info, warn, error
|
||||
APP_LOG_FORMAT=console ## console, json
|
||||
APP_LOG_TIME_FORMAT=long ## long, short, unix, rfc3339, off
|
||||
|
||||
# Econet exporter config
|
||||
ECONET_EMAIL="you@example.com"
|
||||
ECONET_PASSWORD="changeme"
|
||||
ECONET_COST_PER_KWH=0.12 ## US dollars per kWh (0.12 = 12 cents), for econet_energy_cost_dollars
|
||||
ECONET_USAGE_INTERVAL=5m ## how often to poll energy/water usage history
|
||||
|
||||
# App OTEL Config
|
||||
APP_OTEL_STDOUT_ENABLED=true ## For testing only
|
||||
APP_OTEL_METRIC_INTERVAL_SECS=15
|
||||
|
||||
# OTEL SDK Config
|
||||
OTEL_EXPORTER_OTLP_ENDPOINT="otel-collector.otel.svc.cluster.local" # Set to your otel collector
|
||||
OTEL_SERVICE_NAME="go-server-with-otel"
|
||||
OTEL_SERVICE_NAME="econet-exporter"
|
||||
OTEL_RESOURCE_ATTRIBUTES="env=development,service.version=(devel)"
|
||||
|
||||
Reference in New Issue
Block a user