[Bug] Metrics Exported by Temporal Client's metrics Handler does not match with the ones used in SDK Metrics json file
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- go, grafana, prometheus
調査の方向性
SDK メトリクスダッシュボードの JSON から始め、そこにある Prometheus 式と、Temporal Client のメトリクスハンドラーがエクスポートするメトリクス名を比較します。Issue の置換マッピングを使用して不一致を特定し、その後、更新された Grafana パネルが記載された Docker セットアップでデータを返すことを確認します。
索引モデルが issue の本文から書いたものです。
説明
What are you really trying to do?
I'm trying to load test temporal and see the useful metrics which can tell about how my self hosted temporal deployment is working at scale. All of temporal SDK metrics are getting listed in Grafana's metrics browser, but when I try to Visualise them by importing the SDK dashboard json file, most of the charts are just empty(No data).
Only after changing the name of these metrics used in the expression I'm able to see these graph on dashboard.
Describe the bug
The name of metrics exported by temporal Client's metrics handler does not match with the ones used in JSON file for Grafana Dashboard.
Importing the SDK metrics I see this
After changing the name of metrics used in expression
Environment/Versions
I'm using temporal in local machine setup using docker, The Grafana and Prometheus have also been setup with docker.
I'm using Golang and these are the Temporal SDK version I'm using:
go.temporal.io/api v1.19.1-0.20230322213042-07fb271d475b
go.temporal.io/sdk v1.22.1
go.temporal.io/sdk/contrib/tally v0.2.0
Additional context
I wanted to know If I'm doing something wrong here or I need to do some additional changes in order to see the metrics using the dashboard JSON file.
Attaching the replacement keys used for getting these metrics shown up in Grafana Dashboard, as It can be helpful or someone else.
{
"existing_key_in_json_file": "needs to be replaced with below values",
"temporal_request": "temporal_request_total",
"temporal_request_latency_bucket": "temporal_request_latency_seconds_bucket",
"temporal_workflow_completed": "temporal_workflow_completed_total",
"temporal_workflow_failed": "temporal_workflow_failed_total",
"temporal_workflow_endtoend_latency_bucket": "temporal_workflow_endtoend_latency_seconds_bucket",
"temporal_workflow_task_queue_poll_succeed": "temporal_workflow_task_queue_poll_succeed_total",
"temporal_workflow_task_queue_poll_empty": "temporal_workflow_task_queue_poll_empty_total",
"temporal_workflow_task_schedule_to_start_latency_bucket": "temporal_workflow_task_schedule_to_start_latency_seconds_bucket",
"temporal_workflow_task_execution_latency_bucket": "temporal_workflow_task_execution_latency_seconds_bucket",
"temporal_workflow_task_replay_latency_bucket": "temporal_workflow_task_replay_latency_seconds_bucket",
"temporal_activity_execution_latency_count": "temporal_activity_execution_latency_seconds_count",
"temporal_activity_execution_failed": "temporal_activity_execution_failed_total",
"temporal_activity_execution_latency_bucket": "temporal_activity_execution_latency_seconds_bucket",
"temporal_activity_poll_no_task": "temporal_activity_poll_no_task_total",
"temporal_activity_schedule_to_start_latency_bucket": "temporal_activity_schedule_to_start_latency_seconds_bucket"
}
- 主要言語
- 言語のデータがありません
- スター
- 140
- フォーク
- 51
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
temporalio/observability-examples のほかの issue
-
[Feature Request] Prometheus-based SDK Metrics Dashboard: Metric Names Out of Sync With Documentation & Exports対応中かも @keerthi7788 が 79 日前に担当しました。 オープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
temporalio/observability-examples#75 · リアクション 1 件 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
[Bug] probable incorrect prometheus query on "State Transitions" panel used for measuring state transitions per second再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
temporalio/observability-examples#42 · リアクション 1 件 ·
temporalio/observability-examples の issue をすべて見る
似ている issue
-
clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P2 security
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
openclaw/openclaw#211830 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
NVIDIA-NeMo/nemo-helix#4561 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Arize-ai/openinference#4530 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:dashboards bug priority:low ready
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
jdrouet/tinyobserve#260 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
fix(metrics): nil pointer dereference panic in serverPing when OBA returns HTTP 200 with JSON null対応中かも @KrishSharma4406 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
OneBusAway/watchdog#541 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信