Skip to content

Commit

Permalink
Do not return metrics for liveness probe (#694)
Browse files Browse the repository at this point in the history
Fixes #693
  • Loading branch information
HoustonPutman committed Apr 3, 2024
1 parent 106fdfa commit 73cffd0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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
9 changes: 8 additions & 1 deletion helm/solr-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,19 @@ annotations:
- name: Github PR
url: https://github.com/apache/solr-operator/pull/648
- kind: fixed
description: SolrCloud scaling is now safe when using persistent storage with a 'Delete' reclaim policy
description: SolrCloud scaling is now safe when using persistent storage with a 'Delete' reclaim policy
links:
- name: Github Issue
url: https://github.com/apache/solr-operator/issues/688
- name: Github PR
url: https://github.com/apache/solr-operator/pull/689
- kind: fixed
description: SolrPrometheusExporter no longer fails liveness probes when the SolrCloud is too large
links:
- name: Github Issue
url: https://github.com/apache/solr-operator/issues/693
- name: Github PR
url: https://github.com/apache/solr-operator/pull/694
artifacthub.io/images: |
- name: solr-operator
image: apache/solr-operator:v0.8.1-prerelease
Expand Down

0 comments on commit 73cffd0

Please sign in to comment.