• Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4, 7.0
    • Component/s: metrics
    • Labels:


      Following on from a discussion on the mailing list:

      It would be good to make Solr play more nicely with existing devops monitoring systems, such as Graphite or Ganglia. Stats monitoring at the moment is poll-only, either via JMX or through the admin stats page. I'd like to refactor things a bit to make this more pluggable.

      This patch is a start. It adds a new interface, InstrumentedBean, which extends SolrInfoMBean to return a [Metrics] MetricRegistry, and a couple of MetricReporters (which basically just duplicate the JMX and admin page reporting that's there at the moment, but which should be more extensible). The patch includes a change to RequestHandlerBase showing how this could work. The idea would be to eventually replace the getStatistics() call on SolrInfoMBean with this instead.

      The next step would be to allow more MetricReporters to be defined in solrconfig.xml. The Metrics library comes with ganglia and graphite reporting modules, and we can add contrib plugins for both of those.

      There's some more general cleanup that could be done around SolrInfoMBean (we've got two plugin handlers at /mbeans and /plugins that basically do the same thing, and the beans themselves have some weirdly inconsistent data on them - getVersion() returns different things for different impls, and getSource() seems pretty useless), but maybe that's for another issue.


        1. SOLR-4735.patch
          47 kB
          Alan Woodward
        2. SOLR-4735.patch
          52 kB
          Alan Woodward
        3. SOLR-4735.patch
          53 kB
          Alan Woodward
        4. SOLR-4735.patch
          55 kB
          Christine Poerschke
        5. screenshot-2.png
          425 kB
          Andrzej Bialecki
        6. SOLR-4735.patch
          181 kB
          Andrzej Bialecki
        7. SOLR-4735.patch
          222 kB
          Andrzej Bialecki

          Issue Links



              • Assignee:
                ab Andrzej Bialecki
                romseygeek Alan Woodward
              • Votes:
                8 Vote for this issue
                28 Start watching this issue


                • Created:

                  Time Tracking

                  Original Estimate - Not Specified
                  Not Specified
                  Remaining Estimate - 0h
                  Time Spent - 20m