generated from rmcguire/go-server-with-otel
update values
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ hull:
|
||||
# Custom app config
|
||||
# NOTE: Prefer supplying econetPassword via the ECONET_PASSWORD env var
|
||||
econetEmail: ""
|
||||
costPerKWH: 0.0
|
||||
costPerKWH: 0.19
|
||||
usageInterval: 5m
|
||||
# go-app config
|
||||
name: econet-exporter
|
||||
|
||||
@@ -25,7 +25,7 @@ type ServiceConfig struct {
|
||||
// CostPerKWH is the electricity price in US dollars per kWh (e.g. 0.18
|
||||
// means 18 cents/kWh, NOT 18). It derives the econet_energy_cost_dollars
|
||||
// metric from kWh energy usage.
|
||||
CostPerKWH float64 `yaml:"costPerKWH" json:"costPerKWH,omitempty" env:"ECONET_COST_PER_KWH"`
|
||||
CostPerKWH float64 `yaml:"costPerKWH" json:"costPerKWH,omitempty" env:"ECONET_COST_PER_KWH" default:"0.19"`
|
||||
|
||||
// UsageInterval controls how often energy/water usage history is polled.
|
||||
UsageInterval time.Duration `yaml:"usageInterval" json:"usageInterval,omitempty" env:"ECONET_USAGE_INTERVAL"`
|
||||
|
||||
Reference in New Issue
Block a user