Querying Metrics | Honeycomb

We use cookies or similar technologies to personalize your online experience & tailor marketing to you. Many of our product features require cookies to function properly.

Read our privacy policy I accept cookies from this site

Querying Metrics

This feature is available as part of the Honeycomb Enterprise plan.

Querying metrics requires sending metrics data to Honeycomb first.

Writing Queries for Metrics Data  🔗

Metrics are stored in Honeycomb as fields on events. They can be queried just like any other data in a dataset. The values for any given metric field are the measurement collected at the timestamp associated with the event. Metric resources and attributes are also stored as fields, so you should be able to use the WHERE and GROUP BY clauses to plot specific timeseries. In particular, the RATE_MAX, RATE_AVG, and RATE_SUM aggregate operators can be a useful way to query for counter-style metrics.

Multiple metrics will appear together on the same event if they were received at the same time, have the same timestamp, and share the same set of unique resources and attributes. Find out how Honeycomb converts incoming metrics data into events.

Metrics Correlations  🔗

It may be useful to view infrastructure metrics for your systems alongside query results from non-metrics datasets. For instance, a system running out of memory, CPU, or network resources might be the reason for an out-of-compliance SLO or an alerting trigger, and seeing the graph of the problem alongside graphs of relevant system resources could confirm or deny this kind of hypothesis.

The query page has a Metrics tab that allows you to view a selected set of metrics timeseries that cover the same time range as the main query. The timeseries shown can be configured in dataset settings for the main query’s dataset. Correlations can come from a suggested set of metrics, generated by Honeycomb based on the fields in your metrics dataset, or they can come from a Board.

To modify the correlations that are shown for a dataset:

  1. Navigate to the Datasets tab in Honeycomb.
  2. Select Settings on the right side of a dataset’s row.
  3. Under MetricsDisplay metrics in context, use the dropdown to select a source for the Metrics tab for that dataset.

Default Granularity  🔗

Datasets that contain metrics are periodic: data is captured at a regular, known interval, or granularity. For these Datasets, it is helpful to ensure that all queries default to using that granularity or higher, which avoids spiky or confusing graphs.

The Default Granularity setting allows you to specify the expected interval for a periodic dataset Queries in this Dataset won’t drop below the default granularity. You can still override the default on any individual queries, if needed.

To modify the Default Granularity setting:

  1. Navigate to the Datasets tab in Honeycomb.
  2. Select Settings on the right side of your dataset’s row.
  3. Under OverviewDefault Granularity, use the dropdown to select the minimum interval for this dataset.