k8s

Kubernetes Concept 10

k8s sharing

Posted by frankie on July 22, 2019

Google Kubernetes Engine (GKE) Logging and Monitoring

  • Use Stackdriver to monitor and manage the availability and performance
  • Locate and inspect Kubernetes logs
  • Perform forensic analysis of logs
  • Monitor performance
  • Create probes for wellness checks on live applications

Stackdriver

Imgur

Imgur

Imgur

Imgur

Metrics represents the bottleneck, which event shows the errors.

Imgur

Imgur

Imgur

Imgur

Logging

Imgur

GKE automatically streams it’s logs to Stackdriver to give you better visibility into the events and activity of your cluster.

Imgur

Kubernetes native logging

Logs from Kubernetes system components such as Kubelets and KubeProxy are stored in each node’s file system in its /var/log directory.

Imgur

Logging with Kubernetes and Stackdriver

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Monitoring

Service reliability hierarchy Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Probes

Service dependencies

Imgur

Imgur

Imgur

Imgur

If the request returns with a code range from 200 to 400, kubelet considers the container healthy.

Imgur

Imgur