Commit 2cd133a7 authored by John Jarvis's avatar John Jarvis

Use GRAFANA_API_KEY

parent 7031d1ad
Pipeline #42476717 passed with stage
in 1 minute and 5 seconds
......@@ -102,7 +102,7 @@ func ReadConfig(f string, d bool) (*Config, error) {
cfg.APITokens.GitLab = os.Getenv("GITLAB_API_TOKEN")
}
if cfg.APITokens.Grafana == "" {
cfg.APITokens.Grafana = os.Getenv("GRAFANA_API_TOKEN")
cfg.APITokens.Grafana = os.Getenv("GRAFANA_API_KEY")
}
if cfg.APITokens.PagerDuty == "" {
cfg.APITokens.PagerDuty = os.Getenv("PAGER_DUTY_TOKEN")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment