Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 910 Bytes

06-tutorial-metrics.md

File metadata and controls

43 lines (30 loc) · 910 Bytes

Tutorial: Collecting Metrics with Prometheus

In this Tutorial you will walk through installing Prometheus.

Deploy Prometheus

Download the prometheus configuration file:

wget https://raw.githubusercontent.com/kelseyhightower/cloud-native-demo/master/configs/prometheus.yml

Create the prometheus configmap:

kubectl create configmap prometheus \
  --namespace kube-system \
  --from-file prometheus.yml

Create the promethues replicaset:

kubectl create -f https://raw.githubusercontent.com/kelseyhightower/cloud-native-demo/master/replicasets/prometheus.yaml
kubectl get pods -n kube-system

Create the prometheus service:

kubectl create -f https://raw.githubusercontent.com/kelseyhightower/cloud-native-demo/master/services/prometheus.yaml
kubectl -n kube-system get pods
kubectl -n kube-system port-forward <prometheus-pod-name> 9090:9090