Skip to content

Commit

Permalink
chore: add metrics collect-related annotations for redis (#996)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9de9fea)
  • Loading branch information
sophon-zt committed Sep 3, 2024
1 parent 93b78f9 commit d42531b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/redis/templates/componentdefinition-redis-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ spec:
- name: {{ $name }}
filePathPattern: {{ $pattern }}
{{- end }}
exporter:
containerName: metrics
scrapePath: /metrics
scrapePort: http-metrics
configs:
- name: redis-cluster-config
templateRef: redis-cluster7-config-template
Expand Down
4 changes: 4 additions & 0 deletions addons/redis/templates/componentdefinition-redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ spec:
- name: {{ $name }}
filePathPattern: {{ $pattern }}
{{- end }}
exporter:
containerName: metrics
scrapePath: /metrics
scrapePort: http-metrics
configs:
- name: redis-replication-config
templateRef: redis7-config-template
Expand Down

0 comments on commit d42531b

Please sign in to comment.