diff --git a/kubernetes/apps/database/redis/app/helmrelease.yaml b/.archive/kubernetes/database/redis/app/helmrelease.yaml similarity index 100% rename from kubernetes/apps/database/redis/app/helmrelease.yaml rename to .archive/kubernetes/database/redis/app/helmrelease.yaml diff --git a/kubernetes/apps/database/redis/app/kustomization.yaml b/.archive/kubernetes/database/redis/app/kustomization.yaml similarity index 100% rename from kubernetes/apps/database/redis/app/kustomization.yaml rename to .archive/kubernetes/database/redis/app/kustomization.yaml diff --git a/kubernetes/apps/database/redis/ks.yaml b/.archive/kubernetes/database/redis/ks.yaml similarity index 100% rename from kubernetes/apps/database/redis/ks.yaml rename to .archive/kubernetes/database/redis/ks.yaml diff --git a/kubernetes/apps/database/kustomization.yaml b/kubernetes/apps/database/kustomization.yaml index e7e6e489..5b2caf20 100644 --- a/kubernetes/apps/database/kustomization.yaml +++ b/kubernetes/apps/database/kustomization.yaml @@ -8,4 +8,3 @@ resources: # Flux-Kustomizations - ./crunchy-postgres-operator/ks.yaml - ./dragonfly/ks.yaml - - ./redis/ks.yaml diff --git a/kubernetes/apps/observability/grafana/app/helmrelease.yaml b/kubernetes/apps/observability/grafana/app/helmrelease.yaml index a71aadfa..8b5248c7 100644 --- a/kubernetes/apps/observability/grafana/app/helmrelease.yaml +++ b/kubernetes/apps/observability/grafana/app/helmrelease.yaml @@ -154,12 +154,6 @@ spec: gnetId: 1860 revision: 33 datasource: Prometheus - redis: - # renovate: depName="Redis Dashboard for Prometheus Redis Exporter 1.x" - gnetId: 763 - revision: 6 - datasource: - - { name: DS_PROMETHEUS, value: Prometheus } spegel: # renovate: depName="Spegel" gnetId: 18089 @@ -177,6 +171,10 @@ spec: gnetId: 7845 revision: 4 datasource: Prometheus + dragonflydb: + url: https://raw.githubusercontent.com/dragonflydb/dragonfly/main/tools/local/monitoring/grafana/provisioning/dashboards/dashboard.json + datasource: + - { name: DS_PROMETHEUS, value: Prometheus } cert-manager: url: https://raw.githubusercontent.com/monitoring-mixins/website/master/assets/cert-manager/dashboards/cert-manager.json datasource: Prometheus 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 diff --git a/kubernetes/apps/observability/thanos/app/helmrelease.yaml b/kubernetes/apps/observability/thanos/app/helmrelease.yaml index 4332e2af..c3ed772b 100644 --- a/kubernetes/apps/observability/thanos/app/helmrelease.yaml +++ b/kubernetes/apps/observability/thanos/app/helmrelease.yaml @@ -51,12 +51,8 @@ spec: config: &config |- type: REDIS config: - addr: >- - redis-node-0.redis-headless.database.svc.cluster.local:26379, - redis-node-1.redis-headless.database.svc.cluster.local:26379, - redis-node-2.redis-headless.database.svc.cluster.local:26379 - db: 13 - master_name: redis-master + addr: dragonfly.database.svc.cluster.local:6379 + db: 2 ingress: enabled: true ingressClassName: internal-nginx