Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for missing env. variables #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/setup/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ type CLI struct {
Organizations []string `short:"o" env:"TF_ORGANIZATIONS" placeholder:"ORG1,ORG2" help:"List of the Organization names to scrape from (Ommit to scrape all)."`
APIToken string `short:"t" env:"TF_API_TOKEN" help:"User token for autheticating with the API."`
APITokenFile *os.File `placeholder:"/path/to/file" help:"File containing user token for autheticating with the API."`
APIAddress string `placeholder:"https://app.terraform.io/" help:"Terraform API address to scrape metrics from."`
APIAddress string `placeholder:"https://app.terraform.io/" env:"TF_API_ADDRESS" help:"Terraform API address to scrape metrics from."`
APIInsecureSkipVerify bool `help:"Accept any certificate presented by the API."`
ListenAddress string `default:"0.0.0.0:9100" help:"Address to listen on for web interface and telemetry."`
ListenAddress string `default:"0.0.0.0:9100" env:"TF_LISTEN_ADDRESS" help:"Address to listen on for web interface and telemetry."`
LogLevel string `default:"info" enum:"debug,info,warn,error" help:"Only log messages with the given severity or above. One of: [${enum}]"`
LogFormat string `default:"logfmt" enum:"logfmt,json" help:"Output format of log messages. One of: [${enum}]"`
}
Expand Down