[ 
https://issues.apache.org/jira/browse/SOLR-12584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16826544#comment-16826544
 ] 

Dwane Hall commented on SOLR-12584:
-----------------------------------

Nice work [~sbillet]!

I can confirm this as working in Solr Cloud 7.6 as well.  Nice pickup this has 
made cluster monitoring somewhat challenging for us so this is a very welcome 
discovery! 

There looks to be some slight config changes required to the 
solr-exporter-config.xml from the defaults but authentication is definitely 
working :)

ERROR - 2019-04-26 09:48:23.921; 
org.apache.solr.prometheus.scraper.SolrScraper; 
net.thisptr.jackson.jq.exception.JsonQueryException: null cannot be parsed as a 
number (.cluster.collections | to_entries | .[] | . as $object | $object.key as 
$collection | $object.value.pullReplicas | tonumber as $value | \{("name"): 
"solr_collections_pull_replicas",("type"): "GAUGE",("help"): "See following 
URL: 
https://lucene.apache.org/solr/guide/collections-api.html#clusterstatus";,("label_names"):
 ["collection"],("label_values"): [$collection],("value"): $value}) 

> Add basic auth credentials configuration to the Solr exporter for 
> Prometheus/Grafana  
> --------------------------------------------------------------------------------------
>
>                 Key: SOLR-12584
>                 URL: https://issues.apache.org/jira/browse/SOLR-12584
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Authentication, metrics, security
>    Affects Versions: 7.3, 7.4
>            Reporter: Dwane Hall
>            Priority: Minor
>              Labels: authentication, metrics, security
>         Attachments: lucene-solr.patch
>
>
> The Solr exporter for Prometheus/Grafana provides a useful visual layer over 
> the solr metrics api for monitoring the state of a Solr cluster. Currently 
> this can not be configured and used on a secure Solr cluster with the Basic 
> Authentication plugin enabled. The exporter does not provide a mechanism to 
> configure/pass through basic auth credentials when SolrJ requests information 
> from the metrics api endpoints and would be a useful addition for Solr users 
> running a secure Solr instance.   



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to