From 813ad42d7a56449c81a090e678d37c61cc6ceca8 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Mon, 24 Apr 2023 00:30:04 -0400 Subject: [PATCH] Add zfs-exporter --- cluster/apps/monitoring/kustomization.yaml | 3 +- .../monitoring/zfs-exporter/helm-release.yaml | 50 +++++++++++++++++++ .../zfs-exporter/kustomization.yaml | 4 ++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 cluster/apps/monitoring/zfs-exporter/helm-release.yaml create mode 100644 cluster/apps/monitoring/zfs-exporter/kustomization.yaml diff --git a/cluster/apps/monitoring/kustomization.yaml b/cluster/apps/monitoring/kustomization.yaml index 4e710c0..47ab426 100644 --- a/cluster/apps/monitoring/kustomization.yaml +++ b/cluster/apps/monitoring/kustomization.yaml @@ -3,4 +3,5 @@ kind: Kustomization resources: - ./namespace.yaml - ./network_policy.yaml -- ./kube-prometheus-stack \ No newline at end of file +- ./kube-prometheus-stack +- ./zfs-exporter \ No newline at end of file diff --git a/cluster/apps/monitoring/zfs-exporter/helm-release.yaml b/cluster/apps/monitoring/zfs-exporter/helm-release.yaml new file mode 100644 index 0000000..ddea2be --- /dev/null +++ b/cluster/apps/monitoring/zfs-exporter/helm-release.yaml @@ -0,0 +1,50 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: zfs-exporter + namespace: monitoring +spec: + interval: 5m + chart: + spec: + chart: app-template + version: 1.3.x + sourceRef: + kind: HelmRepository + name: bjws-charts + namespace: flux-system + + values: + image: + repository: ghcr.io/seanomik/zfs_promexporter + tag: latest + + securityContext: + privileged: true + + service: + main: + ports: + http: + port: 8080 + + probes: + liveness: + enabled: false + + serviceMonitor: + main: + enabled: true + endpoints: + - port: http + scheme: http + path: /metrics + interval: 1m + scrapeTimeout: 10s + +# resources: +# requests: +# cpu: 1m +# memory: 140Mi +# limits: +# memory: 300Mi \ No newline at end of file diff --git a/cluster/apps/monitoring/zfs-exporter/kustomization.yaml b/cluster/apps/monitoring/zfs-exporter/kustomization.yaml new file mode 100644 index 0000000..ea3145d --- /dev/null +++ b/cluster/apps/monitoring/zfs-exporter/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ./helm-release.yaml \ No newline at end of file