Coder Social home page Coder Social logo

kareem-elsayed / charts-grafana Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vmware-archive/charts-grafana

0.0 1.0 0.0 1.73 MB

A no-fiddling helm chart for looking at the health of your cluster

License: Apache License 2.0

Smarty 100.00%

charts-grafana's Introduction

Grafana Helm Chart

This repo contains helm charts to deploy Prometheus and Grafana to your Kubernetes cluster. The Prometheus helm chart deploys the node_exporter and kube-state-metrics to expose cluster metrics. The Grafana helm chart comes with useful dashboards preconfigured. It also contains Pod Security Policies and is intended to work with no additional configuration for version of Pivotal Container Services 1.4+. It will also work with clusters from all major cloud providers.

dashboard

Prerequisites

Configure Helm

The following commands may need to be executed for helm to function correctly.

kubectl create serviceaccount --namespace kube-system tiller 
kubectl create clusterrolebinding tiller-cluster-rule \
--clusterrole=cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller

Install

cd ~/workspace/charts-grafana
helm install . --name cluster-health --namespace observability

Port Forwarding

Grafana

  1. Retrieve the grafana dashboard password by running the following
    # Assuming you are on a Mac OSX
    kubectl get secret cluster-health-grafana --namespace observability --output json | jq -r '.data."admin-password"' | base64 --decode
  2. Create the port forward to the Grafana dashboard
    kubectl port-forward deployment/cluster-health-grafana 3000:3000 --namespace observability
  3. Open your browser window and go to http://localhost:3000
  4. Enter the username admin and the previously retrieved password.

Prometheus

  1. Create the port forward to the Prometheus dashboard
    kubectl port-forward deployment/cluster-health-prometheus-server 9090:9090 --namespace observability
    
  2. Open your browser window and go to http://localhost:9090

Installation Caveats

Cluster Size

Prometheus includes a few deployments, such as the prometheus server, alertmanager, node exporter daemonset, and kube-state-metrics. Grafana includes a deployment as well. You should consider this when deploying this chart and sizing your cluster.

Cluster with Admission Controllers

PodSecurityPolicy

The chart has PodSecurityPolicy enabled by default. See here for more information.

SecurityContextDeny

The grafana deployment uses PodSecurityContext to configure the grafana container to run with user id 472. This means that the grafana deployment will fail on any cluster with SecurityContextDeny enabled.

charts-grafana's People

Contributors

wfernandes avatar bradylove avatar voor avatar

Watchers

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.