Kubesense

Bar

The Bar visualization displays data as vertical bars, useful for categorical comparisons and side-by-side analysis.

Bar Chart

When to Use

  • Comparing values across categories (e.g., error counts by service, request counts by status code)
  • Displaying aggregated data grouped by a label or attribute
  • Showing distributions or breakdowns

Building a Bar Panel

  1. Open the Data Explorer
  2. Select your data source (Metrics, Logs, or Traces)
  3. Configure your query (see Query Builder)
  4. Select Bar as the Panel Type in the right sidebar
  5. Click Run to render the chart

In the example above, the panel queries Traces data with count(*) aggregation, grouped by status_code. Each bar represents a different status code, making it easy to compare request volumes across response types.

Multiple Queries

Add multiple queries to overlay different series on the same chart. Each query is labeled alphabetically (A, B, C, etc.) and rendered as a separate set of bars.

Formulas

Use formulas to create computed series from your queries. Click Add Formula and enter an expression combining your queries (e.g., A / B, A + B). See Time Series — Formulas for more details.

Label Configuration

When using Logs or Traces queries with a Group By field, you can customize how bar labels are displayed:

OptionDescription
Label TypeChoose Auto (default) or Custom to define your own label format
FormatTemplate string using {{field_name}} syntax (e.g., {{status_code}})

Panel Configuration

Panel Options

OptionDescription
NameDisplay name shown in the panel header
DescriptionOptional description for additional context

Standard Options

OptionDescription
UnitAxis unit formatter — choose from 100+ units including bytes, percentage, duration, requests/sec, and more
Color PaletteColor scheme for the bars

Legend Options

OptionDescription
VisibilityShow or hide the legend
PlacementPosition the legend at the Bottom or Right of the panel

Thresholds

Add horizontal threshold lines to highlight important values. Enable thresholds in the right sidebar, then click Add Threshold and set the value. Each threshold is displayed as a dashed line with a custom color.