Просмотр исходного кода

Merge pull request #526 from kubecost/bolt/clusterinfo-thanos-enabled

ThanosEnabled on ClusterInfo
Matt Bolt 5 лет назад
Родитель
Сommit
7e5af119f7
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      pkg/costmodel/router.go

+ 1 - 0
pkg/costmodel/router.go

@@ -637,6 +637,7 @@ func (p *Accesses) ClusterInfo(w http.ResponseWriter, r *http.Request, ps httpro
 	writeReportingFlags(data)
 
 	// Include Thanos Offset Duration if Applicable
+	data["thanosEnabled"] = fmt.Sprintf("%t", thanos.IsEnabled())
 	if thanos.IsEnabled() {
 		data["thanosOffset"] = thanos.Offset()
 	}