Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10654

Expose Metrics in Prometheus format DIRECTLY from Solr

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.7
    • metrics

    Description

      Expose metrics via a `wt=prometheus` response type.

      Example scape_config in prometheus.yml:

      scrape_configs:
      
        - job_name: 'solr'
      
          metrics_path: '/solr/admin/metrics'
      
          params:
            wt: ["prometheus"]
      
          static_configs:
            - targets: ['localhost:8983']
      
      

      Rationale for having this despite the "Prometheus Exporter".  They have different strengths and weaknesses.

      Attachments

        1. prometheus_metrics.txt
          188 kB
          Matthew Biscocho

        Issue Links

          Activity

            People

              Unassigned Unassigned
              k317h Keith Laban
              Votes:
              0 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 9.5h
                  9.5h