Share a Query | Honeycomb

Share a Query

Query Template Links allow you to define a query parameter in a Honeycomb URL. Loading this URL in your browser runs the specified query and displays the query results.

For example, select the following URL to load a P95(duration_ms) broken down by HTTP route query on our public “Analyze and Debug an Issue” tour:

https://play.honeycomb.io/sandbox/environments/analyze-debug-tour?query={"calculations":[{"op":"P95","column":"duration_ms"}],"breakdowns":["http.route"]}

Note
Embedding Query Template Links (or other Honeycomb pages) within an iframe is not supported.

To get a Query Template Link:

  1. Use the Query Builder in Honeycomb to construct a query.

  2. Select Share, located in the upper right corner of Query Builder, and then select Get Template Link.

Query Template Link modal visible on top of 'Get Query Template Link' button in 'Share' menu
  1. A modal will appear with your Query Template Link. Use Copy link to copy the URL.
Get Query Template Link modal with displayed Query Template URL and Copy Link button

The query Parameter 

The query parameter is a JSON string, optionally containing any of the keys described below. All fields are optional, but a query with no calculations values will have COUNT applied automatically.

For example, the query parameter syntax for a basic COUNT query with a filter may look like this:

?query={"calculations":[{"op":"COUNT"}],"filters":[{"column":"response_time_ms","op":">","value":500}]}

See Query Specification for details on defining a query via JSON and its use cases.