From fff7cd9f703bdccc92ecba77e04fcac441abf038 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Wed, 20 Mar 2024 08:42:13 -0500 Subject: [PATCH] Enable dragonflydb podmonitor and vyos node-exporter scrapeconfig --- .../app/kustomization.yaml | 3 ++- .../app/podmonitors/dragonflydb.yaml | 19 +++++++++++++++++++ .../app/podmonitors/kustomization.yaml | 6 ++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 kubernetes/apps/observability/kube-prometheus-stack/app/podmonitors/dragonflydb.yaml create mode 100644 kubernetes/apps/observability/kube-prometheus-stack/app/podmonitors/kustomization.yaml diff --git a/kubernetes/apps/observability/kube-prometheus-stack/app/kustomization.yaml b/kubernetes/apps/observability/kube-prometheus-stack/app/kustomization.yaml index 920980f4..e0356c1d 100644 --- a/kubernetes/apps/observability/kube-prometheus-stack/app/kustomization.yaml +++ b/kubernetes/apps/observability/kube-prometheus-stack/app/kustomization.yaml @@ -6,7 +6,8 @@ resources: - ./externalsecret.yaml - ./helmrelease.yaml - ./prometheusrules - # - ./scrapeconfigs + - ./scrapeconfigs + - ./podmonitors configMapGenerator: - name: alertmanager-config-tpl files: diff --git a/kubernetes/apps/observability/kube-prometheus-stack/app/podmonitors/dragonflydb.yaml b/kubernetes/apps/observability/kube-prometheus-stack/app/podmonitors/dragonflydb.yaml new file mode 100644 index 00000000..4ebc9131 --- /dev/null +++ b/kubernetes/apps/observability/kube-prometheus-stack/app/podmonitors/dragonflydb.yaml @@ -0,0 +1,19 @@ +--- +# yaml-language-server: $schema=https://ks.hsn.dev/monitoring.coreos.com/podmonitor_v1.json +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: dragonflydb-metrics + namespace: database +spec: + selector: + matchLabels: + app.kubernetes.io/name: dragonfly + app: dragonfly + podTargetLabels: + - app + namespaceSelector: + matchNames: + - database + podMetricsEndpoints: + - port: admin \ No newline at end of file diff --git a/kubernetes/apps/observability/kube-prometheus-stack/app/podmonitors/kustomization.yaml b/kubernetes/apps/observability/kube-prometheus-stack/app/podmonitors/kustomization.yaml new file mode 100644 index 00000000..a07dd8c1 --- /dev/null +++ b/kubernetes/apps/observability/kube-prometheus-stack/app/podmonitors/kustomization.yaml @@ -0,0 +1,6 @@ +--- +# yaml-language-server: $schema=https://json.schemastore.org/kustomization +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ./dragonflydb.yaml \ No newline at end of file