Kubernetes イベントのモニタ

Kubernetes には次の 2 つのイベントタイプがあります。

  • 通常のイベント
  • 警告イベント

Kubernetes イベントの詳細については、「Application Introspection and Debugging」を参照してください。Splunk AppDynamics は、次のサブセットをクラスタイベントとして報告します。これらは、Kubernetes 警告イベントと、クラスタ内の状態変更に関する重要な情報通知で構成されています。状態変更の例としては、保留状態から実行状態に移行するポッドがあります。

注: Splunk AppDynamicsこのマニュアルには、Kubernetes のマニュアルへのリンクが含まれています。Kubernetes で自身のマニュアルを管理しているため、 では Kubernetes のマニュアルの精度については一切保証しません。

警告タイプの [Cluster Event] では、黄色の警告アイコン()が表示されます。ポッド、Replicaset、または展開が追加、更新、削除されると(状態の変更と呼ばれます)、クラスタエージェントはそれを情報タイプイベントとして報告し、青色の情報アイコン()が表示されます。

˚

When you configure the policy for Kubernetes events, the Events page will display the details with the event type as Custom.

You can configure alert policies with the custom Kubernetes events. For more information about configuring policies, see Configure Policies.

You can use Triggers > Custom Events panel in the lower right corner to configure Kubernetes-specific custom events to trigger the policy. See, Configure Policy Triggers.

InAdd Custom Event Filter, you can include the following:

  • Custom Event Type: Specify any of the supported event types.
  • Properties: Filter the events by using a combination of the following properties:
    • clusterName: the name of the cluster
    • namespace: the namespace of the cluster

    • kind: the kind used in the required cluster environment

    • reason: the event reason

    • name: the name of the event

Supported Event Types

  • Kubernetes New Warning
  • Kubernetes Updated Warning
  • Deployment Added
  • Deployment Deleted
  • Replicaset Added
  • Replicaset Deleted
  • Pod Added
  • Pod Deleted
  • Pod Phase Changed

クラスタイベントデータのモニター

  1. [Servers] タブをクリックします。
  2. ナビゲーションバーで [Events] を選択します。パネルには、サーバーとクラスターの両方から報告されたイベントのリストが表示されます。特定のイベントを確認するには、[Filters] オプションを使用します。
  3. 注:
    [Add] をクリックしてフィルタを追加し、使用可能なリストから必要なフィルタを選択します。
    注: フィルタは、Kubernetes イベントでのみ機能します。Custom イベントとしてラベル付けされた Kubernetes イベントをフィルタ処理できます。サポートされるイベントタイプについては、「サポートされるイベントタイプ」を参照してください。
  4. [Apply] をクリックします。イベントのリストは、選択したイベントのみを表示するようにフィルタリングされます。
  5. 個々の Cluster Event をダブルクリックします。ダイアログに [Cluster Event] の概要が表示されます。[Logs] タブにログの詳細が表示されます。失敗したポッドのログ収集の有効化」を参照してください。
  6. [X] をクリックして、ダイアログを閉じます。