summaryrefslogtreecommitdiff
path: root/f3s/prometheus/Justfile
blob: 00e8f8ab26b7b718c5a394cf9a24a5a02af1f6f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
install:
    kubectl apply -f persistent-volumes.yaml
    kubectl create secret generic additional-scrape-configs --from-file=additional-scrape-configs.yaml -n monitoring --dry-run=client -o yaml | kubectl apply -f -
    helm install prometheus prometheus-community/kube-prometheus-stack --namespace monitoring -f persistence-values.yaml
    kubectl apply -f freebsd-recording-rules.yaml
    kubectl apply -f openbsd-recording-rules.yaml
    just -f grafana-ingress/Justfile install

upgrade:
    kubectl create secret generic additional-scrape-configs --from-file=additional-scrape-configs.yaml -n monitoring --dry-run=client -o yaml | kubectl apply -f -
    helm upgrade prometheus prometheus-community/kube-prometheus-stack --namespace monitoring -f persistence-values.yaml
    kubectl apply -f freebsd-recording-rules.yaml
    kubectl apply -f openbsd-recording-rules.yaml

uninstall:
    just -f grafana-ingress/Justfile delete
    helm uninstall prometheus --namespace monitoring
    kubectl delete secret additional-scrape-configs -n monitoring || true
    kubectl delete -f persistent-volumes.yaml