By default, Explorer reports display as bar charts within the
cluster management console. You can also
create custom charts to show the same data as a pie, area, line, or table chart. Currently, IBM® Spectrum Symphony provides one Explorer
report: the Charge Back chart. This topic describes how to customize the Charge Back chart to show
the data in pie chart format.
Before you begin
To work with and manage (create, edit, or delete) Explorer reports, you must have EXPLORER
permission.
Procedure
-
From the cluster management console,
select .
-
Provide a name for your custom chart.
For example, to create a pie chart, call your custom chart My Charge Back Pie
Chart.
-
From the Data Source list, select a data source for your chart.
Data sources are automatically created at installation by the installer, and are defined in the
$EGO_CONFDIR/../../explorer/config/config.json file.
-
From the Index list, select an Elasticsearch database index name for
your chart.
Currently, the data source contains only one index:
ibm-symphony-report-charge-back, which stores aggregated charge back data for
the Charge Back chart.
-
Select the dimensions for your chart.
Create a chart showing charge back values by resource group and by consumer, by selecting
resource_group and consumer_name.
-
Provide a label for each dimension by modifying the Name in the chart
values for each dimension, and selecting Add for each.
For example, specify Resource Group and Consumer
Name for the Name in the chart values, and select
Add for each.
-
Specify charge back rate calculation options by selecting a measurement and an aggregation
option, and provide a label for the measurement by modifying the Name in the
chart value, and selecting Add.
For example, select the chargeback_value measure, and the
Sum aggregation options to calculate the value of the charge back rate for
the chart. Specify Total Charge Back Value for the Name in the
chart value, and select Add.
-
Specify how filtering options for the chart will display by specifying selection types and
filter display names from the Filters section.
For example:
- To show a filter by cluster name in the chart, select cluster_name with
Multiple Selection as the selection type, and specify Cluster
Name as the display name.
- To show a filter by date and time range, select event_time with
Single Selection as the selection type, specify Date and Time
Range as the display name, and select Relative Time of past 7
days.
-
Click Next to see a preview of your custom chart.
-
Select a chart type (Pie, Bar,
Area, Line, or Table) to best
display your data.
For example, select Pie to show the data as a pie chart.
Examine the preview to ensure that it meets your requirements; return to the previous screen to
make any modifications.
-
When you are satisfied with your new custom chart, select a category where your chart will be
stored.
-
Click Save.
Results
Your new custom chart is now available under the chosen category in the page of the cluster management console.
What to do next
You can now create a custom dashboard that contains this custom chart.