码迷,mamicode.com
首页 > 其他好文 > 详细

prometheus-redis-exporter监控redis

时间:2019-08-07 16:13:13      阅读:1338      评论:0      收藏:0      [点我收藏+]

标签:arp   enable   github   http   pac   master   inf   ima   har   

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

技术图片

 

 

prometheus-redis-exporter监控redis

标签:arp   enable   github   http   pac   master   inf   ima   har   

原文地址:https://www.cnblogs.com/Dev0ps/p/11315713.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!