Explorar el Código

Pass thanosEnabled on clusterInfo result.

Matt Bolt hace 5 años
padre
commit
60434a2dfd
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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)
 	writeReportingFlags(data)
 
 
 	// Include Thanos Offset Duration if Applicable
 	// Include Thanos Offset Duration if Applicable
+	data["thanosEnabled"] = fmt.Sprintf("%t", thanos.IsEnabled())
 	if thanos.IsEnabled() {
 	if thanos.IsEnabled() {
 		data["thanosOffset"] = thanos.Offset()
 		data["thanosOffset"] = thanos.Offset()
 	}
 	}