Resource: honeycombio_board

Creates a board. For more information about boards, check out Collaborate with Boards.

Example Usage

Simple Board

data "honeycombio_query_specification" "query" {
  calculation {
    op     = "P99"
    column = "duration_ms"
  }

  filter {
    column = "trace.parent_id"
    op     = "does-not-exist"
  }

  breakdowns = ["app.tenant"]
}

resource "honeycombio_query" "query" {
  dataset    = var.dataset
  query_json = data.honeycombio_query_specification.query.json
}

resource "honeycombio_board" "board" {
  name        = "My Board"

  query {
    query_id = honeycombio_query.query.id
  }
}

Annotated Board

data "honeycombio_query_specification" "latency_by_userid" {
  time_range = 86400
  breakdowns = ["app.user_id"]

  calculation {
    op     = "HEATMAP"
    column = "duration_ms"
  }

  calculation {
    op     = "P99"
    column = "duration_ms"
  }

  filter {
    column = "trace.parent_id"
    op     = "does-not-exist"
  }

  order {
    column = "duration_ms"
    op     = "P99"
    order  = "descending"
  }
}

resource "honeycombio_query" "latency_by_userid" {
  dataset    = var.dataset
  query_json = data.honeycombio_query_specification.latency_by_userid.json
}

resource "honeycombio_query_annotation" "latency_by_userid" {
  dataset     = var.dataset
  query_id    = honeycombio_query.latency_by_userid.id
  name        = "Latency by User"
  description = "A breakdown of trace latency by User over the last 24 hours"
}

resource "honeycombio_board" "overview" {
  name        = "Service Overview"

  query {
    caption             = "Latency by User"
    query_id            = honeycombio_query.latency_by_userid.id
    query_annotation_id = honeycombio_query_annotation.latency_by_userid.id

    graph_settings {
      utc_xaxis = true
    }
  }
}

Argument Reference

The following arguments are supported:

Each board configuration may have zero or more query blocks, which accepts the following arguments:

Attribute Reference

In addition to all arguments above, the following attributes are exported:

Import

Boards can be imported using their ID, e.g.

$ terraform import honeycombio_board.my_board AobW9oAZX71

You can find the ID in the URL bar when visiting the board from the UI.