From 3f4754437b2402d36838887546beeb713566d09f Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Mon, 25 Mar 2024 08:30:53 -0500 Subject: [PATCH] Add ZFS exporter scrape config. --- .../app/scrapeconfigs/kustomization.yaml | 3 ++- .../app/scrapeconfigs/zfs-exporter.yaml | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 kubernetes/apps/observability/kube-prometheus-stack/app/scrapeconfigs/zfs-exporter.yaml diff --git a/kubernetes/apps/observability/kube-prometheus-stack/app/scrapeconfigs/kustomization.yaml b/kubernetes/apps/observability/kube-prometheus-stack/app/scrapeconfigs/kustomization.yaml index 93f0b824..c1174d4a 100644 --- a/kubernetes/apps/observability/kube-prometheus-stack/app/scrapeconfigs/kustomization.yaml +++ b/kubernetes/apps/observability/kube-prometheus-stack/app/scrapeconfigs/kustomization.yaml @@ -3,4 +3,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - - ./node-exporter.yaml \ No newline at end of file + - ./node-exporter.yaml + - ./zfs-exporter.yaml \ No newline at end of file diff --git a/kubernetes/apps/observability/kube-prometheus-stack/app/scrapeconfigs/zfs-exporter.yaml b/kubernetes/apps/observability/kube-prometheus-stack/app/scrapeconfigs/zfs-exporter.yaml new file mode 100644 index 00000000..e8229114 --- /dev/null +++ b/kubernetes/apps/observability/kube-prometheus-stack/app/scrapeconfigs/zfs-exporter.yaml @@ -0,0 +1,11 @@ +--- +# yaml-language-server: $schema=https://ks.hsn.dev/monitoring.coreos.com/scrapeconfig_v1alpha1.json +apiVersion: monitoring.coreos.com/v1alpha1 +kind: ScrapeConfig +metadata: + name: zfs-exporter +spec: + staticConfigs: + - targets: + - 10.1.1.13:9134 + metricsPath: /metrics \ No newline at end of file