sdk-core icon indicating copy to clipboard operation
sdk-core copied to clipboard

`temporal_activity_schedule_to_start_latency` metrics missing the `activity_type` label

Open thegedge opened this issue 2 years ago • 4 comments

What are you really trying to do?

To help with operating Temporal in our service, we want to get the activity schedule-to-start latency, grouped by the activity type, to observe any lag in our queues due to oversaturation.

Describe the bug

When scraping the prometheus endpoint on a worker, temporal_activity_schedule_to_start_latency appears to be missing the activity_type label.

Environment/Versions

OS and processor: [e.g. M1 Mac, x86 Windows, Linux]

  • Locally: macOS 12.6.
  • In Kubernetes: running a container built from node:16.14.0-bullseye.

Temporal Version: [e.g. 1.14.0?] and/or SDK version 1.0.1 (but also observed this with 1.3.0 locally)

Are you using Docker or Kubernetes or building Temporal from source?

We're using the @temporal/worker package from NPM with the aforementioned systems.

Additional context

Interestingly, temporal_activity_execution_latency does have the activity type label.

thegedge avatar Sep 26 '22 15:09 thegedge