Configure and use a graph visualization in Dynatrace
Shows query results as a graph. A graph can show up to 20 series per metric.
Example graph in the Data explorer
Example graph tile
Change selection of metrics
Your visualization can show any selection of metrics in a multi-metric query. The letter next to each metric in your query toggles display of that metric on or off.
In this example, you would change the selection from A (CPU usage %
only) to both A and B (CPU usage %
and Memory used %
).
Visual settings
Visualization
You must select Graph
to display this type of visualization.
Resolution
Resolution is the X axis (time) granularity of the visualization.
- To allow the Data explorer to automatically select an appropriate resolution for the selected timeframe, set Resolution to
Auto
- To specify a certain resolution, select one from the list
Some resolutions are unavailable for some timeframes. If you select an incompatible combination of timeframe and resolution, Dynatrace automatically selects a resolution and displays an explanatory message such as: Auto-resolution applied. Resolution value of [6 hours] applied. Selected timeframe doesn't allow for [5 minutes] resolution.
To override auto-resolution, select a different resolution from the list.
Show legend
Whether to display a legend under the visualization.
Note that the legend is active: you can select a legend entry to toggle display of the corresponding entry on or off.
Connect gaps
To connect gaps in a chart, in the Visual settings section, turn on Connect gaps.
Per-metric visual settings
The Visual settings section also displays visualization options per metric selected for the query.
Rename a metric
You can change the name of a metric as it is displayed on the chart and in the chart legend. The query definition retains the metric's original name.
- In the Visual settings section, select
for the metric you want to rename.
- Edit the name, and then select the checkmark to save the new name.
Change chart mode
To change the chart mode for a metric, in the Visual settings section, select a new chart mode from the list.
Line
Column
Area
Change color palette
To change the color palette for a metric, in the Visual settings section, select a new palette from the list.
Unit and Format
Use the Unit and Format settings to determine how your data is displayed.
Unit
Use the Unit setting to set the unit in which the metric is displayed.
None
= No unit displayedAuto
= Dynatrace selects an appropriate display unit- Other selections specify the exact unit to display. The options here depend on the metric's unit. A time metric, for example, offers alternative units for displaying time.
- To add a custom unit/suffix string, type the custom string in the Unit box and then select it from the list.
Format
Use the Format setting to configure the number of decimal places displayed for the selected metric.
None
= No formatting.Auto
= Dynatrace selects an appropriate format. For example, whereNone
would display5.062357754177517 %
,Auto
would display5.06 %
.- Other selections specify the number of decimal places to display:
0
,0.0
,0.00
,0.000
Examples
Add color override
To force a different color (override the color palette) for a specific series such as a selected host
- In the Visual settings section, select Add color override
- Select the series from the list
- Select the override color for that series
Axes
In the Axes section, you can control how the X axis and each Y axis of your visualization are displayed.
Name an axis
To name an axis
- In the Axes section, find the axis you want to rename.
- Select
next to the axis name.
- Enter a new name and select the checkmark to save the change.
The axis name is displayed vertically next to a Y axis and horizontally under the X axis.
Hide or show an axis
To hide an axis
- In the Axes section, find the axis you want to hide.
- Select
.
To unhide the axis, selectagain.
Define an axis position
To specify the side of the chart on which to display a Y axis
- In the Axes section, find the Y axis you want to move.
- Set Position to
Left
orRight
.
Set an axis minimum and maximum
By default, minimum and maximum axis values are set automatically.
To set custom minimum and maximum values for an axis
- In the Axes section, find the axis for which you want to define a minimum and maximum.
- Change the value of Min, Max from
Auto, Auto
to a comma-separated pair of values corresponding to the values on the selected axis.
Thresholds
To enhance your visualizations, you can set thresholds that are reflected in your visualization.
This example shows a Graph visualization of CPU usage %
(builtin:host.cpu.usage
) before and after adding thresholds. The effect is similar for other visualizations with thresholds.
The thresholds also affect how the tiles are displayed on your dashboards.
Set thresholds
Tip: Set Threshold values after you set Unit:
- If you set Unit first, the threshold settings are prepared to match the selected unit.
- If you change Unit after you set threshold values, the threshold values are not automatically adjusted to match the new unit setting.
To set thresholds
-
In the Thresholds section, enter threshold values
-
Adjust threshold colors optional
Hide or show threshold colors
To hide or show threshold colors without deleting the threshold settings, in the Thresholds section, select .