Kubernetesインテグレーションを初めてデプロイする際には、 警告条件のデフォルトセット をお客様のアカウントにデプロイします。 定義済みの警告ポリシー 、お客様のKubernetesクラスタ上の警告条件の基礎となります。
すべての環境で最も一般的なユースケースに取り組むようにしていますが、デフォルトのポリシーを拡張するために設定できる追加のアラートも数多くあります。以下に、いくつかの推奨事項をご紹介します。
推奨アラート条件
設定 | 価値 |
---|
Event type | K8sNodeSample
|
SELECT value | (cpuUsedCores/cpuLimitCores)*100
|
Warning threshold | >90%で5分以上 |
Critical threshold | >95%で最低5分 |
設定 | 価値 |
---|
Event type | K8sNodeSample
|
SELECT value | (memoryUsedBytes/memoryLimitBytes)/100
|
Warning threshold | >85%で5分以上 |
Critical threshold | >95%で最低5分 |
データをレポートするには、 memoryLimitBytes
のコンテナ仕様にメモリ制限を設定する必要があります。
設定 | 価値 |
---|
Event type | K8sPodSample
|
SELECT value | isScheduled
|
Warning threshold | |
Critical threshold | isScheduled =0少なくとも7分間
|
設定 | 価値 |
---|
NRQL | from K8sContainerSample select latest(restartCount) - earliest(restartCount) where clusterName = '<YOUR CLUSTER NAME>' facet containerName, podName
|
Threshold | Static
|
Warning threshold | |
Critical threshold | Open incident when the query returns a value > 1 at least once in 1 minute
|