-
Install helm-docs.
-
Pre-commit hook install the pre-commit binary. Then run:
pre-commit install pre-commit install-hooks
-
Install Helm. Please refer to Helm's documentation to get started.
Install dependency helm chart monitoring platform this will install prometheus, grafana, influxdb helm chart. These charts are defined in Chart.yaml file
helm dependency update ./monitoring-stack
helm dependency build ./monitoring-stack
Helm must be installed to use Monitoring Platform. Please refer to Helm's documentation to get started.
Add helm repo:
helm repo add monitoring-charts https://glaciation-heu.github.io/monitoring-stack/helm-charts
Get values yaml file and customize it for your environment:
helm show values monitoring-charts/monitoring-stack > values.yaml
Please notice that you need to create a secret with a Slack Webhook url manually, otherwise the alertmanager will not be able to work properly.
You can create the secret with the following command, but you need to replace the your/webhook/url
with your actual Slack Webhook url, and the name-of-namespace-of-monitoring-stack
with the namespace where the monitoring stack is installed:
kubectl create secret generic alertmanager-secrets \
-n name-of-namespace-of-monitoring-stack \
--from-literal="slack-api-url=https://hooks.slack.com/services/your/webhook/url"
Install the monitoring stack:
helm install ms monitoring-charts/monitoring-stack --values ./values.yaml
port forward prometheus server service
kubectl port-forward svc/<release name>-prometheus-server 8080:80
port forward grafana service
kubectl port-forward service/<release name>-grafana 3000:80
Get grafana password
kubectl get secret <release name>-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo