ts.metrics 包¶
子模組¶
ts.metrics.dimension 模組¶
模型伺服器指標的 Dimension 類
ts.metrics.metric 模組¶
模型伺服器的 Metric 類
ts.metrics.metric_collector 模組¶
系統指標和程序指標指令碼的單一入口點
ts.metrics.metric_encoder 模組¶
用於 json 轉儲的 Metric Encoder 類
ts.metrics.metrics_store 模組¶
指標收集模組
- class ts.metrics.metrics_store.MetricsStore(request_ids, model_name)[source]¶
基類:
object已廢棄 用於建立、修改不同指標並將它們儲存在字典中的類
- add_error(name, value, dimensions=None)[source]¶
新增錯誤指標 :param name: 指標名稱 :type name: str :param value: 指標值,在此情況下為 str :type value: str :param dimensions: 指標的維度列表 :type dimensions: list
ts.metrics.process_memory_metric 模組¶
在此收集程序記憶體使用指標 傳入一個 json、pids 集合和 gpuID
ts.metrics.system_metrics 模組¶
為前端收集系統指標的模組
ts.metrics.unit 模組¶
定義單位對映的模組
模組內容¶
這是存放所有 Python worker 指標的資料夾。