[FAQ] Module 4 Homework Q3: How do I find the request metric, its log and its trace in Grafana?
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 75/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- prometheus
調査の方向性
リポジトリに既存のFAQ構成から始め、Module 4 Homework Q3のこの回答を対応するFAQ項目に配置します。Grafana Exploreの手順、Prometheusの命名例、およびGrafana、OpenTelemetry、Exploreへの参照を維持します。質問でメトリクス、ログ、トレースの見つけ方が説明され、チェックリストを満たした状態で回答が公開されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Course
ai-dev-tools-zoomcamp
Question
How do I find the request metric for a lookup in Grafana, and check that its log and trace also appear?
Answer
Use Grafana's Explore page (compass icon in the left menu). Choose a data source at the top: your metrics store (for example Prometheus), your logs store (for example Loki) or your traces store (for example Tempo). Set the time range to cover when you made the request.
1. Find the metric
Select the metrics data source and open the metrics browser. Search for part of the metric name, such as http_server, rather than the exact name from your app's console output. OpenTelemetry names are often translated when stored. In Prometheus, for example:
- dots become underscores
- the unit is added as a suffix (
sbecomes_seconds) - a histogram is split into
_bucket,_countand_sumseries
So http.server.request.duration is stored as http_server_request_duration_seconds_count. Attribute names change the same way, so http.response.status_code becomes http_response_status_code. Query the _count series and group it by route and status code to see your request.
2. Check the log
Select the logs data source, filter by your service name, and search for text from the request (for example part of its URL). Expand the log line. If your app adds trace context to its logs, you'll see a trace ID.
3. Check the trace
If the logs data source links to traces, click the link next to the trace ID. Otherwise, copy the trace ID into the traces data source's query, or search by service name. New traces can take a few seconds to become searchable, so re-run the search if it's empty at first.
If one of the three doesn't appear, check that your app exports that signal and that your telemetry pipeline routes it to the matching data source.
References:
Checklist
- I have searched existing FAQs and this question is not already answered
- The answer provides accurate, helpful information
- I have included any relevant code examples or links
- 主要言語
- Python
- スター
- 7
- フォーク
- 19
- 平均マージ
- 11日 21分
- マージ済み PR(30日)
- 11
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DataTalksClub/faq のほかの issue
-
[FAQ]Homework 4 (2026) Q2/Q6対応中かも @github-actions が今日担当しました。 オープンfaq-proposal
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
DataTalksClub/faq#491 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
[FAQ] Homework 4 (2026) Q2/Q6: Why does my model's AUC (0.732) lose to `lead_score` alone, and why does C=0.001 beat C=1?対応中かも @github-actions が今日担当しました。 オープンfaq-proposal
難易度 1/5 1時間未満 初心者へのやさしさ 87/100
DataTalksClub/faq#489 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
DataTalksClub/faq#486 ·
メンテナーはふだん 2 日以内に返信
-
[FAQ]対応中かも @github-actions が 2 日前に担当しました。 オープンfaq-proposal
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
DataTalksClub/faq#484 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
[FAQ]Why should we use the same KFold splits when comparing hyperparameters?対応中かも @github-actions が 2 日前に担当しました。 オープンfaq-proposal
難易度 1/5 1時間未満 初心者へのやさしさ 87/100
DataTalksClub/faq#480 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
DataTalksClub/faq の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
volcengine/OpenViking#6445 ·
メンテナーはふだん 1 日以内に返信
-
BUG:Edit Album strips spaces from the password so albums with a leading/trailing space in the password can't be edited対応中かも @ManyaJain111 が今日担当しました。 オープンbug enhancement possible-duplicate
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
AOSSIE-Org/PictoPy#1637 · コメント 4 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
deepspeedai/DeepSpeed#8884 ·
メンテナーはふだん 3 日以内に返信
-
Flaky: test_advisor_live_calibrates_an_unmeasured_circuit ranks engines by a 1.8ms sleep marginオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
flagos-ai/FlagQuantum#718 ·
メンテナーはふだん 1 日以内に返信
-
bug CI-failure high priority
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
vllm-project/afd-plugin#483 ·
メンテナーはふだん 1 日以内に返信