[FAQ] Module 4 Homework Q3: How do I find the request metric, its log and its trace in Grafana?
I maintainer di solito rispondono entro 4 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 75/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- prometheus
- Ambito
- documentation, observability
Direzione di ricerca
Inizia dalla struttura FAQ esistente del repository e inserisci questa risposta a Module 4 Homework Q3 nella voce FAQ corrispondente. Mantieni i passaggi di Grafana Explore, gli esempi di denominazione di Prometheus e i riferimenti a Grafana, OpenTelemetry ed Explore. Il lavoro è completato quando la domanda spiega come trovare la metrica, il log e la trace e la risposta viene pubblicata con la checklist soddisfatta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 7
- Fork
- 19
- Merge medio
- 11g 23h
- PR unite (30g)
- 12
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DataTalksClub/faq
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
DataTalksClub/faq#486 ·
I maintainer di solito rispondono entro 4 giorni
-
[FAQ]Forse già presa @github-actions l’ha presa 1 giorno fa. Apertafaq-proposal
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
DataTalksClub/faq#484 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
[FAQ]Why should we use the same KFold splits when comparing hyperparameters?Forse già presa @github-actions l’ha presa 2 giorni fa. Apertafaq-proposal
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 87/100
DataTalksClub/faq#480 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
[FAQ]Why can a numerical feature have ROC AUC below 0.5, and why can we invert it?Forse già presa @github-actions l’ha presa 2 giorni fa. Apertafaq-proposal
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
DataTalksClub/faq#478 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
[FAQ] TqdmWarning: IProgress not found. Please update jupyter and ipywidgets when importing tqdmForse già presa @github-actions l’ha presa 2 giorni fa. Apertafaq-proposal
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 1/100
DataTalksClub/faq#474 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di DataTalksClub/faq
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
zach-blumenfeld/aip#13 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
nathanmarlor/foxess_modbus#1287 ·
I maintainer di solito rispondono entro 4 giorni
-
bug good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
OpenLakeForge/openlakeforge#498 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue hacktoberfest help wanted python
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
pollen-robotics/reachy_mini#1493 ·
I maintainer di solito rispondono entro 1 giorno