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

Matthew Biscocho commented on SOLR-17853:
-----------------------------------------

[~dsmiley] So I was doing digging on the SolrInfoMBeanHandler and the way it 
was used for the "Plugins / Stats" was with very custom components to place 
these Dropwizard metrics in special Map objects to work and fit a response to 
be read from the UI to show metrics on that tab. Based on this [ref-guide 
page|https://solr.apache.org/guide/solr/latest/deployment-guide/mbean-request-handler.html]
 and looking at the class, the handler needs to change significantly. Some of 
the parameters need to be changed to fix this. I can change this endpoint to 
wrap around Prometheus formatted metrics into a SimpleOrderedMap that 
structures by category but that doesn't make sense from a prometheus view point 
because it doesn't structure with a hierarchy structure like dropwizard but 
uses attributes instead. I'm also a bit against wrapping Prometheus metrics 
into a map just to support this because we are going to be writing a custom 
implementation and tightly coupling components to work with API making things 
break easily like if we want to change a category name. Also I don't think the 
term MBean makes sense here anymore but I don't know much about JMX or how/if 
this was used with it? What if we remove this endpoint and just have the UI 
call the /admin/metrics endpoint and then structure the way the page looks like 
then (Not sure how easy or hard this would be on the UI to change)? Metrics 
should be seen from the endpoint anyways IMO instead of making multiple APIs 
just to support reading different formats.

> Migrate SolrInfoMBeanHandler stats to OTEL for Admin UI
> -------------------------------------------------------
>
>                 Key: SOLR-17853
>                 URL: https://issues.apache.org/jira/browse/SOLR-17853
>             Project: Solr
>          Issue Type: Sub-task
>            Reporter: Matthew Biscocho
>            Priority: Major
>         Attachments: Screenshot 2025-08-13 at 10.47.29 AM.png
>
>
> The /solr/\{collection}/admin/mbeans?stats=true endpoint converts Dropwizard 
> metrics into a JSON formatted output. This response is used to populate the 
> "Plugins / Stats" page on the admin UI for a core.
> This needs to somehow be bridged in with OTEL and readable for the Admin UI.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to