Skip to content

Commit

Permalink
pkg/manifests: Correctly default telemeter URL
Browse files Browse the repository at this point in the history
  • Loading branch information
brancz committed Jan 24, 2020
1 parent 9f6d7ee commit 6c52119
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/manifests/config.go
Expand Up @@ -218,8 +218,14 @@ func (c *Config) applyDefaults() {
c.HTTPConfig = &HTTPConfig{}
}
if c.TelemeterClientConfig == nil {
c.TelemeterClientConfig = &TelemeterClientConfig{
TelemeterServerURL: "https://infogw.api.openshift.com/metrics/v1/receive",
if c.RemoteWrite {
c.TelemeterClientConfig = &TelemeterClientConfig{
TelemeterServerURL: "https://infogw.api.openshift.com/metrics/v1/receive",
}
} else {
c.TelemeterClientConfig = &TelemeterClientConfig{
TelemeterServerURL: "https://infogw.api.openshift.com/",
}
}
}
if c.K8sPrometheusAdapter == nil {
Expand Down

0 comments on commit 6c52119

Please sign in to comment.