Class NodeValueFetcher
java.lang.Object
org.apache.solr.client.solrj.impl.NodeValueFetcher
This class is responsible for fetching metrics and other attributes from a given node in Solr
cluster. This is a helper class that is used by
SolrClientNodeStateProvider-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumVarious well known tags that can be fetched from a node -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractLabelValueFromLine(String line, String labelKey) static StringExtracts the metric name from a prometheus formatted metric:voidgetTags(Set<String> requestedTags, org.apache.solr.client.solrj.impl.SolrClientNodeStateProvider.RemoteCallCtx ctx)
-
Field Details
-
NODE
- See Also:
-
PORT
- See Also:
-
HOST
- See Also:
-
CORES
- See Also:
-
SYSPROP_PREFIX
- See Also:
-
tags
-
hostAndPortPattern
-
METRICS_PREFIX
- See Also:
-
-
Constructor Details
-
NodeValueFetcher
public NodeValueFetcher()
-
-
Method Details
-
getTags
-
extractMetricNameFromLine
Extracts the metric name from a prometheus formatted metric:- With labels: solr_metrics_core_requests_total{core="demo",...} 123.0 - Without labels: solr_metrics_core_requests_total 123.0 - With exemplars: solr_metrics_core_requests_total{core="demo"} 123.0 # {trace_id="abc123"} 2.0 1234567890 The sample inputs would return solr_metrics_core_requests_total
-
extractLabelValueFromLine
-