v.23.2Improvement

Exclude Internal Database from Asynchronous Metric Calculation

Exclude the internal database used for temporary/external tables from the calculation of asynchronous metric "NumberOfDatabases". This makes the behavior consistent with system table "system.databases". #46435 (Robert Schulze).
Exclude the internal database used for temporary and external tables from the asynchronous metric NumberOfDatabases calculation.

Why it matters

This change aligns the metric NumberOfDatabases with the behavior of the system.databases table by ignoring internal databases used for temporary or external tables. It ensures more accurate and intuitive monitoring of user-visible databases.

How to use it

This feature is applied automatically and requires no user action. The NumberOfDatabases metric calculation now excludes internal temporary/external databases by default.