Extract each metric collection into separate helper functions: - collect_database_size: Database size metrics - collect_connection_stats: Connection pool statistics - collect_packets_table_stats: Table-level statistics - collect_query_performance_stats: Query performance metrics - collect_replication_lag: Replication lag metrics This breaks down the complexity 27 function into manageable pieces. Co-Authored-By: Graham <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| database_metrics.ex | ||