STEP 1. Drag and drop the Pie Chart widget from the left-hand side bar to get started.
STEP 2. Set the definitions for your Pie Chart in the right-hand sidebar.
Name & Description. Create a name and description.
Source. Select a data type.
If the data type chosen is metrics, specify the metric or desired PromQL in the Query field.
When creating a pie chart with metrics as the data type, the categories specified in the PromQL query appear in the Group By field automatically. Within the Group By field it is possible to reorder the categories by dragging and dropping.
Drag and drop categories from the Category field into the Stacking field, to stack by a particular category.
If the data type chosen is logs or spans, you will be directed to select an Aggregation.
+ ADD FILTER. [Optional] Add a filter to your pie chart.
As opposed to the dashboard filter in the left-hand sidebar which affects the entire dashboard, this filter only affects the widget.
The widget and dashboard filters operate in parallel to one another and intersect. If they negate one another, dashboard filters override widget filters.
Group By. Select up to two fields from the dropdown menu.
Stack By. Optionally select a field to stack the chart by. This shows you a second layer of data on the table.
Advanced. Select from the following advanced options:
Max slices in chart. Select the maximum number of slices to show in the pie chart.
Minimum % for size display. Set the minimum percentage required to display a slice
Unit. Select the units to display in the pie chart.
Color Scheme. Select the color scheme for your chart. You can choose between seven different color schemes.
Show Label. Select whether or not to show labels and which labels to show
Group name. Customize the group name
Show legend. Select whether or not to show the legend.
STEP 3. [Optional] If you want to save your dashboard for future use, click SAVE in the upper right hand corner.