Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
EVEREST-506 Dev config (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-grishchenko authored Oct 10, 2023
1 parent 104d52e commit d7f42e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ test-crosscover: ## Run tests and collect cross-package coverage informat
run: build ## Run binary
bin/percona-everest-backend

run-debug: build-debug ## Run binary
run-debug: build-debug ## Run binary
TELEMETRY_URL=https://check-dev.percona.com \
TELEMETRY_INTERVAL=30m \
bin/percona-everest-backend-debug

local-env-up: ## Start development environment
Expand Down
4 changes: 4 additions & 0 deletions cmd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ type EverestConfig struct {
DSN string `default:"postgres://admin:[email protected]:5432/postgres?sslmode=disable" envconfig:"DSN"`
HTTPPort int `default:"8080" envconfig:"HTTP_PORT"`
Verbose bool `default:"false" envconfig:"VERBOSE"`
// TelemetryURL Everest telemetry endpoint.
TelemetryURL string `default:"https://check.percona.com" envconfig:"TELEMETRY_URL"`
// TelemetryInterval Everest telemetry sending frequency.
TelemetryInterval string `default:"24h" envconfig:"TELEMETRY_INTERVAL"`
}

// ParseConfig parses env vars and fills EverestConfig.
Expand Down

0 comments on commit d7f42e0

Please sign in to comment.