Fix prometheus and grafana Helm references (#922)

* fix prometheus references

* fix grafana
This commit is contained in:
Yaron Schneider 2020-11-16 14:28:19 -08:00 committed by GitHub
parent b314e1bd33
commit 0d732c896a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 12 deletions

View File

@ -16,20 +16,28 @@ description: "How to view Dapr metrics in a Grafana dashboard."
1. Install Grafana 1. Install Grafana
Add the Grafana Helm repo:
```bash ```bash
helm install grafana stable/grafana -n dapr-monitoring helm repo add grafana https://grafana.github.io/helm-charts
```
Install the chart:
```bash
helm install grafana grafana/grafana -n dapr-monitoring
``` ```
If you are Minikube user or want to disable persistent volume for development purpose, you can disable it by using the following command: If you are Minikube user or want to disable persistent volume for development purpose, you can disable it by using the following command:
```bash ```bash
helm install grafana stable/grafana -n dapr-monitoring --set persistence.enabled=false helm install grafana grafana/grafana -n dapr-monitoring --set persistence.enabled=false
``` ```
2. Retrieve the admin password for Grafana login 2. Retrieve the admin password for Grafana login
```bash ```bash
kubectl get secret --namespace dapr-monitoring grafana -o jsonpath="{. data.admin-password}" | base64 --decode kubectl get secret --namespace dapr-monitoring grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
cj3m0OfBNx8SLzUlTx91dEECgzRlYJb60D2evof1% cj3m0OfBNx8SLzUlTx91dEECgzRlYJb60D2evof1%
``` ```
@ -131,9 +139,8 @@ You can find `grafana-actor-dashboard.json`, `grafana-sidecar-dashboard.json` an
## References ## References
* [Set up Prometheus and Grafana]({{< ref grafana.md >}}) * [Set up Prometheus and Grafana]({{< ref grafana.md >}})
* [Prometheus Installation](https://github.com/helm/charts/tree/master/stable/prometheus-operator) * [Prometheus Installation](https://github.com/prometheus-community/helm-charts)
* [Prometheus on Kubernetes](https://github.com/coreos/kube-prometheus) * [Prometheus on Kubernetes](https://github.com/coreos/kube-prometheus)
* [Prometheus Kubernetes Operator](https://github.com/helm/charts/tree/master/stable/prometheus-operator)
* [Prometheus Query Language](https://prometheus.io/docs/prometheus/latest/querying/basics/) * [Prometheus Query Language](https://prometheus.io/docs/prometheus/latest/querying/basics/)
## Example ## Example

View File

@ -81,15 +81,16 @@ kubectl create namespace dapr-monitoring
2. Install Prometheus 2. Install Prometheus
```bash ```bash
helm repo add stable https://kubernetes-charts.storage.googleapis.com helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update helm repo update
helm install dapr-prom stable/prometheus -n dapr-monitoring helm install dapr-prom prometheus-community/prometheus -n dapr-monitoring
``` ```
If you are Minikube user or want to disable persistent volume for development purposes, you can disable it by using the following command. If you are Minikube user or want to disable persistent volume for development purposes, you can disable it by using the following command.
```bash ```bash
helm install dapr-prom stable/prometheus -n dapr-monitoring --set alertmanager.persistentVolume.enable=false --set pushgateway.persistentVolume.enabled=false --set server.persistentVolume.enabled=false helm install dapr-prom prometheus-community/prometheus -n dapr-monitoring
--set alertmanager.persistentVolume.enable=false --set pushgateway.persistentVolume.enabled=false --set server.persistentVolume.enabled=false
``` ```
3. Validation 3. Validation
@ -114,7 +115,5 @@ dapr-prom-prometheus-server-694fd8d7c-q5d59 2/2 Running 0
## References ## References
* [Prometheus Installation](https://github.com/helm/charts/tree/master/stable/prometheus-operator) * [Prometheus Installation](https://github.com/prometheus-community/helm-charts)
* [Prometheus on Kubernetes](https://github.com/coreos/kube-prometheus)
* [Prometheus Kubernetes Operator](https://github.com/helm/charts/tree/master/stable/prometheus-operator)
* [Prometheus Query Language](https://prometheus.io/docs/prometheus/latest/querying/basics/) * [Prometheus Query Language](https://prometheus.io/docs/prometheus/latest/querying/basics/)