Monitoring and collecting data from Kubernetes

Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications.

More information on: http://kubernetes.io/

How it works

This plugin monitors your Kubernetes cluster.

It can give you information about your Kubernetes nodes status, services, containers, events and replication controllers.

Installation

The plugin needs to be installed together with a CoScale agent, instructions on how to install the CoScale agent can be found here. If you want to monitor Kubernetes inside Docker containers using CoScale, check out the instructions here.

The CoScale orchestrator integration works well together with the CoScale Docker and CoScale Resources plugin. These plugins gather data from all the running Docker containers as well as the host operating system resource metrics. The orchestrator allows us to tie the data together so you can retrieve performance specific metrics for your services or applications. These plugins are installed by default if you follow the instructions on how to install the CoScale agent.

Configuration

Kubernetes provides multiple ways of connecting and retrieving metrics.

  • Connect without authentication
  • Connect using credentials (username, password)
  • Connect using a token
  • Connect with client certificate (administration certificate and key)

Kubernetes is configured by default without authentication. When additional credentials are required you can connect with username/password, token or client (X509) certificate. For more information about authentication you can go to the Kubernetes docs.

Metrics

Kubernetes / Master

Name Unit Dimensions
Kubernetes capacity for persistent volume # Persistent volume
Kubernetes internal service health status   Service name
Kubernetes max number of pods in namespace # Namespace
Kubernetes number containers in pod # Pod
Kubernetes number of bound persistent volumes #  
Kubernetes number of bound persistent volumes claims #  
Kubernetes number of containers #  
Kubernetes number of containers in namespace # Namespace
Kubernetes number of daemon sets #  
Kubernetes number of daemon sets in namespace # Namespace
Kubernetes number of deployments #  
Kubernetes number of failed jobs #  
Kubernetes number of failed nodes #  
Kubernetes number of failed persistent volumes #  
Kubernetes number of jobs #  
Kubernetes number of namespaces #  
Kubernetes number of nodes #  
Kubernetes number of pending persistent volumes claims #  
Kubernetes number of persistent volumes #  
Kubernetes number of persistent volumes claims #  
Kubernetes number of pods #  
Kubernetes number of pods created in namespace # Namespace
Kubernetes number of pods in container creating state for 5 minutes #  
Kubernetes number of pods in container pending state for 5 minutes #  
Kubernetes number of pods in namespace # Namespace
Kubernetes number of pods templates in namespace # Namespace
Kubernetes number of podTemplates #  
Kubernetes number of ready containers #  
Kubernetes number of ready containers in namespace # Namespace
Kubernetes number of ready nodes #  
Kubernetes number of released persistent volumes #  
Kubernetes number of replica sets #  
Kubernetes number of replica sets in namespace # Namespace
Kubernetes number of replication controllers #  
Kubernetes number of replication controllers in namespace # Namespace
Kubernetes number of running containers #  
Kubernetes number of running containers in namespace # Namespace
Kubernetes number of running jobs #  
Kubernetes number of running pods #  
Kubernetes number of services #  
Kubernetes number of services in namespace # Namespace
Kubernetes number of stateful(pet) sets #  
Kubernetes number of stateful(pet) sets in namespace # Namespace
Kubernetes number of successful jobs #  
Kubernetes number ready containers in pod # Pod
Kubernetes number running containers in pod # Pod
Kubernetes size for persistent volume claim # Persistent volume claim
Number of executions per cron job # Cron job
Number of failed executions per cron job # Cron job
Number of successful executions per cron job # Cron job

Kubernetes / Master / Daemon sets

Name Unit Dimensions
Kubernetes number of actual replicas in daemon set # Namespace, Daemon set
Kubernetes number of containers in daemon set # Namespace, Daemon set
Kubernetes number of desired replicas in daemon set # Namespace, Daemon set
Kubernetes number of failed containers in daemon set # Namespace, Daemon set
Kubernetes number of failed pods in daemon set # Namespace, Daemon set
Kubernetes number of missing replicas in daemon set # Namespace, Daemon set
Kubernetes number of pods in daemon set # Namespace, Daemon set
Kubernetes number of running containers in daemon set # Namespace, Daemon set
Kubernetes number of running pods in daemon set # Namespace, Daemon set

Kubernetes / Master / Deployments

Name Unit Dimensions
Kubernetes number of actual replicas in deployment # Namespace, Deployment
Kubernetes number of containers in deployment # Namespace, Deployment
Kubernetes number of desired replicas in deployment # Namespace, Deployment
Kubernetes number of failed containers in deployment # Namespace, Deployment
Kubernetes number of failed pods in deployment # Namespace, Deployment
Kubernetes number of missing replicas in deployment # Namespace, Deployment
Kubernetes number of pods in deployment # Namespace, Deployment
Kubernetes number of running containers in deployment # Namespace, Deployment
Kubernetes number of running pods in deployment # Namespace, Deployment

Kubernetes / Master / Quotas

Name Unit Dimensions
Kubernetes actual object count per namespace # Namespace, Object type
Kubernetes actual pods per node #  
Kubernetes available cpu cores per node cores  
Kubernetes available cpu limits per namespace cores Namespace
Kubernetes available cpu requests per namespace cores Namespace
Kubernetes available memory limits per namespace b Namespace
Kubernetes available memory per node b  
Kubernetes available memory requests per namespace b Namespace
Kubernetes available pods per node #  
Kubernetes available storage requests per namespace b Namespace
Kubernetes maximum object count per namespace # Namespace, Object type
Kubernetes object count percentage per namespace % Namespace, Object type
Kubernetes percentage of max pods per node %  
Kubernetes used cpu limits per namespace cores Namespace
Kubernetes used cpu limits per node cores  
Kubernetes used cpu limits percentage per namespace % Namespace
Kubernetes used cpu limits percentage per node %  
Kubernetes used cpu requests per namespace cores Namespace
Kubernetes used cpu requests per node cores  
Kubernetes used cpu requests percentage per namespace % Namespace
Kubernetes used cpu requests percentage per node %  
Kubernetes used memory limits per namespace b Namespace
Kubernetes used memory limits per node b  
Kubernetes used memory limits percentage per namespace % Namespace
Kubernetes used memory limits percentage per node %  
Kubernetes used memory requests per namespace b Namespace
Kubernetes used memory requests per node b  
Kubernetes used memory requests percentage per namespace % Namespace
Kubernetes used memory requests percentage per node %  
Kubernetes used storage requests per namespace b Namespace
Kubernetes used storage requests percentage per namespace % Namespace

Kubernetes / Master / Replica sets

Name Unit Dimensions
Kubernetes number of actual replicas in replica set # Namespace, Replica set
Kubernetes number of containers in replica set # Namespace, Replica set
Kubernetes number of desired replicas in replica set # Namespace, Replica set
Kubernetes number of failed containers in replica set # Namespace, Replica set
Kubernetes number of failed pods in replica set # Namespace, Replica set
Kubernetes number of missing replicas in replica set # Namespace, Replica set
Kubernetes number of pods in replica set # Namespace, Replica set
Kubernetes number of running containers in replica set # Namespace, Replica set
Kubernetes number of running pods in replica set # Namespace, Replica set

Kubernetes / Master / Replication controllers

Name Unit Dimensions
Kubernetes number of actual replicas in replication controller # Namespace, Replication controller
Kubernetes number of containers in replication controller # Namespace, Replication controller
Kubernetes number of desired replicas in replication controller # Namespace, Replication controller
Kubernetes number of failed containers in replication controller # Namespace, Replication controller
Kubernetes number of failed pods in replication controller # Namespace, Replication controller
Kubernetes number of missing replicas in replication controller # Namespace, Replication controller
Kubernetes number of pods in replication controller # Namespace, Replication controller
Kubernetes number of running containers in replication controller # Namespace, Replication controller
Kubernetes number of running pods in replication controller # Namespace, Replication controller

Kubernetes / Master / Services

Name Unit Dimensions
Kubernetes number of containers in service # Namespace, Service
Kubernetes number of failed containers in service # Namespace, Service
Kubernetes number of running containers in service # Namespace, Service

Kubernetes / Master / Stateful sets

Name Unit Dimensions
Kubernetes number of actual replicas in stateful(pet) set # Namespace, Stateful set
Kubernetes number of containers in stateful(pet) set # Namespace, Stateful set
Kubernetes number of desired replicas in stateful(pet) set # Namespace, Stateful set
Kubernetes number of failed containers in stateful(pet) set # Namespace, Stateful set
Kubernetes number of failed pods in stateful(pet) set # Namespace, Stateful set
Kubernetes number of missing replicas in stateful(pet) set # Namespace, Stateful set
Kubernetes number of pods in stateful(pet) set # Namespace, Stateful set
Kubernetes number of running containers in stateful(pet) set # Namespace, Stateful set
Kubernetes number of running pods in stateful(pet) set # Namespace, Stateful set

Events

Name Description Attributes
Events generated when containers start Kubernetes exitCode
Internal Kubernetes events Kubernetes component, reason, namespace, kind
Events related to Kubernetes ScheduledJobs/CronJobs Kubernetes exitCode, executionTime, hostIP, jobUID, cronJob
Events for pods that enter a failed state Kubernetes podName, state, restarts
KUBELET service state watcher State watcher status