Eli Johnes
Eli Johnes

Reputation: 351

Could not update solr-exporter config

I am using solr 8.4.1. We have a requirement to include solr metrics in Prometheus and we would like to update the solr exporter config file to match our requirement.But I could not find the Solr-exporter/Prometheus exporter directory structure in my solr instance. I thought it's bundled by default with solr versions 7.3 +.

Please let me know how to add solr exporter config in my solr instance.

Upvotes: 0

Views: 301

Answers (1)

MatsLindh
MatsLindh

Reputation: 52882

The prometheus exporter is bundled with solr 8.4.1; if it isn't in your installation you might have installed it from somewhere else. However, you can download the old 8.4.1 binaries (as always it's important to note; 8.4.1 is old and vulnerable to the log4j2 exploit, so if you haven't mitigated that, you should upgrade to a more recent version or make sure to upgrade log4j2 at least) and copy the prometheus exporter from that.

I just downloaded the 8.4.1 distribution and it's present:

SOLR-8.4.1
├───bin
│   └───init.d
├───contrib
│   ├───analysis-extras
│   │   ├───lib
│   │   └───lucene-libs
│   ├───clustering
│   │   └───lib
│   ├───dataimporthandler
│   ├───dataimporthandler-extras
│   │   └───lib
│   ├───extraction
│   │   └───lib
│   ├───jaegertracer-configurator
│   │   └───lib
│   ├───langid
│   │   └───lib
│   ├───ltr
│   ├───prometheus-exporter    <------
│   │   ├───bin
│   │   ├───conf
│   │   ├───lib
│   │   └───lucene-libs
│   └───velocity
│       └───lib

Upvotes: 0

Related Questions