Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metrics for redis #350

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions kustomize/base/propeller/metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
namespace: flyte
name: redis-exporter
spec:
replicas: 1
template:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9121"
labels:
app: redis-exporter
spec:
containers:
# Ideally we would like this to be a sidecar with propeller, but scraping metrics is a hassle
# One option could be to import the exporter into propeller and run it from there. We can explore this if it provides value, lets test it first
# More configuration refer to https://github.com/oliver006/redis_exporter
# Also dashboard template - https://grafana.com/grafana/dashboards/763
- name: redis-exporter
image: docker.io/bitnami/redis-exporter
args: [ "-redis.addr=redis-resource-manager.flyte", "-redis.password=mypassword"]
resources:
requests:
cpu: 500m
memory: 200Mi
ports:
- containerPort: 9121