Azure Kubernetes
Azure Kubernetes のメトリクスデータを収集する
設定¶
Func のインストール¶
Guance の統合 - 拡張 - マネージド版 Func を有効にすることを推奨します。前提条件はすべて自動でインストールされるため、そのままスクリプトのインストールを続けてください。
Func を自前でデプロイする場合は Func を自前でデプロイする を参照してください
スクリプトのインストール¶
ヒント: 要件を満たす Azure アプリ登録情報を事前に準備し、サブスクリプションに
Monitoring Readerロールをアプリ登録へ付与してください
Azure Kubernetes Service の監視データを同期するため、対応する収集スクリプト「統合(Azure-Kubernetes service 収集)」(ID:integration_azure_kubernetes) をインストールします
【インストール】をクリックした後、対応するパラメータを入力します。
Azure Tenant ID:テナント IDAzure Client ID:アプリ登録 Client IDAzure Client Secret Value:クライアントシークレットの値。ID ではありません。Subscriptions:サブスクリプション ID、複数ある場合は,で区切ります
【起動スクリプトをデプロイ】をクリックすると、システムが自動的に Startup スクリプトセットを作成し、対応する起動スクリプトを自動で設定します。
有効化後は「管理 / 自動トリガー設定」で対応する自動トリガー設定を確認できます。【実行】をクリックすると、定期実行を待たずにすぐ 1 回実行できます。しばらくすると、実行タスクの記録と対応するログを確認できます。
検証¶
- 「管理 / 自動トリガー設定」で、対象タスクに対応する自動トリガー設定が存在するか確認し、あわせてタスク記録とログを確認して異常がないかチェックします
- Guance の「インフラ - リソースディレクトリ」で資産情報が存在するか確認します
Guanceの「メトリクス」で対応する監視データがあるか確認します
メトリクス¶
Azure Kubernetes Service のメトリクスを収集します。設定によって、より多くのメトリクスを収集できます。Microsoft.ContainerService/managedClusters でサポートされるメトリクス
| メトリクス名 | 説明 | 単位 |
|---|---|---|
apiserver_current_inflight_requests |
進行中のリクエスト数 | count |
cluster_autoscaler_cluster_safe_to_autoscale |
クラスターの健全性 | boolean |
cluster_autoscaler_scale_down_in_cooldown |
スケールダウンのクールダウン中 | - |
cluster_autoscaler_unneeded_nodes_count |
不要なノード | count |
cluster_autoscaler_unschedulable_pods_count |
スケジュール不可の Pod | count |
kube_node_status_allocatable_cpu_cores |
マネージドクラスターで利用可能な CPU コアの総数 | count |
kube_node_status_allocatable_memory_bytes |
マネージドクラスターで利用可能なメモリの総量 | count |
kube_node_status_condition |
各ノード条件の状態 | count |
kube_pod_status_phase |
フェーズ別の Pod 数 | count |
kube_pod_status_ready |
Ready 状態の Pod 数 | count |
node_cpu_usage_millicores |
CPU 使用率(millicores) | % |
node_disk_usage_bytes |
ディスク使用済みバイト数 | bytes |
node_disk_usage_percentage |
ディスク使用率 | % |
node_memory_rss_bytes |
メモリ RSS バイト数 | bytes |
node_memory_rss_percentage |
メモリ RSS 率 | % |
node_memory_working_set_bytes |
メモリ working set バイト数 | bytes |
node_memory_working_set_percentage |
メモリ working set 率 | % |
node_network_in_bytes |
ネットワーク受信バイト数 | bytes |
node_network_out_bytes |
ネットワーク送信バイト数 | bytes |
apiserver_flowcontrol_executing_seats_total |
API Server が現在使用している API Priority and Fairness の実行シート数。 | count |
apiserver_memory_usage_percentage_maximum |
各インスタンスの API Server Pod における、現在の上限に対するメモリ使用率の最大値。 | % |
etcd_cpu_usage_percentage_maximum |
各インスタンスの etcd Pod における、現在の上限に対するCPU使用率の最大値。 | % |
etcd_database_usage_percentage_maximum |
各インスタンスの etcd データベースの最大使用量。 | % |
etcd_memory_usage_percentage_maximum |
各インスタンス etcd Pod のメモリ使用量は、現在の制限の最大割合を占めます。 | % |
scheduler_schedule_attempts_rate_average |
スケジューラーが Pod のスケジュールを試行する 1 秒あたりの回数。これは、スケジュールの成功やスケジュールの失敗などの結果によって区別できます。 | count/s |