Browse Source

Pass thanosEnabled on clusterInfo result.

Matt Bolt 5 years ago
parent
commit
60434a2dfd
1 changed files with 1 additions and 0 deletions
  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()
 	}