# Guide: Ebean query metrics and naming ## Purpose This guide explains the metrics Ebean captures, how the metric **name** for a query is derived, and how you influence that name with `setLabel(..)` and **profile locations**. It also covers secondary (lazy / query) load naming, the inline SQL comment, collecting metrics at runtime, and how the names map to avaje-metrics tags. Use this guide when you want to identify a query in metrics/telemetry, when a query shows up under an unexpected metric name, or when wiring Ebean metrics into a reporter. --- ## Overview Ebean records timing and counter metrics for the work it does. Every metric has a **name** whose leading segment identifies the kind of work: | Prefix | What it measures | Example name | |---|---|---| | `orm.` | Entity (ORM) query | `orm.Customer.findList`, `orm.CustomerFinder.byName` | | `dto.` | DTO query | `dto.CustomerDto.byEmail` | | `sql.query.` | Raw SQL query | `sql.query.