Kubesense

Data Explorer

The Data Explorer is an interactive query builder and visualization tool for your observability data. Use it to explore metrics, logs, and traces — then save your work as dashboard panels.

Data Explorer

Overview

The Data Explorer lets you:

  • Build queries against Metrics, Logs, and Traces data sources
  • Choose from multiple visualization types
  • Configure panel appearance and behavior
  • Export panels to new or existing dashboards

The explorer state is synced to the URL, so you can bookmark or share any query configuration.

Query Builder

Data Sources

Select the data source for your query:

  • Metrics — Query time-series metrics using PromQL
  • Logs — Query log data with filters and aggregations
  • Traces — Query distributed trace data with filters and aggregations

Metrics Queries

A Metrics query has two modes:

ModeDescription
Builder (visual)Pick a metric, filter it by label, and apply a chain of functions. The PromQL it produces is shown under the query
CodeWrite PromQL directly, with variable substitution support

The builder covers everything a single query can express in code: more than 200 functions across rollups, transforms, label functions, aggregates and operators, each with a searchable menu and an ⓘ tooltip. It also covers exclude and regex label filters, and the offset and @ modifiers. See Metrics Query Builder for the full guide.

Logs and Traces Queries

Logs and Traces queries support:

  • Filters — Filter data using advanced query, MFD, or SPL modes
  • Aggregation functions — row_count, unique_count, avg, sum, max, min, p99, p95, p90, p75, p50
  • Group By — Group results by one or more attributes
  • Sorting — Sort results by value or time, ascending or descending
  • Pagination — Control the number of results returned

Multiple Queries

Click Add Query to add additional queries to the same panel. Each query is labeled alphabetically (A, B, C, etc.).

To start from an existing query, open its ⋯ menu and click Duplicate. The copy appears right below it under the next free letter. The same menu has Reset, which returns the query to its defaults, and Delete. A panel holds up to 10 queries.

Formulas

Click Add Formula to create computed values by combining queries with math expressions. For example:

  • Error rate: B / A
  • Combined throughput: (A + B) / C

Visualization Types

Choose the visualization that best fits your data:

TypeBest For
Time SeriesTrends over time — line and area charts
BarCategorical comparisons
StatSingle-value KPIs and summary numbers
PieProportional breakdowns
Top ListRanked lists of values
TableTabular data display
ListScrollable log entry list
Tree MapWhich values dominate a total
AlertAn existing alert rule, as a chart, a value or a roll-up
Host MapEvery host, with its pods and containers, coloured by load or health

Step Control

Configure the Step interval for data aggregation (e.g., Auto, 30 seconds, 1 minute, 5 minutes). This controls the resolution of your query results.

Time Preferences

By default a panel shows the time range picked on its dashboard. To give one panel its own window, open the panel options and find Time Preferences at the bottom:

  • Global dashboard time (default). The panel follows the dashboard's time range picker.
  • Custom time. The panel always shows the window you pick, whatever the dashboard is set to.

Time Preferences with Global dashboard time selected

When you pick Custom time, a list of windows appears below the two choices. It starts at Past 1 Hour. The chart redraws over the new window straight away, and a badge next to Step shows its length.

Time Preferences with Custom time set to Month to Date

Use Custom time when the period is part of what the panel means. For example, a Month to Date cost stat can sit beside charts of the last hour.

OptionWindow
Past 5 Minutes to Past 30 DaysThe last 5, 15 or 30 minutes; 1, 3, 6 or 12 hours; 1, 2, 7 or 30 days. Each ends now
Week to DateMonday 00:00 of the current week until now
Month to DateThe 1st of the current month, 00:00, until now
Previous WeekThe previous Monday 00:00 until Sunday 23:59:59.999
Previous MonthThe 1st of the previous month, 00:00, until its last day at 23:59:59.999

Weeks run Monday to Sunday and months are calendar months. Each boundary falls at midnight in the timezone you selected in KubeSense, so viewers in different timezones can see different totals for Month to Date. Every option is relative to now; you cannot pin a panel to fixed dates.

Every query in the panel uses its custom time, including the values the query builder suggests for filters. On a dashboard, the panel shows a short badge in its title bar with the window's current length, such as 1h. Calendar windows show how much time they cover so far, rounded down: Month to Date on the 7th at 14:20 shows 6d, and Week to Date on Monday at 16:30 shows 16h. The time picker lists the same lengths next to each option. Hover over the badge to see the full window. Drag-to-zoom is turned off on these panels, because selecting a range on the chart would not change the window the panel shows.

In the dashboard below, the time range picker is set to the last 15 minutes. The first panel follows it. The other two show Month to Date and Previous Week, each with its badge.

A dashboard where two panels use their own time, each with a badge in its title bar

Time Preferences is not offered on host map and SLO panels, or on alert panels other than the graph widget. These panels always follow the dashboard's time.

Exporting Panels

Once you have built and configured a panel, you can:

  1. Add to an existing dashboard — Select a dashboard and the panel is appended to it
  2. Create a new dashboard — Creates a new dashboard with this panel as the first entry