Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

Process-ing
Copy link
Contributor

@Process-ing Process-ing commented Sep 19, 2024

Adds visualization of node stats and k8s stats through Grafana, according to #50

@Process-ing Process-ing marked this pull request as ready for review November 9, 2024 01:50
@Process-ing Process-ing requested a review from limwa November 9, 2024 01:51
@Process-ing Process-ing force-pushed the feature/observability branch from f4ebc2d to e41a419 Compare November 9, 2024 19:34
Copy link
Member

@limwa limwa left a 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

Comment on lines +5 to +17
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 &
Copy link
Member

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
Copy link
Member

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 🥺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants