0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

OCP 4.10 - Monitoring Dashboard

Last updated at Posted at 2022-06-14

Red Hat OpenShift Container Platform (OCP) 4.8 以降、それまで利用可能であった Grafana UI 等の複数の UI(総称して third-party monitoring UI)が OCP Console からアクセスできなくなりました。

OpenShift Container Platform 4.8 release notes
https://docs.openshift.com/container-platform/4.8/release_notes/ocp-4-8-release-notes.html#ocp-4-8-monitoring-removed-grafana-alertmanager-ui-links

Removed Grafana and Alertmanager UI links
The link to the third-party Alertmanager UI is removed from the Monitoring → Alerting page in the OpenShift Container Platform web console. Additionally, the link to the third-party Grafana UI is removed from the Monitoring → Dashboards page. You can still access the routes to the Grafana and Alertmanager UIs in the web console in the Administrator perspective by navigating to the Networking → Routes page in the openshift-monitoring project.

代替として、従来から提供されている Monitoring Dashboard が強化されました。

Monitoring dashboard enhancements in the web console
New enhancements are available on the Monitoring → Dashboards page in the OpenShift Container Platform web console:

  • When you zoom in on a single graph by selecting an area with the mouse, all other graphs now update to reflect the same time range.
  • Dashboard panels are now organized into groups, which you can expand and collapse.
  • Single-value panels now support changing color depending on their value.
  • Dashboard labels now display in the Dashboard drop-down list.
  • You can now specify a custom time range for a dashboard by selecting Custom time range in the Time Range drop-down list.
  • When applicable, you can now select the All option in a dashboard filter drop-down menu to display data for all of the options in that filter.

ここでは、OCP 4.10 の環境で Monitoring Dashboard の概要を確認してみます。

Monitoring Dashboard の使用

Official Document の以下の箇所に、Monitoring Dashboard の使用方法が記載されています。
Reviewing monitoring dashboards
https://docs.openshift.com/container-platform/4.10/monitoring/reviewing-monitoring-dashboards.html

実際の Monitoring Dashboard は、以下のようになっています。
ここでは、左上の Dashboard とある箇所の Pulldown Menu から Kubernetes / Compute Resources / Cluster を選択しています。
pic0.png

Pulldown Menu には、API Performance から Prometheus / Overview まで16項目あります。
pic1-1.png

Graph 上の任意の箇所に Mouse Cursor を合わせると、詳細が表示されます。
pic2.png

Dashboard 全体は以下のようになっています。

Kubernetes / Compute Resources / Cluster 全体

pic3.png

Graph 右上の Inspect をクリックすると、Metrics 画面に遷移して使用中の Metric が表示されます。
pic4.png

ここでは、以下の Metric が使用されています。

sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=""}) by (namespace)

Metric が分かれば、稼働統計情報を取得することも可能です。
Prometheus Metrics の利用( CPU by Node )
https://qiita.com/qiita2021user/items/cf761f0987673984c79d

Grafana UI の使用

先述のとおり、Grafana UI は OCP Console からアクセスできなくなりましたが、依然として使用できます。しかしながら、今後削除される機能の位置付けです。
Accessing third-party monitoring UIs and APIs
https://docs.openshift.com/container-platform/4.10/monitoring/accessing-third-party-monitoring-uis-and-apis.html

NOTE
Although you can access the third-party Grafana and Prometheus web UIs from the web console or the CLI, this access is deprecated and is planned to be removed in a future OpenShift Container Platform release.

Grafana UI の URL は、以下で取得します。

$ oc get route grafana -n openshift-monitoring -o jsonpath='{.spec.host}'
grafana-openshift-monitoring.apps.mycluster.com

以下は、先程確認した Monitoring Dashboard と類似の情報を Grafana UI で表示してみたものです。
pic5.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?