|
@@ -341,7 +341,7 @@ func (a *Accesses) AggregateCostModel(w http.ResponseWriter, r *http.Request, ps
|
|
|
}
|
|
}
|
|
|
klog.Infof("REMOTE ENABLED: %t", remoteEnabled)
|
|
klog.Infof("REMOTE ENABLED: %t", remoteEnabled)
|
|
|
|
|
|
|
|
- // Use Thanos Client if it exists and remote != false
|
|
|
|
|
|
|
+ // Use Thanos Client if it exists (enabled) and remote flag set
|
|
|
var pClient prometheusClient.Client
|
|
var pClient prometheusClient.Client
|
|
|
if remote != "false" && a.ThanosClient != nil {
|
|
if remote != "false" && a.ThanosClient != nil {
|
|
|
pClient = a.ThanosClient
|
|
pClient = a.ThanosClient
|
|
@@ -421,7 +421,7 @@ func (a *Accesses) CostDataModelRange(w http.ResponseWriter, r *http.Request, ps
|
|
|
remoteEnabled = true
|
|
remoteEnabled = true
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // Use Thanos Client if it exists and remote != false
|
|
|
|
|
|
|
+ // Use Thanos Client if it exists (enabled) and remote flag set
|
|
|
var pClient prometheusClient.Client
|
|
var pClient prometheusClient.Client
|
|
|
if remote != "false" && a.ThanosClient != nil {
|
|
if remote != "false" && a.ThanosClient != nil {
|
|
|
pClient = a.ThanosClient
|
|
pClient = a.ThanosClient
|