Monitor Kubernetes Events
There are two event types in Kubernetes:
- Normal events
- Warning events
See Application Introspection and Debugging for more information on Kubernetes events. Splunk AppDynamics reports a subset of these as Cluster Events. They are comprised of Kubernetes warning events and important informational notices concerning state changes in the cluster. An example of a state change is a pod transitioning from a pending to a running state.
A Cluster Event of type warning displays a yellow warning icon. When a Pod, Replicaset, or Deployment gets added, updated, or deleted, otherwise known as a state change, the Cluster Agent reports it as an Info type event and displays a
blue info icon.
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