ts.metrics 封包¶
子模組¶
ts.metrics.dimension 模組¶
模型伺服器指標的維度類別
ts.metrics.metric 模組¶
模型伺服器的指標類別
ts.metrics.metric_collector 模組¶
系統指標和程序指標腳本的單一啟動點
ts.metrics.metric_encoder 模組¶
用於 json dumps 的 Metric Encoder 類別
ts.metrics.metrics_store 模組¶
指標收集模組
- class ts.metrics.metrics_store.MetricsStore(request_ids, model_name)[原始碼]¶
基於:
object
已棄用 (DEPRECATED) 的類別,用於建立、修改不同的指標。並將它們保存在字典中
- add_error(name, value, dimensions=None)[原始碼]¶
新增錯誤指標 :param name: 指標名稱 :type name: str :param value: 指標值,在此案例中為 str :type value: str :param dimensions: 指標的維度列表 :type dimensions: list
ts.metrics.process_memory_metric 模組¶
在此收集處理程序記憶體使用率指標。傳遞一個 JSON,包含 PID 和 GPU ID 的集合。
ts.metrics.system_metrics 模組¶
用於收集前端系統指標的模組
ts.metrics.unit 模組¶
用於定義單位對應的模組
模組內容¶
這是所有 Python worker 指標的資料夾。