Skip to content

Commit

Permalink
Do not return metrics for liveness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
HoustonPutman committed Mar 25, 2024
1 parent ec51811 commit 308425f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controllers/util/prometheus_exporter_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ func GenerateSolrPrometheusExporterDeployment(solrPrometheusExporter *solr.SolrP
defaultProbeHandler := corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Scheme: corev1.URISchemeHTTP,
Path: "/metrics",
Port: intstr.FromInt(SolrMetricsPort),
// TODO: When 9.0 is the minimum supported version, this can be "/-/healthy"
Path: "/metrics?names[]=",
Port: intstr.FromInt(SolrMetricsPort),
},
}

Expand Down

0 comments on commit 308425f

Please sign in to comment.