-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add observability to the cluster #83
base: main
Are you sure you want to change the base?
Conversation
99362e1
to
efbad97
Compare
f4ebc2d
to
e41a419
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, just some small changes
helm repo add grafana https://grafana.github.io/helm-charts # Add Grafana Helm chart | ||
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts # Add Prometheus Helm chart | ||
helm repo update | ||
|
||
kubectl create namespace monitoring | ||
helm upgrade --install --namespace monitoring loki grafana/loki -f $(dirname $0)/loki-values.yaml --set loki.auth_enabled=false --set loki.schemaConfig=$(dirname $0)/loki-schema.yaml # Install Loki | ||
|
||
helm install kube-prometheus prometheus-community/kube-prometheus-stack --namespace monitoring -f $(dirname $0)/prometheus-config.yaml # Install Kube Prometheus Stack | ||
|
||
sleep 10 # TODO: Wait for pods | ||
POD_NAME=$(kubectl get pods --namespace monitoring -l "app.kubernetes.io/name=grafana" -o jsonpath="{.items[0].metadata.name}") | ||
kubectl --namespace monitoring wait --for=condition=ready pods/$POD_NAME --timeout=1200s | ||
kubectl --namespace monitoring port-forward service/kube-prometheus-grafana $port:80 & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can switch this to pulumi? 👀😃
grafana: | ||
defaultDashboardsTimezone: Europe/Lisbon | ||
enabled: true | ||
adminPassword: tosta-mista-789 # TODO: Change password |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a pulumi secret for the password please 🥺
Adds visualization of node stats and k8s stats through Grafana, according to #50