Updated singlestat docs

This commit is contained in:
Torkel Ödegaard 2015-07-10 15:34:54 +02:00
parent d9936f2dff
commit 9f8eae908d

View File

@ -15,7 +15,7 @@ provides thresholds to color that singlestat metric or the panel background.
The big value configuration allows you to both customize the look of your singlestat metric, as well as add additional labels to contexualize the metric.
![](/img/v1/Singlestat-BaseSettings.png)
<img class="no-shadow" src="/img/v1/Singlestat-BaseSettings.png">
1. `Big Value`: Big Value refers to the collection of values displayed in the singlestat panel.
2. `Prefixes`: The Prefix fields let you define a custom label and font-size (as a %) to appear *before* the singlestat metric.
@ -28,7 +28,7 @@ The big value configuration allows you to both customize the look of your single
The coloring options of the singlestat config allow you to dynamically change the colors based on the displayed data.
![](/img/v1/Singlestat-Coloring.png)
<img class="no-shadow" src="/img/v1/Singlestat-Coloring.png">
1. `Background`: The Background checkbox applies the configured thresholds and colors to the entirity of the singlestat panel background.
2. `Value`: The Value checkbox applies the configured thresholds and colors to the value within the singlestat panel.
@ -41,19 +41,19 @@ The coloring options of the singlestat config allow you to dynamically change th
Spark lines are a great way of seeing the historical data associated with a single stat value, providing valuable context at a glance. Spark lines act differently than traditional graph panels and do not include x or y axis, coordinates, a legend, or ability to interact with the graph.
![](/img/v1/Singlestat-Sparklines.png)
<img class="no-shadow" src="/img/v1/Singlestat-Sparklines.png">
1. `Show`: The show checkbox will toggle whether the spark line is shown in the panel. When unselected, only the value will appear.
2. `Background`: **ASK TORKEL.**
3. `Line Color`: This color selection applies to the color of the sparkline itself.
4. `Fill Color`: This color selection applies to the area below the sparkline.</br></br> ***Pro-tip:*** Reduce the opacity on fill colors for nice looking panels.
4. `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 values into explcit text. The text will respect all styling, thresholds and customization defined for the value.
![](/img/v1/Singlestat-ValueMapping.png)
<img class="no-shadow" src="/img/v1/Singlestat-ValueMapping.png">
***Does this support regexes or anything other than a single value?***