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

guo Maxwell commented on CASSANDRA-20881:
-----------------------------------------

Can you describe the usage scenario of this virtual table?

> make LogbackMetrics work as a virtual table
> -------------------------------------------
>
>                 Key: CASSANDRA-20881
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20881
>             Project: Apache Cassandra
>          Issue Type: Bug
>          Components: Observability/Metrics, Virtual Tables
>            Reporter: Ling Mao
>            Assignee: Ling Mao
>            Priority: Normal
>             Fix For: 5.0.x
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When opening the following appender in the _*logback.xml*_
>  
> {code:java}
> <appender name="LogbackMetrics" 
> class="com.codahale.metrics.logback.InstrumentedAppender" />{code}
>  
> then restart the cluster, we will encounter the following exceptions:
>  
> {code:java}
> Caused by: java.lang.IllegalStateException: Unknown metric group: 
> LogbackMetrics
>  at 
> org.apache.cassandra.metrics.CassandraMetricsRegistry.verifyUnknownMetric(CassandraMetricsRegistry.java:277)
>  at 
> org.apache.cassandra.metrics.CassandraMetricsRegistry.register(CassandraMetricsRegistry.java:411)
>  at 
> {code}
> This patch makes LogbackMetrics work again as a virtual table. The preview 
> is: 
> {code:java}
> cqlsh:system_views> select * from system_metrics.logback_metrics_group ;
>  
>  name                                              | scope     | type  | value
> ---------------------------------------------------+-----------+-------+-------
>    org.apache.cassandra.metrics.LogbackMetrics.all | undefined | meter |  1433
>  org.apache.cassandra.metrics.LogbackMetrics.debug | undefined | meter |   940
>  org.apache.cassandra.metrics.LogbackMetrics.error | undefined | meter |     0
>   org.apache.cassandra.metrics.LogbackMetrics.info | undefined | meter |   483
>  org.apache.cassandra.metrics.LogbackMetrics.trace | undefined | meter |     0
>   org.apache.cassandra.metrics.LogbackMetrics.warn | undefined | meter |    10
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to