Examples of Metric-to-Event Mapping | 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

Examples of Metric-to-Event Mapping

Honeycomb will combine data points into the same event if:

  • they were received as part of the same OTLP request
  • they have the same timestamp representing moment of capture
  • they have the same set of resource attribute keys and values
  • they have the same set of data point attribute keys and values (sometimes these are also called “tags” or “labels”)

Combining Across Metric Streams  🔗

Given a single metrics request that contains the following data:

Resource:
  - service.name: greyhound
  - host.name: greyhound-9ab3f2
  - cloud.availability_zone: us-east-1c
Metric: system.cpu.utilization.user
  - Timestamp: 1623110537
    Value: 34
Metric: system.cpu.utilization.system
  - Timestamp: 1623110537
    Value: 8
Metric: runtime.go.goroutines
  - Timestamp: 1623110537
    Value: 635
Metric: runtime.go.gc.count
  - Timestamp: 1623110537
    Value: 321

Honeycomb will store a single event that contains the following data:

- Timestamp: 1623110537
  service.name: greyhound
  host.name: greyhound-9ab3f2
  cloud.availability_zone: us-east-1c
  system.cpu.utilization.user: 34
  system.cpu.utilization.system: 8
  runtime.go.goroutines: 635
  runtime.go.gc.count: 321

Splitting by Metric Attributes  🔗

Given a single metrics request that contains the following data:

Resource:
  - service.name: greyhound
  - host.name: greyhound-9ab3f2
  - cloud.availability_zone: us-east-1c
Metric: system.cpu.utilization
  - Timestamp: 1623110537
    Attributes:
      - cpu: cpu1
      - state: user
    Value: 34
  - Timestamp: 1623110537
    Attributes:
      - cpu: cpu1
      - state: system
    Value: 8
Metric: runtime.go.goroutines
  - Timestamp: 1623110537
    Value: 635
Metric: runtime.go.gc.count
  - Timestamp: 1623110537
    Value: 321

Honeycomb will store three events that contain the following data:

- Timestamp: 1623110537
  system.cpu.utilization: 34
  service.name: greyhound
  host.name: greyhound-9ab3f2
  cloud.availability_zone: us-east-1c
  cpu: cpu1
  state: user

- Timestamp: 1623110537
  system.cpu.utilization: 8
  service.name: greyhound
  host.name: greyhound-9ab3f2
  cloud.availability_zone: us-east-1c
  cpu: cpu1
  state: system

- Timestamp: 1623110537
  service.name: greyhound
  host.name: greyhound-9ab3f2
  cloud.availability_zone: us-east-1c
  runtime.go.goroutines: 635
  runtime.go.gc.count: 321