summaryrefslogtreecommitdiff
path: root/data.d/k3s-master/manifests.d/tyilnet/monitoring
diff options
context:
space:
mode:
Diffstat (limited to 'data.d/k3s-master/manifests.d/tyilnet/monitoring')
-rw-r--r--data.d/k3s-master/manifests.d/tyilnet/monitoring/grafana/helm-chart.yaml33
-rw-r--r--data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus-exporter-postgresql/helm-chart.yaml16
-rw-r--r--data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus/helm-chart.yaml29
-rw-r--r--data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus/persistent-volume-claim.yaml14
-rw-r--r--data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus/persistent-volume.yaml21
5 files changed, 113 insertions, 0 deletions
diff --git a/data.d/k3s-master/manifests.d/tyilnet/monitoring/grafana/helm-chart.yaml b/data.d/k3s-master/manifests.d/tyilnet/monitoring/grafana/helm-chart.yaml
new file mode 100644
index 0000000..20fc702
--- /dev/null
+++ b/data.d/k3s-master/manifests.d/tyilnet/monitoring/grafana/helm-chart.yaml
@@ -0,0 +1,33 @@
+---
+apiVersion: helm.cattle.io/v1
+kind: HelmChart
+metadata:
+ name: grafana
+ namespace: kube-system
+spec:
+ repo: https://grafana.github.io/helm-charts
+ chart: grafana
+ targetNamespace: monitoring
+ valuesContent: |-
+ ingress:
+ enabled: true
+ ingressClassName: "traefik"
+ annotations:
+ cert-manager.io/cluster-issuer: "letsencrypt-production"
+ tls:
+ - hosts:
+ - grafana.tyil.nl
+ secretName: tls-nl.tyil.grafana
+ hosts:
+ - "grafana.tyil.nl"
+ envFromSecret: "grafana-env"
+ grafana.ini:
+ auth.ldap:
+ enabled: true
+ allow_sign_up: true
+ database:
+ type: "postgres"
+ ldap:
+ enabled: true
+ existingSecret: grafana-config
+...
diff --git a/data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus-exporter-postgresql/helm-chart.yaml b/data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus-exporter-postgresql/helm-chart.yaml
new file mode 100644
index 0000000..3222a7e
--- /dev/null
+++ b/data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus-exporter-postgresql/helm-chart.yaml
@@ -0,0 +1,16 @@
+---
+apiVersion: helm.cattle.io/v1
+kind: HelmChart
+metadata:
+ name: prometheus-exporter-postgresql
+ namespace: kube-system
+spec:
+ repo: https://prometheus-community.github.io/helm-charts
+ chart: prometheus-postgres-exporter
+ targetNamespace: monitoring
+ valuesContent: |-
+ config:
+ datasourceSecret:
+ name: prometheus-exporter-postgresql
+ key: connection-string
+...
diff --git a/data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus/helm-chart.yaml b/data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus/helm-chart.yaml
new file mode 100644
index 0000000..b32dc36
--- /dev/null
+++ b/data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus/helm-chart.yaml
@@ -0,0 +1,29 @@
+---
+apiVersion: helm.cattle.io/v1
+kind: HelmChart
+metadata:
+ name: prometheus
+ namespace: kube-system
+spec:
+ repo: "https://prometheus-community.github.io/helm-charts"
+ chart: "prometheus"
+ targetNamespace: "monitoring"
+ valuesContent: |-
+ server:
+ baseURL: "https://prometheus.tyil.nl"
+ global:
+ scrape_interval: "1m"
+ scrape_timeout: "10s"
+ evaluation_interval: "1m"
+ persistentVolume:
+ enabled: true
+ existingClaim: "prometheus"
+ prometheus.yml:
+ scrape_configs:
+ - job_name: exporter-postgresql
+ static_configs:
+ - targets:
+ - "prometheus-exporter-postgresql-prometheus-postgres-exporter:80"
+ alertmanager:
+ enabled: false
+...
diff --git a/data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus/persistent-volume-claim.yaml b/data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus/persistent-volume-claim.yaml
new file mode 100644
index 0000000..9ecd180
--- /dev/null
+++ b/data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus/persistent-volume-claim.yaml
@@ -0,0 +1,14 @@
+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: prometheus
+ namespace: monitoring
+spec:
+ storageClassName: nfs
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 10Gi
+...
diff --git a/data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus/persistent-volume.yaml b/data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus/persistent-volume.yaml
new file mode 100644
index 0000000..85aaebf
--- /dev/null
+++ b/data.d/k3s-master/manifests.d/tyilnet/monitoring/prometheus/persistent-volume.yaml
@@ -0,0 +1,21 @@
+---
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: prometheus
+ namespace: monitoring
+spec:
+ capacity:
+ storage: 10Gi
+ volumeMode: Filesystem
+ accessModes:
+ - ReadWriteMany
+ persistentVolumeReclaimPolicy: Recycle
+ storageClassName: nfs
+ mountOptions:
+ - hard
+ - nfsvers=4.2
+ nfs:
+ path: /var/lib/prometheus
+ server: 10.57.101.20
+...