apache / apache/solr-operator

Support new metrics format for 10.0

Open
#820 0 comments 1 reaction 0 assignees View on GitHub
enhancement metrics
Dominant language
Go
Stars
283
Forks
148
PR merge metrics
No merged PRs in 30d

Description

In Solr 10.0, released today, the Prometheus exporter is gone. Instead each solr node exposes prometheus-format metrics individually on `/solr/admin/metrics`.

Users on Solr 9.x should still be able to run PrometheusExporter as before which will work with Solr 9 but not solr 10.

Users moving to Solr 10, who want metrics, should upgrade to a new Solr Operator which supports configuring Prometheus to scrape solr endpoints intead of deploying solr-exporter.

The `SolrClouds` CRD and thus also the `solr` helm chart should make metrics exporting simple to use OOTB
* Default to open `/solr/admin/metrics` endpoints, document how to configure a BasicAuth user with access to this endpoint
* Add a new CRD key to enable prometheus ServiceMonitor pointing to the metrics endpoint, and make this key exposed as helm value
* Make the operator manage these ServiceMonitors

Users who want to push metrics to OTEL collector over OTLP can probably do this without custom operator support, by simply setting some environment variables to configure the OTEL SDK. Point users to relevant Solr documentation for this.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the SolrClouds CRD, the solr Helm chart, and the operator code that reconciles ServiceMonitors. Review how the operator currently configures PrometheusExporter for Solr 9.x, then verify the Solr 10 metrics endpoint and relevant BasicAuth documentation. Done means the CRD and Helm values expose the metrics and ServiceMonitor configuration, the operator manages the resulting ServiceMonitors, and existing Solr 9.x behavior remains supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, helm, kubernetes, prometheus
Domain
devops, infrastructure, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.