An open API service indexing awesome lists of open source software.

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

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