diff --git a/.gitea/workflows/monitoring-deploy.yaml b/.gitea/workflows/monitoring-deploy.yaml index 908c074..d2bb29c 100644 --- a/.gitea/workflows/monitoring-deploy.yaml +++ b/.gitea/workflows/monitoring-deploy.yaml @@ -14,7 +14,7 @@ on: - 'monitoring/**' - '.gitea/workflows/monitoring**' schedule: - - cron: '0 15 * * 0' # every sunday 3 pm + - cron: '0 12 * * 0' # every sunday 12 am jobs: deploy: @@ -52,4 +52,18 @@ jobs: # Install & Upgrade helm upgrade --install promtail grafana/promtail --namespace monitoring \ --values=./monitoring/promtail/values.yaml --set config.clients[0].url=${LOKI_URL} + + - name: Deploy Telegraf + shell: bash + run: | + # add repo + helm repo add grafana https://grafana.github.io/helm-charts + # Install & Upgrade + helm upgrade --install prometheus-stack prometheus-community/kube-prometheus-stack \ + --namespace monitoring \ + --values=./monitoring/prometheus/deploy/helm/01-only-crd-and-operator.yaml \ + --values=./monitoring/prometheus/deploy//helm/02-kube-metrics.yaml \ + --values=./monitoring/prometheus/deploy/helm/03-node-exporter.yaml \ + --values=./monitoring/prometheus/deploy/helm/04-kubelet.yaml + kubectl apply -f ./monitoring/prometheus/deploy/prometheus-agent.yaml