Kubernetes イベントのモニタ

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

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

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

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

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

Configure Policy for Kubernetes Events

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

Monitor Cluster Event data

  1. Click the Servers tab.
  2. On the navigation bar, select Events. A panel displays a list of events that have been reported from both servers and clusters. To check for specific events, you can use the Filters option.
  3. Click Add to add a filter and select the desired filters from the available list.
    注: The filters work only on the Kubernetes events. You can filter the Kubernetes events labeled as Custom events. For supported Event Types, see Supported Event Types.
  4. Click Apply. The list of events is filtered to show only the selected events.
  5. TheDouble-click the individual Cluster Event. A dialog displays showing a Cluster Event summary. Logs tab displays the log details. See Enable Log Collection for Failing Pods.
  6. Click X to close the dialog.