[FAQ] Module 4 Homework Q3: How do I find the request metric, its log and its trace in Grafana?
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 75/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- prometheus
- Área
- documentation, observability
Línea de trabajo
Comienza con la estructura de FAQ existente del repositorio y coloca esta respuesta de Module 4 Homework Q3 en la entrada de FAQ correspondiente. Conserva los pasos de Grafana Explore, los ejemplos de nombres de Prometheus y las referencias a Grafana, OpenTelemetry y Explore. Se considera terminado cuando la pregunta explica cómo encontrar la métrica, el log y el trace, y la respuesta se publica con su checklist cumplida.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 7
- Forks
- 19
- Merge medio
- 9 d 22 h
- PR fusionados (30 d)
- 10
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DataTalksClub/faq
-
[FAQ] How to fix "ValueError: Only sparse matrices with 32-bit integer indices are accepted" with DictVectorizerPosiblemente ocupada @github-actions la tomó hace 1 día. Abiertofaq-proposal
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
DataTalksClub/faq#493 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
[FAQ]Homework 4 (2026) Q2/Q6Posiblemente ocupada @github-actions la tomó hace 2 días. Abiertofaq-proposal
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
DataTalksClub/faq#491 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
[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?Posiblemente ocupada @github-actions la tomó hace 2 días. Abiertofaq-proposal
Dificultad 1/5 Menos de una hora Aptitud para principiantes 87/100
DataTalksClub/faq#489 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
DataTalksClub/faq#486 ·
Los mantenedores suelen responder en 2 días
-
[FAQ]Posiblemente ocupada @github-actions la tomó hace 4 días. Abiertofaq-proposal
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
DataTalksClub/faq#484 · 1 comentario ·
Los mantenedores suelen responder en 2 días
Todos los issues de DataTalksClub/faq
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
AstrBotDevs/AstrBot#10720 ·
Los mantenedores suelen responder en 1 día
-
fix(xiaomi): curated picker list still offers six ids that return 400 (plan-limited vs retired)Abiertocause/upstream comp/cli P2 provider/other tool/file type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NousResearch/hermes-agent#143900 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
WLAN-Pi/wlanpi-profiler#341 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día