malcolm
malcolm

Reputation: 320

Timeline of kubernetes events

I would like to be able to see all of the various things that happened to a kube cluster on a timeline, including when nodes were found to be dead, when new nodes were added, when pods crashed and when they were restarted.

So far the best that we have found is kubectl get event but that seems to have a few limitations:

One idea that I have is to write a pod that will use the API to watch the stream of events and log them to a file. This would let us control retention and it seems that events that occur while we are watching will not be combined, solving the second problem as well.

What are other people doing about this?

Upvotes: 22

Views: 42833

Answers (3)

Beni Cherniavsky-Paskin
Beni Cherniavsky-Paskin

Reputation: 10039

In a pinch, it might be possible to figure out what happened earlier from various log, especially the kubelet logs?

Saving events

Upvotes: 28

ZhiQiang Fan
ZhiQiang Fan

Reputation: 1048

kubernetes/heapster can persist event to gcl and influxdb, but for now there is no api to access stored data

Upvotes: 0

Ryan Cox
Ryan Cox

Reputation: 5073

Have you checked out the pod specific events tab in the Dashboard?

Some events from a cluster I have running in GKE:

enter image description here

Upvotes: 0

Related Questions