Prometheusの状態取得により、Prometheusが正常に動作しているかを確認できます。以下の状態であれば、Prometheusは正常に動作しています。
Ansibleサーバにログインします。詳細は、「第2章 共通の操作」を参照してください。
以下のコマンドを実行します。
# kubectl get pods --namespace=fj-esdp-system | grep 'prometheus'
■コマンドの出力例
fj-prometheus-alertmanager-59c6c45dd-4rtpc 2/2 Running 2 3d fj-prometheus-kube-state-metrics-9dff8bb97-7tchq 1/1 Running 1 3d fj-prometheus-node-exporter-dcd2t 1/1 Running 1 3d fj-prometheus-node-exporter-td5b4 1/1 Running 1 3d fj-prometheus-node-exporter-xt29r 1/1 Running 1 3d fj-prometheus-pushgateway-5f9b5f54f5-lrddz 1/1 Running 1 3d fj-prometheus-server-c6ff46d74-mzlzv 2/2 Running 2 3d