summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--f3s/prometheus/Justfile8
-rw-r--r--f3s/prometheus/persistence-values.yaml4
2 files changed, 12 insertions, 0 deletions
diff --git a/f3s/prometheus/Justfile b/f3s/prometheus/Justfile
index 2eae235..61e1f06 100644
--- a/f3s/prometheus/Justfile
+++ b/f3s/prometheus/Justfile
@@ -1,9 +1,17 @@
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
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
+
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 \ No newline at end of file
diff --git a/f3s/prometheus/persistence-values.yaml b/f3s/prometheus/persistence-values.yaml
index 8042369..c7f3a2b 100644
--- a/f3s/prometheus/persistence-values.yaml
+++ b/f3s/prometheus/persistence-values.yaml
@@ -1,5 +1,9 @@
prometheus:
prometheusSpec:
+ additionalScrapeConfigsSecret:
+ enabled: true
+ name: additional-scrape-configs
+ key: additional-scrape-configs.yaml
storageSpec:
volumeClaimTemplate:
spec: