You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2020/10/28 17:30:04 UTC
[GitHub] [lucene-solr] megancarey commented on a change in pull request #2040: SOLR-14965 add overseer queue size metrics
megancarey commented on a change in pull request #2040:
URL: https://github.com/apache/lucene-solr/pull/2040#discussion_r513632682
##########
File path: solr/core/src/java/org/apache/solr/cloud/Overseer.java
##########
@@ -185,6 +190,9 @@ public ClusterStateUpdater(final ZkStateReader reader, final String myId, Stats
this.completedMap = getCompletedMap(zkClient);
this.myId = myId;
this.reader = reader;
+
+ registryName = SolrMetricManager.getRegistryName(SolrInfoBean.Group.overseer);
+ metricManager.registerGauge(null, registryName, () -> stateUpdateQueue.getZkStats().getQueueLength(), "overseer", true, "stateUpdateQueueSize", "queue");
Review comment:
@sigram Thanks for the feedback! Is there documentation around adding metrics that covers things like this?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org