If the data type chosen is metrics, specify the metric or desired PromQL in the Query field. Use free text to search for a metric of your choice. As you do so, all relevant metrics will appear. Hover over any metric to view its system-generated metadata labels. Hover over a label to see its values.
When creating a pie chart with metrics as the data type, the categories specified in the PromQL query appear automatically in the Group By field. 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 the 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.