Pie Chart
The Pie Chart panel displays how a metric’s values are distributed across categories. Use it to visualize proportions, compare categories, and highlight dominant contributors.
Add a Pie Chart panel
-
Open the dashboard where you want the panel.
-
Click Add Panel.
-
In Choose Visualization, select Pie Chart.
-
Build your query in Graph your data to return a metric and grouping field.
-
Enter a descriptive Title.
-
Click Save to add the panel.
Build queries (Graph your data)
The Graph your data section defines which metrics are displayed and how they are processed before visualization. These steps apply to most panel types in Kloudfuse.
-
Click Add Query to create a new query. Repeat to add multiple queries.
-
Click Select a metric to choose the metric name you want to query.
-
Use From to select the metric source or namespace.
-
Click Add Label to filter results by label values (for example:
pod=web
,env=prod
). -
Select an Aggregation (for example:
min
,max
,sum
,avg
) to reduce raw samples to one value per time interval. -
Use the Select dropdown (if available) to set the aggregation interval (for example:
1m
,5m
). -
Click Add Functions to apply transformations to your data.
Common examples: *
rate()
— Convert counters to rates. *derivative()
— Show the rate of change. *moving_avg()
— Smooth short-term fluctuations. *scale()
— Multiply values by a constant.
Query order determines formula identifiers: the first query = |
Add formulas
Use formulas to create new series from existing queries.
-
Click Add Formula in Graph your data.
-
Reference queries by their letter (
a
,b
, …) or alias. -
Enter your expression and click Apply.
Example — double a series:
2*a
Example — percentage change between two queries:
((a - b) / b) * 100
|
Pie Chart–specific settings
Once your query returns grouped data:
-
Group by — Choose a field to define the pie slices (for example:
host
,service
,region
). -
Aggregation — Select a method to calculate slice values (for example:
sum
,avg
,max
,min
). -
Slice labels — Display category names, percentages, values, or a combination.
-
Color palette — Assign consistent colors to categories for easier recognition.
-
Legend placement — Show legends inside or outside the chart.
-
Donut mode — Optionally display as a donut chart by enabling the center hole.