Skip to content
Changelog

New databases skip the deprecated agno_metrics table

November 12, 20261 min read

Agno AgentOS no longer creates the deprecated agno_metrics table in new databases, and it logs no-op metrics refreshes at debug level instead of INFO. Earlier releases created the table every time and logged whenever calculate_metrics found nothing to do.

The change covers SQLite, Postgres, MySQL, SingleStore, MongoDB and DynamoDB, the stores that create tables at startup, and /config stops listing the deprecated table. An upgraded database keeps its table and rows. We started AgentOS on an empty SQLite file under both releases:

Earlier releases   metrics tables: ['agno_metrics']
This release       metrics tables: ['agno_aggregate_metrics', 'agno_component_metrics', 'agno_metrics_refreshes']

The background refresh calls calculate_metrics every minute by default, so its two no-op messages, No session data found. Won't calculate metrics. and Metrics already calculated for all relevant dates., now log at debug level on every database class that prints them. On an empty SQLite database, earlier releases printed INFO No session data found. Won't calculate metrics. and this release prints nothing at the default log level.

See the cookbook, and learn more about storage in the documentation.

Frequently asked questions

No. An upgraded database keeps the table and its rows, and AgentOS serves them until the first refresh into the new metrics tables finishes. Only a database created from scratch skips it, on SQLite, Postgres, MySQL, SingleStore, MongoDB and DynamoDB.

Turn on debug logging, for example with set_log_level_to_debug(). A fresh SQLite database then prints DEBUG No session data found. Won't calculate metrics. The "Metrics already calculated for all relevant dates." message needs debug level 2.

After AgentOS starts on an empty SQLite file, sqlite_master lists agno_aggregate_metrics, agno_component_metrics and agno_metrics_refreshes. Earlier releases listed agno_metrics alone.

Shipped around the same time