Git Product home page Git Product logo

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

bradylove avatar voor avatar wfernandes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

charts-grafana's Issues

Configuring GitBot is recommended

Pivotal provides the GitBot service to synchronize pull requests and/or issues made against public GitHub repos with Pivotal Tracker projects. This service does not track individual commits.

If you are a Pivotal employee, you can configure Gitbot to sync your GitHub repo to your Pivotal Tracker project with a pull request. An ask+cf@ ticket is the fastest way to get write access if you get a 404 to the config repo.

If you do not want have pull requests and/or issues copied from GitHub to Pivotal Tracker, you do not need to take any action.

If there are any questions, please reach out to [email protected].

test issue

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

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.