about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tools/prometheus/Chart.yaml10
-rw-r--r--tools/prometheus/templates/network-policy.yaml21
-rw-r--r--tools/prometheus/values.yaml9
3 files changed, 40 insertions, 0 deletions
diff --git a/tools/prometheus/Chart.yaml b/tools/prometheus/Chart.yaml
new file mode 100644
index 0000000..12854a2
--- /dev/null
+++ b/tools/prometheus/Chart.yaml
@@ -0,0 +1,10 @@
+apiVersion: v2
+name: prometheus
+description: A Helm chart for deploying Prometheus and kube-prometheus-stack
+version: 0.1.0
+appVersion: "2.26.0"
+dependencies:
+  - name: prometheus
+    version: 25.22.0
+    repository: "https://prometheus-community.github.io/helm-charts"
+
diff --git a/tools/prometheus/templates/network-policy.yaml b/tools/prometheus/templates/network-policy.yaml
new file mode 100644
index 0000000..981d050
--- /dev/null
+++ b/tools/prometheus/templates/network-policy.yaml
@@ -0,0 +1,21 @@
+apiVersion: networking.k8s.io/v1
+kind: NetworkPolicy
+metadata:
+  name: allow-grafana-to-prometheus
+  namespace: monitoring
+spec:
+  podSelector:
+    matchLabels:
+      app.kubernetes.io/name: prometheus
+  policyTypes:
+    - Ingress
+  ingress:
+    - from:
+        - podSelector:
+            matchLabels:
+              app.kubernetes.io/name: grafana
+      ports:
+        - protocol: TCP
+          port: 9090
+        - protocol: TCP
+          port: 80
diff --git a/tools/prometheus/values.yaml b/tools/prometheus/values.yaml
new file mode 100644
index 0000000..c8385b5
--- /dev/null
+++ b/tools/prometheus/values.yaml
@@ -0,0 +1,9 @@
+prometheus:
+  alertmanager:
+    enabled: true
+
+  pushgateway:
+    enabled: true
+
+  server:
+    enabled: true