Create a Graph to Visualize Partitioned Statistic Values
Create the following sheet metadata file in /usr/lib/webui/analytics/sheets/site/
and then restart the webui/server:default
service:
{ "$schema": "file:///analytics-import.schema.json", "v1": { "groups": [ { "description": "util2 reads, writes, and errors partitioned by resource or operation", "uniqueName": "util2 partitioned statistics Group", "visualizations": [ "util2 operations summed", "util2 operations not summed", "util2 errors" ] } ], "sections": [ { "groups": [ "util2 partitioned statistics Group" ], "uniqueName": "util2 partitioned statistics Section" } ], "sheets": [ { "description": "Partitioned statistics", "sections": [ "util2 partitioned statistics Section" ], "tags": [ "data_attach", "partitions" ], "uniqueName": "util2 partitioned statistics" } ], "visualizations": [ { "description": "Sum of reads and writes for each resource", "ssids": [ "//:class.app/util2//:stat.activity" ], "style": "time-series", "uniqueName": "util2 operations summed" }, { "description": "reads and writes for each resource", "ssids": [ "//:class.app/util2//:stat.activity//:part.type(reads,writes,sum=false)" ], "style": "time-series", "uniqueName": "util2 operations not summed" }, { "description": "util2 error counts", "ssids": [ "//:class.app/util2//:stat.errors" ], "style": "time-series", "uniqueName": "util2 errors" } ] } }
The sheet defined in this file includes two visualizations to display values of the activity
statistic so that you can compare the results. You probably will define a single visualization for each statistic that you think will be most useful to most administrators. Administrators can use the System Web Interface to change the visualization if necessary.
All three visualizations defined in this metadata file have an inst
choice on the partitions list. The visualization for //:class.app/util2//:stat.activity
also has a type
choice. This information comes from the mapping file.
In the first activity
visualization ("operations summed"), if no partition is selected, the graph shows a single line labeled "reads or writes" that represents the sum of all reads and writes from any resource.
In the second activity
visualization ("operations not summed"), if no partition is selected, the graph shows two lines. The line labeled "reads" is the sum of all reads performed by any resource; the line labeled "writes" is the sum of all writes performed by any resource. The first activity
visualization shows this same display if the user selects type
from the partitions list.
The following figure shows both activity
visualizations when inst
is selected from the partitions list. In the first visualization, the three lines represent the sum of all reads and writes from each resource. In the second visualization, the six lines represent the number of reads from each resource and the number of writes from each resource. Looking back at the sheet metadata file, the reads and writes are summed by default. Specifying sum=false
effectively resulted in partitioning by both resource and data type at the same time.
Graph Showing Statistics Partitioned by Resource
