GithubHelp home page GithubHelp logo

nimeshkummar / kubernetes-observability-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eddiezane/kubernetes-observability-example

0.0 0.0 0.0 8 KB

From New Cluster to Insight: Deploying Monitoring and Logging to Kubernetes

License: MIT License

Makefile 63.80% Go 24.54% Shell 11.65%

kubernetes-observability-example's Introduction

Install sample app

# https://github.com/BuoyantIO/emojivoto
kubectl apply -f https://raw.githubusercontent.com/BuoyantIO/emojivoto/master/emojivoto.yml

Install Helm

helm repo add loki https://grafana.github.io/loki/charts
helm repo update
kubectl --namespace kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller

helm init --upgrade --service-account tiller

# If you installed Helm without the Service Account first
kubectl --namespace kube-system patch deploy tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'

Install Prometheus Operator and Grafana

helm install --name prom --namespace observability -f prom-custom-values.yaml stable/prometheus-operator

Install Loki

helm install --name loki --namespace observability --set loki.persistence.enabled=true --set loki.persistence.size=5Gi --set loki.persistence.storageClassName=do-block-storage loki/loki-stack

View

kubectl port-forward -n observability svc/prom-grafana 8080:80
# Visit http://localhost:8080
# Login with adimin tacocat
# Add Loki data source as http://loki:3100

Cleanup

kubectl delete -f https://raw.githubusercontent.com/BuoyantIO/emojivoto/master/emojivoto.yml
helm delete prom --purge
helm delete loki --purge
kubectl delete crd prometheuses.monitoring.coreos.com
kubectl delete crd prometheusrules.monitoring.coreos.com
kubectl delete crd servicemonitors.monitoring.coreos.com
kubectl delete crd alertmanagers.monitoring.coreos.com
sleep 5
kubectl delete namespace observability

kubernetes-observability-example's People

Contributors

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