Giter VIP home page Giter VIP logo

kepler-ansible's Introduction

kepler-ansible

The idea

Kepler has a great operator for Kubernetes/OpenShift environments. It has Grafana integration, for these environments it looks pretty complete. It's also runnable on bare Linux hosts. This is where it's missing features at the moment.

We're going to make ansible playbooks for getting insight into energy consumption of a wide range of hosts. For environments that are not containerized, but still run on just Linux systems, whether VM's or BM's (spoiler alert, a lot of companies still rely on this).

Known limitations

  • Currently not running in container which is possible
  • This means only RHEL based hosts are supported since only .rpm is given

Usage

ansible-navigator run kepler-install.yml -m stdout --enable-prompts

This will install Kepler on selected systems

These can be scraped using various methods, one of which is Prometheus agent.

Install Prometheus, for example with Ansible: https://github.com/prometheus-community/ansible/tree/main/roles/prometheus

The following example config can be used to collect log data on a central host:

global:
  scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.

scrape_configs:
  - job_name: dc_prometheus
    honor_labels: true
    metrics_path: /metrics
    params:
      match[]:
        - '{__name__=~"^job:.*"}' # Request all job-level time series
    static_configs:
      - targets:
        # YOUR TARGETS GO HERE:
        - <ip or hostname>

TODO

We now have a very simple install setup but it can be improved upon

  • Run kepler in container instead of directly on host
  • Add log centralization?
  • ...

kepler-ansible's People

Contributors

stef16robbe avatar

Watchers

 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.