GithubHelp home page GithubHelp logo

kube_stats's Introduction

Small utility to collect stats and information from multiple kubernetes contexts

it used the default kubectl config to loop over all contexts and loads all pods infos
then exports it to different formats, like csv

Usage

Usage of :
  -gb string
        Group output values by [none,imageName] (default "imageName")
  -kc string
        kubectl config file location. (default "/home/amaabdou/.kube/config")
  -wr string
        Write to [console,json,csv] (default "console")

example

+----------------------------------------------------------------+---------------+--------------------------------------------+----------------------+----------+
|                         CONTAINER NAME                         | CONTAINER TAG |                  POD NAME                  |      NAMESPACE       | CONTEXT  |
+----------------------------------------------------------------+---------------+--------------------------------------------+----------------------+----------+
| nginxdemos/hello                                               | latest        | myapp-pod                                  | default              | minikube |
+                                                                +               +                                            +----------------------+          +
|                                                                |               |                                            | production           |          |
+----------------------------------------------------------------+---------------+--------------------------------------------+----------------------+          +
| k8s.gcr.io/coredns                                             | 1.6.5         | coredns-6955765f44-kbxl4                   | kube-system          |          |
+                                                                +               +--------------------------------------------+                      +          +
|                                                                |               | coredns-6955765f44-s678c                   |                      |          |
+----------------------------------------------------------------+---------------+--------------------------------------------+                      +          +
| k8s.gcr.io/etcd                                                | 3.4.3-0       | etcd-minikube                              |                      |          |
+----------------------------------------------------------------+---------------+--------------------------------------------+                      +          +
| k8s.gcr.io/kube-apiserver                                      | v1.17.0       | kube-apiserver-minikube                    |                      |          |
+----------------------------------------------------------------+               +--------------------------------------------+                      +          +
| k8s.gcr.io/kube-proxy                                          |               | kube-proxy-d2kpn                           |                      |          |
+----------------------------------------------------------------+               +--------------------------------------------+                      +          +
| k8s.gcr.io/kube-controller-manager                             |               | kube-controller-manager-minikube           |                      |          |
+----------------------------------------------------------------+               +--------------------------------------------+                      +          +
| k8s.gcr.io/kube-scheduler                                      |               | kube-scheduler-minikube                    |                      |          |
+----------------------------------------------------------------+---------------+--------------------------------------------+                      +          +
| cryptexlabs/minikube-ingress-dns                               | 0.2.1         | kube-ingress-dns-minikube                  |                      |          |
+----------------------------------------------------------------+---------------+--------------------------------------------+                      +          +
| quay.io/kubernetes-ingress-controller/nginx-ingress-controller | 0.26.1        | nginx-ingress-controller-6fc5bcc8c9-pbd4b  |                      |          |
+----------------------------------------------------------------+---------------+--------------------------------------------+                      +          +
| gcr.io/k8s-minikube/storage-provisioner                        | v1.8.1        | storage-provisioner                        |                      |          |
+----------------------------------------------------------------+---------------+--------------------------------------------+----------------------+          +
| kubernetesui/metrics-scraper                                   | v1.0.2        | dashboard-metrics-scraper-7b64584c5c-d9pf2 | kubernetes-dashboard |          |
+----------------------------------------------------------------+---------------+--------------------------------------------+                      +          +
| kubernetesui/dashboard                                         | v2.0.0-beta8  | kubernetes-dashboard-79d9cd965-jfzwk       |                      |          |
+----------------------------------------------------------------+---------------+--------------------------------------------+----------------------+          +
| nginx                                                          | alpine        | nginx                                      | default              |          |
+----------------------------------------------------------------+---------------+--------------------------------------------+----------------------+----------+

kube_stats's People

Contributors

ahmedsbytes avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.