Piechart
Usage
Configure your query
To create a Pie Chart visualization, you must configure a query with a grouping function to define the segments of the chart:
Open or create a dashboard in the Dashboards module.
The metrics query page appears.
Select the visualization type Piechart.
Define a metric you want to visualize as a Piechart.
Apply a grouping function such as
avg
,max
, orsum
to determine how each entity is calculated.Choose labels to segment the Piechart, such as
kube_namespace_name
orkube_node_name
.For Displayed Value, decide whether the Piechart should show the latest value for each segment or an aggregated value across the entire range of the selected time frame.
Configure Units
To display your Piechart with a specific unit, such as seconds, dollars, or percent:
- Select the Query tab in the metric configuration.
- Click Options.
- Define the desired unit for the metric.
- Save your changes.
Use Cases
View Container CPU Usage broken down by Namespace
To view the CPU usage of a host using the Piechart visualization:
Step | Preview |
---|---|
Click Add Panel to add a new panel to your dashboard. | Create a New Panel |
Select Piechart as the visualization type. | |
Choose the sysdig_container_cpu_used_percent metric to monitor the CPU usage of a container. | |
Select the kube_namespace_name label to visualize this metric broken down by namespace | |
Save the chart in order to visualize your container CPU utilization sliced by namespace |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.