Skip to content

Allow changing the livenessPrope settings for prometheus exporter #282

@benediktarnold

Description

@benediktarnold

Hi!

My prometheus exporter pod was constantly restarting because the liveness probe timed out. I've noticed a high cpu and memory usage on the exporter pod as well even though I'm only scraping a 3 node solr cluster. Since #83 does not allow to change the liveness probe settings on SolrPrometheusExporter resources, I've deployed the pod manually with a much less aggressive liveness probe configuration like:

    livenessProbe:
      failureThreshold: 3
      httpGet:
        path: /metrics
        port: 8080
        scheme: HTTP
      initialDelaySeconds: 20
      periodSeconds: 30
      successThreshold: 1
      timeoutSeconds: 5

With that setting the CPU and memory usage decreased a lot. Please see the attached grafana screenshot of the cpu and memory usage of the prometheus exporter pod. Green is the pod deployed with SolrPrometheusExporter and orange is the pod I've deployed manually with the above settings.

Bildschirmfoto 2021-07-09 um 13 10 25

Please allow to overwrite livenessProbe settings on SolrPrometheusExporter resources.

Keep up the good work and thanks very much!
Ben

Metadata

Metadata

Assignees

No one assigned

    Labels

    custom kube optionsAdding options related to customizing parts of the default Kubernetes resources.metrics

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions