Ver Fonte

BYO prometheus broken links fixed

Signed-off-by: Jashwanth Kumar K <101602768+jash2105@users.noreply.github.com>
Jashwanth Kumar K há 2 anos atrás
pai
commit
a568b5ad5e
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 2 2
      pkg/prom/diagnostics.go
  2. 1 1
      pkg/prom/helpers.go

+ 2 - 2
pkg/prom/diagnostics.go

@@ -54,7 +54,7 @@ const (
 	KSMAllocatableCPUCoresMetricID = "ksmAllocatableCpuCoresMetric"
 )
 
-const DocumentationBaseURL = "https://github.com/kubecost/docs/blob/master/diagnostics.md"
+const DocumentationBaseURL = "https://www.opencost.io/docs/"
 
 // diagnostic definitions mapping holds all of the diagnostic definitions that can be used for prometheus metrics diagnostics
 var diagnosticDefinitions map[string]*diagnosticDefinition = map[string]*diagnosticDefinition{
@@ -117,7 +117,7 @@ var diagnosticDefinitions map[string]*diagnosticDefinition = map[string]*diagnos
 		QueryFmt:    `absent_over_time(kubecost_container_cpu_usage_irate{%s}[5m] %s)`,
 		Label:       "Kubecost's CPU usage recording rule is set up",
 		Description: "If the 'kubecost_container_cpu_usage_irate' recording rule is not set up, Allocation pipeline build may put pressure on your Prometheus due to the use of a subquery.",
-		DocLink:     "https://docs.kubecost.com/install-and-configure/install/custom-prom",
+		DocLink:     "https://www.opencost.io/docs/installation/prometheus",
 	},
 	CAdvisorWorkingSetBytesMetricID: {
 		ID:          CAdvisorWorkingSetBytesMetricID,

+ 1 - 1
pkg/prom/helpers.go

@@ -11,7 +11,7 @@ import (
 	"gopkg.in/yaml.v2"
 )
 
-const PrometheusTroubleshootingURL = "http://docs.kubecost.com/custom-prom#troubleshoot"
+const PrometheusTroubleshootingURL = "https://gitbook.kubecost.com/v/1.0x/install-and-configure/install/custom-prom"
 
 // ScrapeConfig is the minimalized view of a prometheus scrape configuration
 type ScrapeConfig struct {