Prometheus + Grafana 使用 redis_exporter 监控 Redis

Prometheus Exporters:https://prometheus.io/docs/instrumenting/exporters/
redis_exporter:https://github.com/oliver006/redis_exporter
Grafana Dashboard:https://grafana.com/grafana/dashboards/763

redis_exporter部署

1
2
3
4
$ go get github.com/oliver006/redis_exporter
$ cd $GOPATH/src/github.com/oliver006/redis_exporter
$ go build
$ ./redis_exporter <--redis.address> <--redis.password>

Prometheus配置

1
2
3
4
5
6
- job_name: redis_exporter
static_configs:
- targets: ['192.168.165.242:9121']
labels:
instance: redis
group: inner

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :