Skip to content

Commit

Permalink
istio-monitoring-demo: Add prometheus as default datasource
Browse files Browse the repository at this point in the history
Signed-off-by: Dhi Aurrahman <[email protected]>
  • Loading branch information
dio committed Feb 27, 2024
1 parent a9183f2 commit 4d20b36
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/demos/istio-monitoring-demo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.0
version: 0.3.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 7 additions & 1 deletion charts/demos/istio-monitoring-demo/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# istio-monitoring-demo

![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)

Helm chart for deploying Istio Monitoring demo

Expand All @@ -17,6 +17,12 @@ Helm chart for deploying Istio Monitoring demo
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| grafana.admin.existingSecret | string | `""` | |
| grafana.datasources."datasources.yaml".apiVersion | int | `1` | |
| grafana.datasources."datasources.yaml".datasources[0].access | string | `"proxy"` | |
| grafana.datasources."datasources.yaml".datasources[0].isDefault | bool | `true` | |
| grafana.datasources."datasources.yaml".datasources[0].name | string | `"Prometheus"` | |
| grafana.datasources."datasources.yaml".datasources[0].type | string | `"prometheus"` | |
| grafana.datasources."datasources.yaml".datasources[0].url | string | `"http://prometheus:9090"` | |
| grafana.enabled | bool | `true` | |
| grafana.env.GF_AUTH_ANONYMOUS_ENABLED | string | `"true"` | |
| grafana.env.GF_AUTH_ANONYMOUS_ORG_ROLE | string | `"Admin"` | |
Expand Down
2 changes: 1 addition & 1 deletion charts/demos/istio-monitoring-demo/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ To learn more about the release, try:
$ helm get all {{ .Release.Name }}

{{ if .Values.grafana.enabled }}
Running these commands in the shell to make Grafana avaiable to access on localhost:3000:
Running these commands in the shell to make Grafana available to access on localhost:3000:

$ kubectl --namespace {{ .Release.Namespace }} port-forward svc/grafana 3000:3000
{{ end }}
10 changes: 10 additions & 0 deletions charts/demos/istio-monitoring-demo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ grafana:
service:
port: 3000

datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
isDefault: true
url: http://prometheus:9090

prometheus:
enabled: true
# To simplify the deployment, disable non-essential components
Expand Down

0 comments on commit 4d20b36

Please sign in to comment.