Notice: 函数 WP_Scripts::localize 的调用方法不正确$l10n 参数必须是一个数组。若要将任意数据传递给脚本,请改用 wp_add_inline_script() 函数。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 5.7.0 版本添加的。) in /data/www/appblog/wp-includes/functions.php on line 6131

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部署

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

Prometheus配置

- job_name: redis_exporter
  static_configs:
    - targets: ['192.168.165.242:9121']
      labels:
        instance: redis
        group: inner
上一篇 Prometheus + Grafana 使用 Node Exporter 监控主机
下一篇 Prometheus + Grafana 使用 elasticsearch_exporter 监控 ElasticSearch