GithubHelp home page GithubHelp logo

kram's Introduction

Kram - Kubernetes Resource Metrics Printer

Kram is a command-line tool for retrieves resource metrics for Kubernetes namespaces and pods and prints them in a tabular format.

Last Build

Go Build & Release

Prerequisites

Before using this application, ensure you have the following prerequisites:

  • Go installed on your system. (to build)
  • kubectl configured with access to your Kubernetes cluster.

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/VegaCorporoptions/Kram
cd your-repo

Build the Go application:

go build .

Download Kram Executable

You can download the executable for Kram directly from the latest release with its version. This allows you to use Kram without the need to build it yourself. Here are the steps to download the executable for your system:

  1. Visit the Releases page.

Usage

To list metrics for all namespaces, run the application without any arguments:

kram

To list metrics for a specific namespace, provide the namespace name as an argument:

kram <namespace>

Application will display the resource usage and limits for pods within the specified namespace.

Output

The application outputs (kram) the following metrics in a tabular format:

Namespace Pods CPU Usage CPU Request CPU Limit Mem Usage Mem Request Mem Limit
example-namespace 5 100 Mi 200 Mi 300 Mi 500 Mo 600 Mo 700 Mo
another-namespace 3 50 Mi 100 Mi 150 Mi 250 Mo 300 Mo 350 Mo
... ... ... ... ... ... ... ...

The application outputs (kram networking) the following metrics in a tabular format:

Metrics for Namespace: networking

Pods Container CPU Usage CPU Request CPU Limit Mem Usage Mem Request Mem Limit
ingress-nginx-controller-974dcfff4-7hcbv controller 3 Mi 1000 Mi 1000 Mi 142 Mo 512 Mo 1024 Mo
ingress-nginx-controller-974dcfff4-mb5fv controller 3 Mi 1000 Mi 1000 Mi 134 Mo 512 Mo 1024 Mo
... ... ... ... ... ... ... ...

Demo

kram

License

This project is licensed under the MIT License. See the LICENSE file for details.

kram's People

Contributors

paulpowershell 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.