File tree 1 file changed +3
-5
lines changed
charts/k8s-monitoring/templates/features
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -167,16 +167,14 @@ cluster_metrics "feature" {
167
167
{ {- end -} }
168
168
169
169
{ {- if eq $destinationFound false } }
170
- { {- $msg := list " " (printf " %s is not a valid Prometheus data source for OpenCost." ) } }
170
+ { {- $msg := list " " (printf " The destination \" %s\" is not a Prometheus data source." $.Values.clusterMetrics.opencost.metricsSource) } }
171
+ { {- $msg = append $msg " OpenCost requires a Prometheus database to query where cluster metrics are stored." } }
172
+ { {- $msg = append $msg " " } }
171
173
{ {- $msg = append $msg " Please set:" } }
172
174
{ {- $msg = append $msg " clusterMetrics:" } }
173
175
{ {- $msg = append $msg " opencost:" } }
174
- { {- if eq (len $destinations ) 1 } }
175
- { {- $msg = append $msg (printf " metricsSource: %s" (index $destinations 0)) } }
176
- { {- else } }
177
176
{ {- $msg = append $msg " metricsSource: <metrics destination name>" } }
178
177
{ {- $msg = append $msg (printf " Where <metrics destination name> is one of %s" (include " english_list_or" $destinations )) } }
179
- { {- end } }
180
178
{ {- fail (join " \n " $msg ) } }
181
179
{ {- end -} }
182
180
{ {- end -} }
You can’t perform that action at this time.
0 commit comments