Skip to content

Commit

Permalink
Deploy Grafana, Prometheus, Loki stack
Browse files Browse the repository at this point in the history
  • Loading branch information
sunu committed Nov 30, 2024
1 parent 138d1ef commit 5086b67
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ jobs:
run: |
helm repo add ollama-helm https://otwld.github.io/ollama-helm/
helm repo add langfuse https://langfuse.github.io/langfuse-k8s
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts
helm repo update
- name: Helm Deploy Ollama
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
Expand All @@ -106,6 +108,23 @@ jobs:
--set postgresql.auth.password=${{ secrets.DATABASE_PASSWORD }}
--set langfuse.nextauth.secret=${{ secrets.LANGFUSE_NEXTAUTH_SECRET }}
--set langfuse.salt=${{ secrets.LANGFUSE_SALT }}
- name: Helm Deploy Kube Prometheus Stack
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
working-directory: ./helm
run: >
helm upgrade --install
kube-prometheus-stack
--namespace support
--create-namespace
prometheus-community/kube-prometheus-stack
-f support/kube-prometheus-stack/values.yaml
--set grafana.adminPassword=${{ secrets.GRAFANA_ADMIN_PASSWORD }}
- name: Helm Deploy Loki
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
working-directory: ./helm
run: >
helm upgrade --install loki support/loki -f support/loki/loki-values.yaml
# Deploy Zeno instances
- name: Helm Deploy Zeno
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
working-directory: ./helm
Expand Down
3 changes: 3 additions & 0 deletions helm/support/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
grafana:
adminPassword:
adminUser: "admin"
16 changes: 16 additions & 0 deletions helm/support/loki/loki-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
grafana:
enabled: false

prometheus:
enabled: false
alertmanager:
enabled: false
persistentVolume:
enabled: false
server:
persistentVolume:
enabled: false

loki:
image:
tag: 2.9.10 # 3.x doesn't work well with loki-stack helm chart

0 comments on commit 5086b67

Please sign in to comment.