Giter Club home page Giter Club logo

thanos-metrics-analyzer's Introduction

thanos-metrics-analyzer

A tool to connect to list of thanos endpoints and compute recommended CPU and memory settings , based on historic usage and resource request.

Run on your laptop :

  • Have the ./input/thanos.json file updated with your thanos urls and respective tokens
  • Update the ./recommend.sh file with the valid GRAFANA_DASHBOARD_UID. (Default uid is 85a562078cdf77779eaa1add43ccec1e. The uid is available in the bottom part of the configmap grafana-dashboard-k8s-compute-resources-namespace-pods.)
  • run shell script ./recommend.sh

Output :

  • Go to the logs folder and look for .csv files with recommendations. CSV files are named after the index order of the thanos url.

Run as a Kubernetes Job :

  • Have the ./charts/job.yaml file updated with your image pull secret
  • Have the ./charts/configmap.yaml file updated with your thanos urls and respective tokens
  • Have the ./charts/pvc.yaml file updated with your storageclass name
  • run oc apply -f ./charts

Output :

  • Go to the current date folder in the PVC mount and look for .csv files with recommendations. CSV files are named after the index order of the thanos url.
  • Charts directory include a sleeping pod that can be used to access the PVC mount

For more details to understand on how the system works, proceed here

thanos-metrics-analyzer's People

Contributors

xrajesh avatar dvandra avatar bjoydeep avatar anxhela21 avatar gizzi-rh avatar asamal4 avatar raagupta 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.