You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2017/03/09 13:42:37 UTC

[jira] [Updated] (SOLR-10247) Support non-numeric metrics

     [ https://issues.apache.org/jira/browse/SOLR-10247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrzej Bialecki  updated SOLR-10247:
-------------------------------------
    Attachment: SOLR-10247.patch

Initial patch. Some classes have been converted to use the new style for Gauge registration eg. {{SolrIndexWriter}}. See {{SolrCore.initializeMetrics}} for an example of non-numeric registrations.

Also, I added the ability to produce a much more compact NamedList format in {{MetricUtils}}. We should consider using it by default, although it's not back-compatible with the format in 6x.

> Support non-numeric metrics
> ---------------------------
>
>                 Key: SOLR-10247
>                 URL: https://issues.apache.org/jira/browse/SOLR-10247
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: metrics
>            Reporter: Andrzej Bialecki 
>            Assignee: Andrzej Bialecki 
>             Fix For: 6.5, master (7.0)
>
>         Attachments: SOLR-10247.patch
>
>
> Metrics API currently supports only numeric values. However, it's useful also to report non-numeric values such as eg. version, disk type, component state, some system properties, etc.
> Codahale {{Gauge<T>}} metric type can be used for this purpose, and convenience methods can be added to {{SolrMetricManager}} to make it easier to use.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org