prometheus-redis-exporter监控redis

chart地址:https://github.com/helm/charts/tree/master/stable/prometheus-redis-exporter

1、下载chart包

$ helm fetch stable/prometheus-redis-exporter

2、修改values文件

rbac:
  create: true
  pspEnabled: true
serviceAccount:
  create: true
  name:
replicaCount: 1
image:
  repository: oliver006/redis_exporter
  tag: v0.28.0
  pullPolicy: IfNotPresent
extraArgs: {}
env: {}
service:
  type: ClusterIP
  port: 9121
  annotations: 
    prometheus.io/scrape: "true"
resources: {}
redisAddress:
  - redis://redis-ha-dev.sscp-dev.svc.cluster.local:6379
  - redis://redis-ha-test.sscp-test.svc.cluster.local:6379
  - redis://redis-ha-presit.sscp-presit.svc.cluster.local:6379
annotations: 
  prometheus.io/path: /metrics
  prometheus.io/port: "9121"
  prometheus.io/scrape: "true"
serviceMonitor:
  enabled: true
  namespace: monitoring
  interval: 30s
  telemetryPath: /metrics
  labels:
  timeout: 10s

3、部署

helm install --name prometheus-redis-exporter ./prometheus-redis-exporter --namespace monitoring

4、grafana

https://grafana.com/grafana/dashboards/2751

 

 

posted @ 2019-08-07 15:43  西门运维  阅读(5183)  评论(0编辑  收藏  举报