Skip to content

Commit

Permalink
Added grafana
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryangr0 committed Dec 21, 2024
1 parent 32493da commit ba4795e
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 10 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,23 @@ jobs:
fi
done
- name: Deploy Grafana
run: |
for chart in ./ops/helm/grafana/*; do
echo "Processing chart $(basename "$chart")..."
if [ -d "$chart" ]; then
namespace=$(yq e '.namespace' "$chart/values.yaml" || echo "default")
echo "Deploying chart $(basename "$chart") to namespace $namespace..."
helm dependency update "$chart"
helm upgrade --install "$(basename "$chart")" "$chart" \
--namespace "$namespace" \
--create-namespace \
--values "$chart/values.yaml" \
--wait --timeout 10m \
--force
fi
done
- name: Deploy Tempo, Loki and Mimir
run: |
for chart in ./ops/helm/ingestion/*; do
Expand Down
44 changes: 34 additions & 10 deletions ops/helm/grafana/grafana/values.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,40 @@
namespace: monitoring

grafana:
enabled: true
adminUser: admin
adminPassword: admin

admin:
userKey: admin
passwordKey: admin

persistence:
type: pvc
enabled: true

plugins:
- grafana-lokiexplore-app
- grafana-exploretraces-app
- grafana-pyroscope-app
- alexanderzobnin-zabbix-app

service:
type: LoadBalancer
type: ClusterIP
port: 80
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
hosts:
- host: grafana.{{ .Values.namespace }}.{{ .Values.clusterDomain }}
paths:

# ingress:
# enabled: true
# annotations:
# kubernetes.io/ingress.class: ingress-traefik
# cert-manager.io/issuer: letsencrypt-traefik
# tls:
# - secretName: letsencrypt-traefik-grafana
# hosts:
# - grafana.{{ .Values.namespace }}.{{ .Values.clusterDomain }}
# hosts:
# - grafana.webgrip.k8s.traefik.nl
# extraPaths:
# - path: /
# backend:
# serviceName: grafana
# servicePort: 80

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ba4795e

Please sign in to comment.