Code Monkey home page Code Monkey logo

kube-prometheus-chart's Introduction

kube-prometheus-chart

Helm chart to monitor a kubernetes cluster created using Rancher

This is basically a fork of the CoreOS team's kube-prometheus chart. See https://github.com/coreos/prometheus-operator/tree/master/helm/kube-prometheus.

Helm

We are using Helm along with Quay.io to host our Helm charts. See https://github.com/app-registry/appr-helm-plugin and https://coreos.com/blog/quay-application-registry-for-kubernetes.html.

See https://docs.helm.sh for more about Helm.

Prerequisites

helm repo add opsgoodness http://charts.opsgoodness.com
helm install opsgoodness/prometheus-operator --version 0.0.6 --name po

Installing this chart

To install with release name my-release run:

helm registry install quay.io/3dsim/kube-prometheus --name=my-release --set grafana.dataSourceURL=<url of prometheus> --set prometheus.externalUrl=<url of prometheus> --set prometheus.externalLabels.env=<env>

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Customizing this chart

See values.yaml for configuration options.

Use --set syntax to set a value:

helm registry install quay.io/3dsim/kube-prometheus --name=my-release --set resources.limits.cpu=300m

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

helm registry install quay.io/3dsim/kube-prometheus --name=my-release -f values.yaml

Adding new Grafana dashboards

  • Create the dashboard in Grafana UI.
  • Export the dashboard as JSON.
  • Insert exported JSON in the template below:
{
  "dashboard": {
      < Paste exported JSON here >
  },
  "inputs": [
    {
      "name": "DS_PROMETHEUS",
      "pluginId": "prometheus",
      "type": "datasource",
      "value": "prometheus"
    }
  ],
  "overwrite": true
}
  • Add to the grafana.serverDashboardFiles field in values.yaml

Developers

If you make changes and want to push a new version to quay.io, do the following...

  1. Bump the version in Chart.yaml.
  2. If you modified the dependencies in requirements.yaml, run the following commands to update them. (Currently dependencies are pushed to quay.io repo, and checked into github.)
helm repo add opsgoodness http://charts.opsgoodness.com
helm repo add cloudposse https://charts.cloudposse.com/incubator
rm -rf charts/ appr_charts/
helm registry dep --overwrite
helm dep build

The above steps were taken from this github comment 3. Login to quay.io (if you haven't previously)

helm registry login -u <your username> quay.io
  1. Push new version
helm registry push --namespace 3dsim quay.io

See https://github.com/app-registry/appr-helm-plugin#create-and-push-your-own-chart for more info.

  1. Commit all outstanding changes to github

kube-prometheus-chart's People

Contributors

ryanwalls 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.