Code Monkey home page Code Monkey logo

kuberhealthy-grafana-demo's Introduction

kuberhealthy-grafana-demo

Configs to setup kuberhealthy with Grafana and Prometheus.

Prerequisites

  • Docker
  • kind (or other tool to run k8s locally e.g. K3s)
  • Helm (version 3.xx or higher)

How to Install

  1. Add the helm repos
helm repo add kuberhealthy https://kuberhealthy.github.io/kuberhealthy/helm-repos
helm repo add grafana https://grafana.github.io/helm-charts
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
  1. Install Kuberhealthy
helm upgrade --install kuberhealthy --create-namespace -f kuberhealthy/values.yaml kuberhealthy/kuberhealthy -n kuberhealthy

By default there are only one check enabled (deployment check).

  1. Install Prometheus
helm upgrade --install prometheus --create-namespace -f prometheus/values.yaml prometheus-community/prometheus -n prometheus

To check if prometheus is working and is getting the kuberhealthy metrics, make a port-forward:
kubectl port-forward svc/prometheus-server 8000:80 -n prometheus

If everything is working, you will see the target in http://localhost:8000/targets?search=kuberhealthy.

  1. Install Grafana
helm upgrade --install grafana --create-namespace -f grafana/values.yaml grafana/grafana -n grafana

Accessing the Grafana Instance

To access the Grafana instance:

kubectl port-forward svc/grafana 3000:80 -n grafana

The user is admin and the password is $ecret. You can see the kuberhealthy dashboard at http://localhost:3000/d/kuberhealthy/kuberhealthy.

kuberhealthy-grafana-demo's People

Contributors

edsoncelio avatar usmangt avatar

Stargazers

Lindemberg-Chagas avatar

Watchers

 avatar  avatar

Forkers

usmangt

kuberhealthy-grafana-demo's Issues

Create the pipeline to build and push the custom check image

name: ci

on:
  push:
    branches:
      - main

jobs:
  docker:
    runs-on: ubuntu-22.04
    steps:
      -
        name: Set up QEMU
        uses: docker/setup-qemu-action@v3
      -
        name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3
      -
        name: Login to Docker Hub
        uses: docker/login-action@v3
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      -
        name: Build and push
        uses: docker/build-push-action@v6
        with:
          context: ./custom-check-demo/
          push: true
          tags: user/app:latest

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.