-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Prometeus and Grafana charts (#41)
* Update Prometeus and Grafana charts - Update the README.md file - Update the Chart.yaml file. Add dependencies to the prometheus and grafana charts - Update the values.yaml file. Using custom values for Rahti - Update the values.schema.json file. New schema for the values.yaml file - Update the templates/NOTES.txt file. Add the instructions to create the routes for Grafana and Prometheus * Add Routes. Edit NOTES.txt
- Loading branch information
Showing
19 changed files
with
456 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
apiVersion: v2 | ||
name: prometheus-grafana-helm | ||
dependencies: | ||
- name: prometheus | ||
repository: https://prometheus-community.github.io/helm-charts | ||
version: 27.5.x | ||
- name: grafana | ||
repository: https://grafana.github.io/helm-charts | ||
version: 8.10.x | ||
description: Prometheus and Grafana Helm Chart for Rahti platform | ||
Link to the repo https://github.com/CSCfi/helm-charts | ||
version: 1.1.1 | ||
version: 2.0.0 | ||
sources: | ||
- https://github.com/CSCfi/helm-charts | ||
icon: https://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/Grafana_icon.svg/351px-Grafana_icon.svg.png | ||
icon: https://miro.medium.com/v2/resize:fit:640/format:webp/0*4G5AVIBCAKMU1Ctl.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
======================================= | ||
======================================== | ||
CSC Prometheus-Grafana Helm deployed | ||
======================================= | ||
======================================== | ||
=========== | ||
GRAFANA | ||
=========== | ||
Wait a few seconds. Time for the application to be fully deployed. | ||
|
||
Get the Grafana application URL by running these commands: | ||
|
||
export GRAFANA=$(oc get route --namespace={{ .Release.Namespace }} -o yaml | yq '.items[] | select(.metadata.name == "{{ .Values.grafana.appName }}-route") .spec.host' -r) | ||
export GRAFANA=$(oc get route --namespace={{ .Release.Namespace }} -o yaml | yq '.items[] | select(.metadata.name == "grafana") .spec.host' -r) | ||
echo "GRAFANA server URL: http://$GRAFANA" | ||
|
||
The password for the access is generated randomly. | ||
To retrieve the information, run these commands: | ||
|
||
echo Username: $(oc get secret --namespace={{ .Release.Namespace }} {{ .Values.grafana.appName }} -o jsonpath="{.data.admin-username}" | base64 -d) | ||
echo Password: $(oc get secret --namespace={{ .Release.Namespace }} {{ .Values.grafana.appName }} -o jsonpath="{.data.admin-password}" | base64 -d) | ||
echo Username: $(oc get secret --namespace={{ .Release.Namespace }} {{ .Release.Name }}-grafana -o jsonpath="{.data.admin-user}" | base64 -d) | ||
echo Password: $(oc get secret --namespace={{ .Release.Namespace }} {{ .Release.Name }}-grafana -o jsonpath="{.data.admin-password}" | base64 -d) | ||
|
||
The Route to Prometheus is not deployed by default. If you want to access Prometheus, you can type this command: | ||
|
||
oc create route edge prometheus-route --service={{ .Values.prometheus.appName }}-service --insecure-policy='Redirect' --port=9090 | ||
======================== | ||
PROMETHEUS (OPTIONAL) | ||
======================== | ||
The Route to Prometheus is not deployed by default. You can change the behaviour by setting `true` in the `values.yaml` | ||
or you can type this command: | ||
|
||
And then, you can retrieve the Prometheus URL by running these commands: | ||
oc --namespace {{ .Release.Namespace }} create route edge prometheus --service={{ .Release.Name }}-prometheus-server --insecure-policy='Redirect' --port=9090 | ||
|
||
export PROMETHEUS=$(oc get route --namespace={{ .Release.Namespace }} -o yaml | yq '.items[] | select(.metadata.name == "{{ .Values.prometheus.appName }}-route") .spec.host' -r) | ||
You can retrieve the Prometheus URL by running these commands: | ||
|
||
export PROMETHEUS=$(oc get route --namespace={{ .Release.Namespace }} -o yaml | yq '.items[] | select(.metadata.name == "prometheus") .spec.host' -r) | ||
echo "PROMETHEUS server URL: http://$PROMETHEUS" |
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
charts/prometheus-grafana/templates/grafana/configmap.yaml
This file was deleted.
Oops, something went wrong.
61 changes: 0 additions & 61 deletions
61
charts/prometheus-grafana/templates/grafana/deployment.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.