[ https://issues.apache.org/jira/browse/SOLR-10654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17865249#comment-17865249 ]
Chris M. Hostetter commented on SOLR-10654: ------------------------------------------- Unrelated to the test issues – I'm no prometheus expert, but this can't possibly be correct... {noformat} $ curl -sS -I 'http://localhost:8983/solr/admin/metrics?wt=prometheus' | grep ^Content-Type Content-Type: application/json;charset=utf-8 {noformat} I suspect PrometheusResponseWriter needs to override the the {{getContentType}} method? > Expose Metrics in Prometheus format DIRECTLY from Solr > ------------------------------------------------------ > > Key: SOLR-10654 > URL: https://issues.apache.org/jira/browse/SOLR-10654 > Project: Solr > Issue Type: Improvement > Components: metrics > Reporter: Keith Laban > Priority: Major > Attachments: prometheus_metrics.txt > > Time Spent: 7h 20m > Remaining Estimate: 0h > > Expose metrics via a `wt=prometheus` response type. > Example scape_config in prometheus.yml: > {code:java} > scrape_configs: > - job_name: 'solr' > metrics_path: '/solr/admin/metrics' > params: > wt: ["prometheus"] > static_configs: > - targets: ['localhost:8983'] > {code} > [Rationale|https://issues.apache.org/jira/browse/SOLR-11795?focusedCommentId=17261423&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17261423] > for having this despite the "Prometheus Exporter". They have different > strengths and weaknesses. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org