3.9 KiB
page_title | page_description | page_keywords |
---|---|---|
Singlestat Panel | Singlestat Panel Reference | grafana, singlestat, panel, documentation |
Singlestat Panel
The singlestat Panel allows you to show the one main summary stat of a single series (like max, min, avg, sum). It also provides thresholds to color the stat or the Panel background.
Singlestat Panel Configuration
The singlestat panel has a normal query editor to allow you define your exact metric queries like many other Panels. Through the Options tab, you can access the Singlestat-specific functionality.
Big Value
: Big Value refers to how we display the main stat for the Singlestat Panel. This is always a single value that is displayed in the Panel in between two strings,Prefix
andSuffix
. The single number is calculated by choosing a function (min,max,average,current,total) of your metric query. This functions reduces your query into a single numeric value.Font Size
: You can use this sectionValues
: The Value fields let you set the function (min, max, average, current, total) that your entire query is reduced into a single value with. You can also set the font size of theand font-size (as a %) of the metric query that the Panel is configured with. This reduces the entire query into a single summary value that is displayed.Postfixes
: The Postfix fields let you define a custom label and font-size (as a %) to appear after the valueUnits
: Units are appended to the the Singlestat within the panel, and will respect the color and threshold settings for the value.Decimals
: The Decimal field allows you to override the automatic decimal precision, and set it explicitely.
Coloring
The coloring options of the Singlestat Panel config allow you to dynamically change the colors based on the Singlestat value.
Background
: This checkbox applies the configured thresholds and colors to the entirity of the Singlestat Panel background.Value
: This checkbox applies the configured thresholds and colors to the summary stat.Thresholds
: Change the background and value colors dyanmically within the panel, depending on the Singlestat value. The threshold field accepts 3 comma-separated values, corresponding to the three colors directly to the right.Colors
: Select a color and opacityInvert order
: This link toggles the threshold color order.
For example: Green, Orange, Red () will become Red, Orange, Green ().
Spark Lines
Sparklines are a great way of seeing the historical data related to the summary stat, providing valuable context at a glance. Sparklines act differently than traditional graph panels and do not include x or y axis, coordinates, a legend, or ability to interact with the graph.
Show
: The show checkbox will toggle whether the spark line is shown in the Panel. When unselected, only the Singlestat value will appear.Background
: Check if you want the sparklines to take up the full panel width, or uncheck if they should be below the main Singlestat value.Line Color
: This color selection applies to the color of the sparkline itself.Fill Color
: This color selection applies to the area below the sparkline.
Pro-tip: Reduce the opacity on fill colors for nice looking panels.
Value to text mapping
Value to text mapping allows you to translate the value of the summary stat into explicit text. The text will respect all styling, thresholds and customization defined for the value. This can be useful to translate the number of the main Singlestat value into a context-specific human-readable word or message.