redis-exporter
Table of Contents
Preface
Using Prometheus + Grafana to build a monitoring system,
this article covers how to monitor Redis.
Steps
Install redis exporter
docker run -d \
--name redis_exporter \
-p 9121:9121 \
-e REDIS_ADDR=172.31.44.128:6379 \
-e REDIS_PASSWORD=xxx \
docker_url
Modify the Prometheus config file
- job_name: 'keydb'
static_configs:
- targets:
- 172.31.44.128:6379
metrics_path: /scrape
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 172.31.44.128:9121
Add a Grafana dashboard
Add the default Redis dashboard to Grafana.
Related Articles
mysql-exporter
Preface: Building a monitoring system with Prometheus + Grafana. This article covers monitoring MySQL. Steps include modifying the MySQL exporter config file, installing MySQL exporter, granting MySQL permissions, modifying the Prometheus config file, and adding a Grafana dashboard.
JumpServer
Preface: JumpServer is a popular open-source bastion host. If you have many servers to manage and need security auditing, JumpServer is a great choice. This article covers installation, configuration, and basic usage.
prometheus+grafana
Setting up a monitoring system with Prometheus and Grafana — covering Prometheus server, node-exporter, Grafana dashboard configuration, and Docker deployment.
docker-nginx
Preface There are many Docker images for nginx. This article packages a business nginx into a Docker image. Choosing the nginx version alpine Alpine is a minimal Linux distribution, with an image size of only 7.73M. nginx also has an alpine-based version. This article uses the alpine-based version. stable ngi
Docker Private Registry
Preface After becoming proficient with Docker locally, the next step is to push local Docker images to a remote registry for easy access elsewhere. Common commands The previous section covered common Docker commands, see: https://blog.insistime.com/dockercmds Official Docker Hub Docker offici