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

Andrzej Bialecki  commented on SOLR-10654:
------------------------------------------

Does Prometheus use a pull or push model for collecting metrics from monitored 
systems? Metrics API uses {{SolrMetricReporter}} subclasses for pushing metrics 
to external systems using custom formats, so that would be the way to go when 
using push model.

Writer types are a kind of global thing, ie. should not be specific to a 
particular handler.

> Expose Metrics in Prometheus format
> -----------------------------------
>
>                 Key: SOLR-10654
>                 URL: https://issues.apache.org/jira/browse/SOLR-10654
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: metrics
>            Reporter: Keith Laban
>
> Expose metrics via a `wt=prometheus` response type.
> Example scape_config in prometheus.yml:
> {code}
> scrape_configs:
>   - job_name: 'solr'
>     metrics_path: '/solr/admin/metrics'
>     params:
>       wt: ["prometheus"]
>     static_configs:
>       - targets: ['localhost:8983']
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to