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

Chris Lohfink commented on CASSANDRA-15194:
-------------------------------------------

My thought here was to do:

* add units top the column names (max_ms, median_ms, disk_usage_mib)
* 0.000 precision
* have a rounding threshold, with our decaying algorithms they dont really go 
to zero as nothing occurs within the alpha period. They just get exponentially 
small. So if for latencies it goes below 1us and we displaying in ms with 0.000 
precision we just display zero. And report space in MiB, with 0.000 precision, 
but not zeroing out if below, just show as 0.001 since we dont want to 
misrepresent in that direction.

> Improve readability of Table metrics Virtual tables units
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-15194
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15194
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Feature/Virtual Tables
>            Reporter: Jon Haddad
>            Assignee: Chris Lohfink
>            Priority: Normal
>
> I just noticed this strange output in the coordinator_reads output::
> {code}
> cqlsh:system_views> select * from coordinator_reads ;
>  count | keyspace_name      | table_name                     | 99th | max | 
> median | per_second
> -------+--------------------+--------------------------------+------+-----+--------+------------
>   7573 |         tlp_stress |                       keyvalue |    0 |   0 |   
>    0 | 2.2375e-16
>   6076 |         tlp_stress |                  random_access |    0 |   0 |   
>    0 | 7.4126e-12
>    390 |         tlp_stress |                sensor_data_udt |    0 |   0 |   
>    0 | 1.7721e-64
>     30 |             system |                          local |    0 |   0 |   
>    0 |   0.006406
>     11 |      system_schema |                        columns |    0 |   0 |   
>    0 | 1.1192e-16
>     11 |      system_schema |                        indexes |    0 |   0 |   
>    0 | 1.1192e-16
>     11 |      system_schema |                         tables |    0 |   0 |   
>    0 | 1.1192e-16
>     11 |      system_schema |                          views |    0 |   0 |   
>    0 | 1.1192e-16
> {code}
> cc [~cnlwsu]
> btw I realize the output is technically correct, but it's not very readable.  
> For practical purposes this should just say 0.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to