Display Number of Errors

To show the number of errors in a system, you could count them using the count() function.

  1. From the Search tab, type this query in the Query Editor:

    logscale
    loglevel = /error/i
    | count()
  2. Save your widget as explained at Create Widgets

  3. Click the menu icon on top-right of the widget and select Styling, the Styling panel is displayed on the side of the widget:

    Screenshot showing a radial needle gauge displaying value 552 with color-coded arc segments (green, yellow-green, orange, red) ranging from 0 to 1K, with Format Gauge panel visible on the right showing configuration options including type, padding, value format, range settings, color palette with threshold values, and label options

    Figure 220. Gauge chart with properties panel - Example 1


  4. Set the properties as desired:

    • Layout → choose Radial Needle type in this example

    • Value → choose Raw format

    • Colors → adjust the colors for the thresholds you have defined, thus creating a custom palette.