Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/code4mk/k8s-easy-prometheus-setup
easily setup prometheus (kube-prometheus-stack) on k8s
https://github.com/code4mk/k8s-easy-prometheus-setup
grafana k8s-monitoring k8s-prometheus-grafana prometheus sdeops
Last synced: about 1 month ago
JSON representation
easily setup prometheus (kube-prometheus-stack) on k8s
- Host: GitHub
- URL: https://github.com/code4mk/k8s-easy-prometheus-setup
- Owner: code4mk
- Created: 2024-06-02T18:26:50.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-06T11:45:55.000Z (7 months ago)
- Last Synced: 2024-06-06T13:15:23.372Z (7 months ago)
- Topics: grafana, k8s-monitoring, k8s-prometheus-grafana, prometheus, sdeops
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🚀 Setup Prometheus (kube-prometheus-stack) on Kubernetes
Easily set up Prometheus (kube-prometheus-stack) on Kubernetes and configure Prometheus, Grafana, and Alertmanager.
# 🔧 Manual Process
## 📥 Add Helm Repo
```bash
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
```## 🏷️ Create Namespace
```bash
kubectl create namespace monitoring
```## 🔑 Add Grafana Secrets (Alert Credentials: Email, Slack, etc.)
```bash
kubectl apply -f grafana-secret.yml
```### 🔐 Base64 Generate
```bash
echo -n 'the_data' | base64
```## 🛠️ Configuration
You can modify the config data inside the config folder.```bash
helm uninstall prometheus -n monitoring
```# Automate Process with bash script
```bash
./setup-prometheus.sh
```## 📈 Install Prometheus
```bash
helm install prometheus prometheus-community/kube-prometheus-stack -n monitoring -f config/grafana.yml -f config/prometheus.yml -f config/alert-manager.yml
```## ⬆️ Upgrade
```bash
helm upgrade prometheus prometheus-community/kube-prometheus-stack -n monitoring -f config/grafana.yml -f config/prometheus.yml -f config/alert-manager.yml
```## ❌ Uninstall
```bash
helm uninstall prometheus -n monitoring
```# 🤖 Automate Process with Bash Script
```bash
./setup-prometheus.sh
```