Module 5: Monitoring

Capture application metrics and feedback in PostgreSQL and inspect them in a dashboard.

14 lessons · homework closed Jul 20, 2026

Lessons

Lessons

Work through them in order:

  1. Monitoring

    Why monitoring matters, what we'll build

    4 min
  2. Assistant

    Setting up the RAG assistant

    6 min
  3. Chat App

    Basic Streamlit app with RAG

    3 min
  4. Capturing Metrics

    LLMCallRecord, cost tracking

    11 min
  5. Storing Data in PostgreSQL

    PostgreSQL with Docker, saving conversations

    14 min
  6. Querying Data

    Fetching stored conversations

    5 min
  7. Streamlit Dashboard

    Visualizing metrics in Streamlit

    9 min
  8. User Feedback

    Thumbs up/down buttons

    8 min
  9. Built-in Judge

    LLM-as-a-judge for automatic relevance evaluation

    13 min
  10. Feedback Dashboard

    Adding feedback panels to the Streamlit dashboard

  11. Synthetic Data Generation

    Generating test data for dashboards

  12. Grafana Dashboards

    SQL queries and dashboard panels

    13 min
  13. Docker Compose

    Running everything together

  14. Next Steps

    OpenTelemetry, alerting, frameworks to learn more

    6 min

Homework

Recordings, code and notes

Optional analytics

Optional analytics are off unless you allow them. Your choice does not affect access to DataTalks.Club, Slack, events, or courses.

Current choice: not chosen.

Privacy Policy

If you allow analytics, self-hosted Umami counts anonymous public pageviews without analytics cookies. Private account and learning pages are excluded. Read the Privacy Policy for the complete data boundary.