diff --git a/clusters/cl01tl/manifests/gitea/RedisSentinel-redis-replication-gitea.yaml b/clusters/cl01tl/manifests/gitea/RedisSentinel-redis-sentinel-gitea.yaml similarity index 89% rename from clusters/cl01tl/manifests/gitea/RedisSentinel-redis-replication-gitea.yaml rename to clusters/cl01tl/manifests/gitea/RedisSentinel-redis-sentinel-gitea.yaml index d830026c3..9b5e44ff3 100644 --- a/clusters/cl01tl/manifests/gitea/RedisSentinel-redis-replication-gitea.yaml +++ b/clusters/cl01tl/manifests/gitea/RedisSentinel-redis-sentinel-gitea.yaml @@ -1,13 +1,13 @@ apiVersion: redis.redis.opstreelabs.in/v1beta2 kind: RedisSentinel metadata: - name: redis-replication-gitea + name: redis-sentinel-gitea namespace: gitea labels: helm.sh/chart: redis-replication-gitea-0.5.0 app.kubernetes.io/version: "0.5.0" app.kubernetes.io/managed-by: Helm - app.kubernetes.io/name: redis-replication-gitea + app.kubernetes.io/name: redis-sentinel-gitea app.kubernetes.io/instance: gitea app.kubernetes.io/part-of: gitea spec: diff --git a/clusters/cl01tl/manifests/gitea/ServiceMonitor-redis-replication-gitea.yaml b/clusters/cl01tl/manifests/gitea/ServiceMonitor-redis-replication-gitea.yaml index fa4a30659..45753683b 100644 --- a/clusters/cl01tl/manifests/gitea/ServiceMonitor-redis-replication-gitea.yaml +++ b/clusters/cl01tl/manifests/gitea/ServiceMonitor-redis-replication-gitea.yaml @@ -14,9 +14,9 @@ spec: selector: matchLabels: app: redis-replication-gitea - redis_setup_type: sentinel - role: sentinel + redis_setup_type: replication + role: replication endpoints: - - port: sentinel-client + - port: redis-exporter interval: 30s scrapeTimeout: 10s diff --git a/clusters/cl01tl/manifests/gitea/ServiceMonitor-redis-sentinel-gitea.yaml b/clusters/cl01tl/manifests/gitea/ServiceMonitor-redis-sentinel-gitea.yaml new file mode 100644 index 000000000..06d65be3d --- /dev/null +++ b/clusters/cl01tl/manifests/gitea/ServiceMonitor-redis-sentinel-gitea.yaml @@ -0,0 +1,22 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: redis-sentinel-gitea + namespace: gitea + labels: + helm.sh/chart: redis-replication-gitea-0.5.0 + app.kubernetes.io/version: "0.5.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: redis-sentinel-gitea + app.kubernetes.io/instance: gitea + app.kubernetes.io/part-of: gitea +spec: + selector: + matchLabels: + app: redis-sentinel-gitea + redis_setup_type: sentinel + role: sentinel + endpoints: + - port: sentinel-client + interval: 30s + scrapeTimeout: 10s