Giter Club home page Giter Club logo

demo-prometheus's Introduction

Pre-requisite

An up and running k8s cluster

NOTE: Successfully tested on kind-v0.6.1 (2020-01-10) and helm-v3.0.1

Ex1: Install prometheus-operator

./install.sh

# Prometheus access:
kubectl port-forward -n monitoring prometheus-prometheus-stack-kube-prom-prometheus-0 9090

# Grafana access:
# login as admin with password prom-operator
kubectl port-forward $(kubectl get  pods --selector=app.kubernetes.io/name=grafana -n  monitoring --output=jsonpath="{.items..metadata.name}") -n monitoring  3000 &

# Alertmanager UI access
kubectl port-forward -n monitoring svc/alertmanager-operated 9093:9093 

Ex2: Install metric-server

NOTE: Successfully tested on kind-v0.6.1 (2020-01-10)

Enable 'kubectl top' command and hpa.

# See https://github.com/kubernetes-incubator/metrics-server
wget https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.3.7/components.yaml

# Allow insecure tls, because of self-signed certificate
diff -u2 components.yaml.1 components.yaml 
--- components.yaml.1	2020-08-25 09:20:38.000000000 +0200
+++ components.yaml	2020-09-22 23:46:05.873971737 +0200
@@ -89,4 +89,5 @@
           - --cert-dir=/tmp
           - --secure-port=4443
+          - --kubelet-insecure-tls
         ports:
         - name: main-port

# Create metrics-server and wait for it to work
kubectl apply -f components.yaml

demo-prometheus's People

Contributors

fjammes avatar

Watchers

 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.