本文介紹一種將 MetricStore 執行個體遷移為阿里雲 Prometheus 執行個體的操作方法。
適用情境
存量的 MetricStore 需要遷移為 Prometheus 執行個體,擷取 Prometheus 提供的社區相容指標管理能力。
需要使用 Prometheus RecordingRule。
需要使用 Prometheus View 執行個體進行全域彙總查詢。
前提條件
需要開通阿里雲 Prometheus 服務。
費用說明
MetricStore 遷移後,將由 Prometheus 服務進行計費,SLS 服務不再計費。
操作步驟
通過Log Service控制台擷取存量SLS Project 和 MetricStore 名稱。
登入CloudMonitor2.0控制台,建立或選擇同地區下的工作空間,並進入工作空間。
在左側功能導航中選擇接入中心,搜尋“Prometheus 納管 MetricStore”後進行接入配置,選擇第一步準備的 SLS Project 和 MetricStore。然後填寫Prometheus 執行個體名稱。單擊確定,接入成功後會產生對應的 Prometheus 執行個體。
在左側功能導航中選擇所有功能,選擇Prometheus 服務。
可在執行個體列表中查看Prometheus 執行個體。
說明接入後會在 Default 接入策略中產生一條接入配置記錄。若手動刪除該記錄,Prometheus 執行個體不會跟隨刪除。