The API allows programmatic management of many resources within Honeycomb.
Please report any discrepancies with actual API behavior in Pollinators Slack or to Honeycomb Support.
The API allows programmatic management of many resources within Honeycomb.
Please report any discrepancies with actual API behavior in Pollinators Slack or to Honeycomb Support.
API Keys have various scopes permissions and belong to a specific Team or Environment.
Any valid Honeycomb ingest or configuration API Key will work with this endpoint. Learn more about API keys.
These endpoints can be used to validate authentication for a key, to determine what authorizations have been granted to a key, and to determine the Team and Environment that a key belongs to.
This feature is available as part of the Honeycomb Pro and Enterprise plans.
Burn Alerts notify you when issues impact your SLO budget. Learn more about Burn Alerts here.
This API allows you to list, create, update, and delete burn alerts.
A description of the Burn Alert.
One of the supported alert types:
exhaustion_time
: Notifies when you are about to run out of SLO budget within a specified number of hours.budget_rate
: Notifies when budget drops by at least a specified percentage within a defined time window.Required when alert_type
is exhaustion_time
.
Must not be specified when alert_type
is budget_rate
.
Amount of time (in minutes) left until your projected SLO budget is exhausted. The alert will fire when this exhaustion threshold is reached.
Details about the SLO associated with the burn alert.
A list of Recipients to notify when an alert fires. Using type
+target
is deprecated. First, create the Recipient via the Recipients API, and then specify the ID.
One of the supported Recipient Types
The target of the notification. For example, the specific Slack channel or email address. For Recipients of type = "webhook"
or type = "msteams_workflow"
, this will be the Name in the UI and webhook_name
in the Recipients API. Deprecated: Use the Recipients API first, then pass the Recipient ID.
curl -i -X POST \
'https://api.honeycomb.io/1/burn_alerts/{datasetSlug}' \
-H 'Content-Type: application/json' \
-H 'X-Honeycomb-Team: YOUR_API_KEY_HERE' \
-d '{
"description": "Use this runbook if this alert fires.",
"alert_type": "exhaustion_time",
"exhaustion_minutes": 120,
"slo": {
"id": "2LBq9LckbcA"
},
"recipients": [
{
"id": "abcd123",
"type": "email",
"target": "alerts@example.com"
}
]
}'
Created
A description of the Burn Alert.
Indicates if the Burn Alert has been triggered. This field is read-only and is set to true
when the alert is triggered.
The ISO8601-formatted time when the Burn Alert was created.
The ISO8601-formatted time when the Burn Alert was updated.
One of the supported alert types:
exhaustion_time
: Notifies when you are about to run out of SLO budget within a specified number of hours.budget_rate
: Notifies when budget drops by at least a specified percentage within a defined time window.Required when alert_type
is exhaustion_time
.
Must not be specified when alert_type
is budget_rate
.
Amount of time (in minutes) left until your projected SLO budget is exhausted. The alert will fire when this exhaustion threshold is reached.
A list of Recipients to notify when an alert fires. Using type
+target
is deprecated. First, create the Recipient via the Recipients API, and then specify the ID.
{ "id": "fS7vfB81Wcy", "description": "Use this runbook if this alert fires.", "triggered": false, "created_at": "2022-09-22T17:32:11Z", "updated_at": "2022-10-31T15:08:11Z", "alert_type": "exhaustion_time", "exhaustion_minutes": 120, "slo": { "id": "2LBq9LckbcA" }, "recipients": [ { … } ] }
curl -i -X GET \
'https://api.honeycomb.io/1/burn_alerts/{datasetSlug}?slo_id=string' \
-H 'X-Honeycomb-Team: YOUR_API_KEY_HERE'
Success
A description of the Burn Alert.
Indicates if the Burn Alert has been triggered. This field is read-only and is set to true
when the alert is triggered.
The ISO8601-formatted time when the Burn Alert was created.
The ISO8601-formatted time when the Burn Alert was updated.
One of the supported alert types:
exhaustion_time
: Notifies when you are about to run out of SLO budget within a specified number of hours.budget_rate
: Notifies when budget drops by at least a specified percentage within a defined time window.Required when alert_type
is exhaustion_time
.
Must not be specified when alert_type
is budget_rate
.
Amount of time (in minutes) left until your projected SLO budget is exhausted. The alert will fire when this exhaustion threshold is reached.
[ { "id": "fS7vfB81Wcy", "alert_type": "exhaustion_time", "description": "Use this runbook (link) if this alert fires.", "triggered": true, "exhaustion_minutes": 120, "slo": { … }, "created_at": "2022-09-22T17:32:11Z", "updated_at": "2022-10-22T17:32:11Z" }, { "id": "gT7wgC82Xcz", "alert_type": "budget_rate", "description": "Use this runbook (link) if this alert fires.", "triggered": true, "budget_rate_window_minutes": 60, "budget_rate_decrease_threshold_per_million": 1000, "slo": { … }, "created_at": "2022-09-22T17:32:11Z", "updated_at": "2022-10-22T17:32:11Z" } ]
curl -i -X GET \
'https://api.honeycomb.io/1/burn_alerts/{datasetSlug}/{burnAlertId}' \
-H 'X-Honeycomb-Team: YOUR_API_KEY_HERE'
Success
A description of the Burn Alert.
Indicates if the Burn Alert has been triggered. This field is read-only and is set to true
when the alert is triggered.
The ISO8601-formatted time when the Burn Alert was created.
The ISO8601-formatted time when the Burn Alert was updated.
One of the supported alert types:
exhaustion_time
: Notifies when you are about to run out of SLO budget within a specified number of hours.budget_rate
: Notifies when budget drops by at least a specified percentage within a defined time window.Required when alert_type
is exhaustion_time
.
Must not be specified when alert_type
is budget_rate
.
Amount of time (in minutes) left until your projected SLO budget is exhausted. The alert will fire when this exhaustion threshold is reached.
A list of Recipients to notify when an alert fires. Using type
+target
is deprecated. First, create the Recipient via the Recipients API, and then specify the ID.
{ "id": "fS7vfB81Wcy", "description": "Use this runbook if this alert fires.", "triggered": false, "created_at": "2022-09-22T17:32:11Z", "updated_at": "2022-10-31T15:08:11Z", "alert_type": "exhaustion_time", "exhaustion_minutes": 120, "slo": { "id": "2LBq9LckbcA" }, "recipients": [ { … } ] }
A description of the Burn Alert.
One of the supported alert types:
exhaustion_time
: Notifies when you are about to run out of SLO budget within a specified number of hours.budget_rate
: Notifies when budget drops by at least a specified percentage within a defined time window.Required when alert_type
is exhaustion_time
.
Must not be specified when alert_type
is budget_rate
.
Amount of time (in minutes) left until your projected SLO budget is exhausted. The alert will fire when this exhaustion threshold is reached.
A list of Recipients to notify when an alert fires. Using type
+target
is deprecated. First, create the Recipient via the Recipients API, and then specify the ID.
One of the supported Recipient Types
The target of the notification. For example, the specific Slack channel or email address. For Recipients of type = "webhook"
or type = "msteams_workflow"
, this will be the Name in the UI and webhook_name
in the Recipients API. Deprecated: Use the Recipients API first, then pass the Recipient ID.
curl -i -X PUT \
'https://api.honeycomb.io/1/burn_alerts/{datasetSlug}/{burnAlertId}' \
-H 'Content-Type: application/json' \
-H 'X-Honeycomb-Team: YOUR_API_KEY_HERE' \
-d '{
"description": "Use this runbook if this alert fires.",
"alert_type": "exhaustion_time",
"exhaustion_minutes": 120,
"recipients": [
{
"id": "abcd123",
"type": "email",
"target": "alerts@example.com"
}
]
}'
Success
A description of the Burn Alert.
Indicates if the Burn Alert has been triggered. This field is read-only and is set to true
when the alert is triggered.
The ISO8601-formatted time when the Burn Alert was created.
The ISO8601-formatted time when the Burn Alert was updated.
One of the supported alert types:
exhaustion_time
: Notifies when you are about to run out of SLO budget within a specified number of hours.budget_rate
: Notifies when budget drops by at least a specified percentage within a defined time window.Required when alert_type
is exhaustion_time
.
Must not be specified when alert_type
is budget_rate
.
Amount of time (in minutes) left until your projected SLO budget is exhausted. The alert will fire when this exhaustion threshold is reached.
A list of Recipients to notify when an alert fires. Using type
+target
is deprecated. First, create the Recipient via the Recipients API, and then specify the ID.
{ "id": "fS7vfB81Wcy", "description": "Use this runbook if this alert fires.", "triggered": false, "created_at": "2022-09-22T17:32:11Z", "updated_at": "2022-10-31T15:08:11Z", "alert_type": "exhaustion_time", "exhaustion_minutes": 120, "slo": { "id": "2LBq9LckbcA" }, "recipients": [ { … } ] }
curl -i -X DELETE \
'https://api.honeycomb.io/1/burn_alerts/{datasetSlug}/{burnAlertId}' \
-H 'X-Honeycomb-Team: YOUR_API_KEY_HERE'
Team cannot access management APIs.
{ "error": "Your team has been denied access to Management APIs, please contact support to be unblocked." }
Dataset definitions describe the fields with special meaning in the Dataset.
Refer to the Dataset Definitions documentation for more information.
Honeycomb automatically creates these Dataset definition fields when the Dataset is created. Manual creation of Dataset definitions is not needed.
Derived columns allow you to run queries based on the value of an expression that is derived from the columns in an event.
This API allows you to list, create, update, and delete derived columns in a dataset or across a whole environment, paralleling the behavior of the Schema tab within a Dataset's or Environment's Settings UI.
The Events API endpoints are the lowest-level way to send Events to Honeycomb. This should be your last resort!
If unsure where to start when instrumenting an application, read about how to Send Data to Honeycomb.
If you are building a tracing or metrics library, we recommend using OpenTelemetry.
The Kinesis Events API endpoints allow Honeycomb to process streaming events from Amazon Kinesis.
Refer to the Honeycomb AWS integrations documentation for more information.
This feature is available as part of the Honeycomb Enterprise plan.
Query Results are the aggregated data from a Query, similar to what is displayed in graphs or heatmaps within the Honeycomb UI. Receiving results from a Query is a three-step process:
Create the Query (or Query Spec), which validates that the query parameters are valid. Creating a query does not actually run the query to get results. Run the query asynchronously by creating a Query Result referencing the Query’s ID. This returns a Query Result ID. Poll the query result endpoint (with the Query Result ID) until the data is ready.
Note that many Query Results can be created from a single Query. This is particularly useful when using a relative time_range parameter in the Query. For example, a Query with time_range: 7200
and no explicit start_time
or end_time
can be re-run over and over, with each resulting Query Result containing the most recent 2 hours of data. This is conceptually similar to clicking Run Query in the Honeycomb UI without changing any query parameters.
IMPORTANT API RESTRICTIONS:
To ensure the stability of Honeycomb systems, we have enabled the following API restrictions. These restrictions may change over time.
Query Results can only be created for events with timestamps within the past 7 days.
When creating a Query Result, the time ranges from the Query are truncated according to the following rules. For queries with a time range of:
less than or equal to 6 hours, results are truncated to the nearest 1 minute. For example, a start/end time of 2021-04-22T05:28:12Z will be truncated to 2021-04-22T05:28:00Z.
greater than 6 hours and less than or equal to 2 days, results are truncated to the nearest 5 minutes. For example, a start/end time of 2021-04-22T05:28:12Z will be truncated to 2021-04-22T05:25:00Z.
greater than 2 days and less than or equal to 7 days, results are truncated to the nearest 30 minutes. For example, a start/end time of 2021-04-22T05:28:12Z will be truncated to 2021-04-22T05:00:00Z.
Creating a Query Result is rate limited to 10 requests per minute. Status code 429 will be returned when rate limited.
Query Results cannot take longer than 10 seconds to run.
This feature is available as part of the Honeycomb Pro and Enterprise plans.
Honeycomb SLOs allow you to define and monitor Service Level Objectives (SLOs) for your organization.
This API allows you to list, create, update, and delete SLO objects.
Triggers let you receive notifications when your data in Honeycomb crosses the thresholds that you configure. The graph on which to alert is as flexible as a Honeycomb query, which helps reduce false positives due to known errors.Triggers fire
This API allows you to list, create, update, and delete Triggers.