Giter VIP home page Giter VIP logo

kubernetes-monitoring's Introduction

Prometheus and Grafana Kubernetes Monitoring Setup

Kubernetes 1.8+
Grafana:5.3.0
Prometheus:v2.4.3

Apply 1:

kubectl apply -f namespace.yaml
kubectl apply -f prometheus/
kubectl apply -f prometheus/node-exporter/
kubectl apply -f prometheus/kube-state-metrics/

Grafana

kubectl apply -f grafana/
kubectl --namespace grafana create configmap grafana-import-dashboards --from-file=grafana/dashboards/ -o json --dry-run | kubectl replace  -f -
kubectl apply -f grafana/import-job/job.yaml

kubectl delete -f grafana/import-job/job.yaml

Other:

kubectl apply -f prometheus/pushgateway/
kubectl apply -f prometheus/alertmanager/
kubectl apply -f prometheus/graphite-exporter/

Custom Metrics API

kubectl create namespace custom-metrics-adapter
kubectl create secret --namespace custom-metrics-adapter  tls cm-adapter-serving-certs  --key /tmp/tls.key --cert /tmp/tls.crt
kubectl apply -f custom-metrics-adapter/

kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1" | jq

Grafana certs:

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /tmp/tls.key -out /tmp/tls.crt
kubectl create secret --namespace grafana  tls grafana-secret  --key /tmp/tls.key --cert /tmp/tls.crt

kubectl apply -f grafana/

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.