/**
 * 监控指标统一导出
 * 
 * 提供平台级的监控能力，收集关键指标并支持告警。
 * 
 * @module monitoring
 * 
 * @example
 * ```typescript
 * import { Metrics, requestTimingHook, responseTimingHook } from '@/common/monitoring'
 * import Fastify from 'fastify'
 * 
 * const app = Fastify()
 * 
 * // 1. 注册请求计时中间件
 * app.addHook('onRequest', requestTimingHook)
 * app.addHook('onResponse', responseTimingHook)
 * 
 * // 2. 启动定期监控
 * Metrics.startPeriodicMonitoring(60000) // 每分钟
 * 
 * // 3. 手动记录指标
 * await Metrics.recordDBConnectionCount()
 * Metrics.recordMemoryUsage()
 * 
 * // 4. 记录LLM调用
 * Metrics.recordLLMCall('deepseek', 'chat', 1500, true, {
 *   prompt: 100,
 *   completion: 200,
 *   total: 300
 * })
 * 
 * // 5. 获取系统概览
 * const overview = await Metrics.getSystemOverview()
 * console.log(overview)
 * ```
 */

export { Metrics, requestTimingHook, responseTimingHook } from './metrics.js'

