prometheus-redis-exporter监控redis
Posted dev0ps
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
以上是关于prometheus-redis-exporter监控redis的主要内容,如果未能解决你的问题,请参考以下文章