[
https://issues.apache.org/jira/browse/SOLR-15572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17403122#comment-17403122
]
Andrzej Bialecki commented on SOLR-15572:
-----------------------------------------
This is a list of tight selection expressions that tries to strike a balance
between minimum amount of data exported and maximum usefulness:
{code:xml}
<!--
trim some of these expressions as needed if you don't care about
a particular group of metrics.
-->
<!-- Jetty -->
<str
name="expr">solr\.jetty:.*\.DefaultHandler\.(dispatches|.*-requests|.*xx-responses):count</str>
<!-- JVM -->
<str name="expr">solr\.jvm:(buffers|gc).*</str>
<str
name="expr">solr\.jvm:memory\.(heap|non-heap|pools)\.*\.usage</str>
<str name="expr">solr\.jvm:memory\.total</str>
<str
name="expr">solr\.jvm:os\..*(FileDescriptorCount|Load.*|Size|processCpuTime)</str>
<str name="expr">solr\.jvm:threads\..*count</str>
<!-- Node (CoreContainer) -->
<str name="expr">solr\.node:CONTAINER\.(cores|fs).*</str>
<!-- SolrCore -->
<str name="expr">solr\.core\..*:CORE\.fs\..*Space</str>
<str name="expr">solr\.core\..*:INDEX\.sizeInBytes</str>
<str
name="expr">solr\.core\..*:QUERY\./(select|get|export|stream|query|graph|sql)\..*requestTimes:(count|1minRate|5minRate|median_ms|meanRate|p75_ms|p95_ms|p99_ms)</str>
<str
name="expr">solr\.core\..*:QUERY\./(select|get|export|stream|query|graph|sql)\.totalTime</str>
<str
name="expr">solr\.core\..*:QUERY\./(select|get|export|stream|query|graph|sql)\..*rrors:(count!1minRate)</str>
<str name="expr">solr\.core\..*:SEARCHER\.searcher\..*Doc.*</str>
<str name="expr">solr\.core\..*:UPDATE\.updateHandler\..*</str>
<str name="expr">solr\core\..*:CACHE\..*</str>
{code}
This list completely removes the core ADMIN, REPLICATION and HIGHLIGHTER
metrics, and selects only the most common QUERY handlers.
I think that for the best back-compat experience we should use the list I
included in the previous comment, but I'd like to put this optimized list
somewhere, too. Any suggestions?
> Improve the default Prometheus exporter config performance
> ----------------------------------------------------------
>
> Key: SOLR-15572
> URL: https://issues.apache.org/jira/browse/SOLR-15572
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: contrib - prometheus-exporter
> Reporter: Andrzej Bialecki
> Assignee: Andrzej Bialecki
> Priority: Major
> Fix For: 8.10
>
> Attachments: SOLR-15572.patch
>
>
> Follow-up to SOLR-15564. Using {{expr}} parameters it's possible to very
> efficiently pick only the metrics we are interested in. This should
> drastically reduce the load on Solr nodes and on the exporter process.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]