Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ari-hacks/kubernetes-monitoring
🖥 Prometheus and Grafana monitoring setup on a Kubespray Kubernetes cluster running the sock shop microservice
https://github.com/ari-hacks/kubernetes-monitoring
grafana grafana-dashboard helm3 k8s kubectl kubernetes kubespray microservice prometheus
Last synced: 20 days ago
JSON representation
🖥 Prometheus and Grafana monitoring setup on a Kubespray Kubernetes cluster running the sock shop microservice
- Host: GitHub
- URL: https://github.com/ari-hacks/kubernetes-monitoring
- Owner: ari-hacks
- Created: 2020-09-19T06:24:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-25T09:05:11.000Z (about 4 years ago)
- Last Synced: 2024-11-15T09:41:18.156Z (3 months ago)
- Topics: grafana, grafana-dashboard, helm3, k8s, kubectl, kubernetes, kubespray, microservice, prometheus
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kubernetes Monitoring
### TODOS
➜ [Install Prometheus Operator](#install-prometheus)➜ [Configure Grafana Dashboard](#configure-grafana-dashboard)
### Requirements
- Kubernetes/kubectl
- helm3Note: This setup is using [kubespray](https://github.com/kubernetes-sigs/kubespray) and the sock shop demo microservice. For cluster setup and microservice deployment instructions [click here](https://github.com/ari-hacks/kubernetes-chaos-sandbox/blob/main/gremlin/README.md#create-kubespray-cluster)
### Install Prometheus
1. Create a namespace for prometheus
```BASH
kubectl create namespace monitoring
```2. Get repo info
```BASH
helm repo add prometheus-community https://prometheus-community.github.io/helm-chartshelm repo add stable https://charts.helm.sh/stable
helm repo update
```
3. Install prometheus operator with helm charts
```BASH
helm install prometheus prometheus-community/kube-prometheus-stack --namespace monitoring```
4. Verify pods are running
```BASH
kubectl get pods -n monitoring
```
5. Access the dashboard
```BASH
kubectl port-forward $(kubectl get pods -n monitoring -o name | grep grafana) 8080:3000 -n monitoring
#defualt login admin | prom-operator
```### Configure Grafana Dashboard
1. Once logged in navigate to the home button and check out the different metrics available
```BASH
#ex/
Kubernetes/Compute Resources/Namespace(Pods)
```