Non-Numeric Status Indicator

Display a non-numeric value β€” such as an emoji symbol β€” to represent the current state of a monitored outcome. Useful for status boards where a quick visual indicator communicates pass or fail more clearly than a number.

Visualization: the widget displays a large emoji symbol instead of a number. A case statement maps the most recent value of a field to a symbol, and select() ensures only the emoji field reaches the widget:

Screenshot showing a single value widget titled Health Check Status displaying a large emoji face icon instead of a numeric value, with a 24-hour time range indicator

FigureΒ 251.Β Non-Numeric Single Value Widget


Sample input data:

@timestampfieldAhostservice
1970-01-01T00:00:02truemon-01health-check
1970-01-01T00:00:02falsemon-01health-check
1970-01-01T00:00:02truemon-01health-check
1970-01-01T00:00:02falsemon-01health-check
1970-01-01T00:00:02truemon-01health-check

Query:

logscale Syntax
tail(1)
| case {
    fieldA = "true" 
| emoji := "πŸ˜€" ;
    * 
| emoji := "πŸ˜”"
}
| select(emoji)

Query breakdown:

  1. Uses tail() to return only the most recent event, so the widget reflects the latest known state.

  2. A case statement checks the value of fieldA: if it is true, it sets emoji to πŸ˜€; otherwise it sets it to πŸ˜”.

  3. Uses select() to keep only the emoji field in the result, so the widget does not display unintended fields.

Configuration:

  1. From the Search page, type your query in the Query Editor β†’ click Run

  2. Choose Single Value in the Widget selector

  3. Click the style icon : this opens the Format panel on the side.

  4. In Text, enter a Label such as Health Check Status to describe the displayed value.

To customize this widget further, see Single Value Property Reference.