Skip to content

Commit 196bf50

Browse files
committed
2525 spark metrics independs on prometheus
Signed-off-by: Hossein Torabi<blcksrx@pm.me>
1 parent e071e5f commit 196bf50

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/util/sparkapplication.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,13 @@ func HasPrometheusConfigFile(app *v1beta2.SparkApplication) bool {
251251

252252
// HasPrometheusConfig returns if Prometheus monitoring defines metricsProperties in the spec.
253253
func HasMetricsProperties(app *v1beta2.SparkApplication) bool {
254-
return PrometheusMonitoringEnabled(app) &&
255-
app.Spec.Monitoring.MetricsProperties != nil &&
254+
return app.Spec.Monitoring.MetricsProperties != nil &&
256255
*app.Spec.Monitoring.MetricsProperties != ""
257256
}
258257

259258
// HasPrometheusConfigFile returns if Monitoring defines metricsPropertiesFile in the spec.
260259
func HasMetricsPropertiesFile(app *v1beta2.SparkApplication) bool {
261-
return PrometheusMonitoringEnabled(app) &&
262-
app.Spec.Monitoring.MetricsPropertiesFile != nil &&
260+
return app.Spec.Monitoring.MetricsPropertiesFile != nil &&
263261
*app.Spec.Monitoring.MetricsPropertiesFile != ""
264262
}
265263

0 commit comments

Comments
 (0)