ワークショップセットアップ

Portworx メトリクスエンドポイントのデプロイ

10 minutes

このステップでは、Portworx メトリクスエンドポイントを模倣する Python サービスをデプロイします。 これはワークショップで Pure Storage のモニタリングを設定する際に使用します。

Portworx メトリクスエンドポイントのデプロイ

以下のコマンドを実行して、Portworx メトリクスエンドポイントサービスをデプロイします。

bash
oc new-project portworx
oc apply -f ./portworx/k8s.yaml -n portworx

Portworx メトリクスエンドポイントのテスト

Portworx メトリクスエンドポイントが期待通りに動作していることを確認します。

curl コマンドを使用できる Pod を起動します。

bash
oc run --rm -it -n default curl --image=curlimages/curl:latest -- sh

次に、以下のコマンドを実行してエンドポイントにリクエストを送信します。

bash
curl http://portworx-metrics-sim.portworx:17001/metrics
Last Modified ·