summaryrefslogtreecommitdiff
path: root/f3s/prometheus
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-12-06 22:49:32 +0200
committerPaul Buetow <paul@buetow.org>2025-12-06 22:49:32 +0200
commit39745ea1a3db1ba83390f1d3e1ad1893fa4031b7 (patch)
treead440b46b7eba865dbd6a9ed21d1eb51aa7ef482 /f3s/prometheus
parent1bea42d4e2dff36eef577d22be879b2582e96eb9 (diff)
more on this
Diffstat (limited to 'f3s/prometheus')
-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: