6.4. ML monitoring with Evidently and Grafana [OPTIONAL CODE PRACTICE]

A code example walkthrough of adding ML monitoring metrics to Grafana using Evidently as an evaluation layer.

Video 4. ML monitoring with Evidently and Grafana [OPTIONAL CODE PRACTICE]arrow-up-right, by Emeli Dral

In this video, we show how to add ML monitoring metrics to the Grafana dashboard using Evidently as an evaluation layer and storing the metrics in a Postgres database.

Want to go straight to code? Here is the code examplearrow-up-right to follow along.

Outline: 00:00arrow-up-right Introduction 00:25arrow-up-right Install Grafana and set up the Postgres database 03:18arrow-up-right Script overview, imports, and logging 04:50arrow-up-right Create a table statement 06:30arrow-up-right Load data and simulate production usage 07:30arrow-up-right Connect to a database and create a table 10:32arrow-up-right Calculate metrics and insert them into Postgres 16:00arrow-up-right Write a function to compute metrics in batches 18:58arrow-up-right Run services, execute and debug the script 23:21arrow-up-right Create dashboards in Grafana

Last updated