安裝 Prometheus
使用 oc apply 或使用 IBM CASE 組合來套用 Prometheus 自訂資源。
關於此作業
下列程序涵蓋 IBM CASE 組合安裝。
程序
- 擷取 ibm-guardium-insights-2.2.0.tgz。
tar zxvf $LOCAL_CASE_DIR/$CASE_ARCHIVE
- 切換至解壓縮的資料夾。
cd $LOCAL_CASE_DIR/ibm-guardium-insights/inventory/prometheusSetup/files
- 編輯 prometheus.yaml 檔案並新增變更,例如儲存體、標籤及保留。 如需相關資訊,請參閱 Red Hat OpenShift Prometheus 網站。
- 從 $LOCAL_CASE_DIR/ibm-guardium-insights 資料夾變更目錄和壓縮檔。
cd $LOCAL_CASE_DIR tar czvf $LOCAL_CASE_DIR/$CASE_ARCHIVE ibm-guardium-insights
- 套用 Prometheus yaml 檔案。若為 Guardium ® Insights 3.2.10 以及更新版本:
oc ibm-pak launch $CASE_NAME \ --version $CASE_VERSION \ --namespace default \ --inventory prometheusSetup \ --action applyCustomResources \ --tolerance 1
若為 Guardium Insights 3.2.8 及更舊版本:cloudctl case launch \ --case $LOCAL_CASE_DIR/$CASE_ARCHIVE \ --namespace default \ --inventory prometheusSetup \ --action applyCustomResources \ --tolerance 1