https://github.com/trstringer/k8s-prometheus-grafana-dashboard-deployment
https://github.com/trstringer/k8s-prometheus-grafana-dashboard-deployment
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/trstringer/k8s-prometheus-grafana-dashboard-deployment
- Owner: trstringer
- Created: 2017-11-15T22:31:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-16T13:16:51.000Z (over 8 years ago)
- Last Synced: 2024-10-11T15:07:43.538Z (over 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prometheus/Grafana/Dashboard to Kubernetes
These scripts setup Prometheus, Grafana, and the Grafana datasource and dashboards to monitor the local Kubernetes cluster
## Scripted Setup (recommended)
Run `$ ./setup`
Upon completion, navigate to `localhost:3000` and use the following credentials:
- Username: `admin`
- Password: retrieve from `$ kubectl get secret dashboard-grafana -o jsonpath="{.data.grafana-admin-password}" | base64 --decode`
You should see a functioning Kubernetes dashboard
Because this script sets up a background job for port forwarding, when you are done you can press any key to kill port forwarding and complete the script
## Manual Setup
1. `$ helm install --name monitoring -f prometheus_values.yaml stable/prometheus`
1. `$ helm install --name dashboard stable/grafana`
1. Wait for the Prometheus server and Grafana pods to come up
1. `$ kubectl port-forward 3000:3000`
1. `$ ./create_datasource.sh` (creates the Prometheus datasource in the Grafana instance)
1. `$ ./create_dashboard.sh` (pulls down the [grafana.com Kubernetes dashboard](https://grafana.com/dashboards/315))
1. Navigate to `localhost:3000` in your browser
1. Use login username `admin` and to retrieve the password run `$ kubectl get secret dashboard-grafana -o jsonpath="{.data.grafana-user-password}" | base64 --decode` as the password
1. View the Kubernetes dashboard