[ https://issues.apache.org/jira/browse/SOLR-15397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17340697#comment-17340697 ]
Jan Høydahl edited comment on SOLR-15397 at 5/7/21, 9:44 AM: ------------------------------------------------------------- Just committed a fix to the [PR branch|https://github.com/apache/solr/pull/116], that makes /admin/zookeeper/status return a response even if no ZK's are live (it will be status=RED, and OK=false for each node). Doing this, this handler can be used to proxy monitoring of ZK. And it is also nice that the Admin UI will actually show what's wrong instead of showing a ZK exception. was (Author: janhoy): Just committed a fix to the PR branch, that makes /admin/zookeeper/status return a response even if no ZK's are live (it will be status=RED, and OK=false for each node). Doing this, this handler can be used to proxy monitoring of ZK. And it is also nice that the Admin UI will actually show what's wrong instead of showing a ZK exception. > Expose zookeeper status in the exporter > --------------------------------------- > > Key: SOLR-15397 > URL: https://issues.apache.org/jira/browse/SOLR-15397 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) > Components: contrib - prometheus-exporter > Reporter: Jan Høydahl > Assignee: Jan Høydahl > Priority: Major > Attachments: Skjermbilde 2021-05-06 kl. 16.48.37.png, Skjermbilde > 2021-05-06 kl. 16.58.42.png > > > This issue will add these prometheus metrics to solr exporter: > {{solr_zookeeper_ensemble_size}}, {{solr_zookeeper_nodestatus}}, > {{solr_zookeeper_status}} > {code:java} > # HELP solr_zookeeper_nodestatus See following URL: > https://solr.apache.org/guide/cloud-screens.html#zk-status-view > # TYPE solr_zookeeper_nodestatus gauge > solr_zookeeper_nodestatus{host="zoo1:2181",zk_host="zoo1:2181,zoo2:2181,zoo3:2181",} > 1.0 > solr_zookeeper_nodestatus{host="zoo2:2181",zk_host="zoo1:2181,zoo2:2181,zoo3:2181",} > 1.0 > solr_zookeeper_nodestatus{host="zoo3:2181",zk_host="zoo1:2181,zoo2:2181,zoo3:2181",} > 0.0 > # HELP solr_zookeeper_status See following URL: > https://solr.apache.org/guide/cloud-screens.html#zk-status-view > # TYPE solr_zookeeper_status gauge > solr_zookeeper_status{status="yellow",zk_host="zoo1:2181,zoo2:2181,zoo3:2181",} > 0.0 > # HELP solr_zookeeper_ensemble_size See following URL: > https://solr.apache.org/guide/cloud-screens.html#zk-status-view > # TYPE solr_zookeeper_ensemble_size gauge > solr_zookeeper_ensemble_size{mode="ensemble",zk_host="zoo1:2181,zoo2:2181,zoo3:2181",} > 3.0 > {code} > The data is fetched and parsed from Solr's /admin/zookeeper/status endpoint. > Can be used for alerting on earlier ZK versions that do not natively support > prometheus, or if you don't want to setup separate ZK monitoring. Example > Grafana dashboard tile: > !Skjermbilde 2021-05-06 kl. 16.58.42.png! > I plan to add this to the new solr cluster row next to the solr live-nodes > graph: > !Skjermbilde 2021-05-06 kl. 16.48.37.png|width=800! -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org