{"id":1555,"date":"2023-03-25T15:41:29","date_gmt":"2023-03-25T07:41:29","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1555"},"modified":"2023-04-27T21:37:26","modified_gmt":"2023-04-27T13:37:26","slug":"prometheus-grafana-using-redis-exporter-monitoring-redis","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/25\/prometheus-grafana-using-redis-exporter-monitoring-redis\/","title":{"rendered":"Prometheus + Grafana \u4f7f\u7528 redis_exporter \u76d1\u63a7 Redis"},"content":{"rendered":"<p>Prometheus Exporters\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/prometheus.io\/docs\/instrumenting\/exporters\/\">https:\/\/prometheus.io\/docs\/instrumenting\/exporters\/<\/a><br \/>\nredis_exporter\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/github.com\/oliver006\/redis_exporter\">https:\/\/github.com\/oliver006\/redis_exporter<\/a><br \/>\nGrafana Dashboard\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/grafana.com\/grafana\/dashboards\/763\">https:\/\/grafana.com\/grafana\/dashboards\/763<\/a><\/p>\n<h2>redis_exporter\u90e8\u7f72<\/h2>\n<p><!-- more --><\/p>\n<pre><code>$ go get github.com\/oliver006\/redis_exporter\n$ cd $GOPATH\/src\/github.com\/oliver006\/redis_exporter\n$ go build\n$ .\/redis_exporter &lt;--redis.address&gt; &lt;--redis.password&gt;<\/code><\/pre>\n<h2>Prometheus\u914d\u7f6e<\/h2>\n<pre><code class=\"language-yml\">- job_name: redis_exporter\n  static_configs:\n    - targets: [&#039;192.168.165.242:9121&#039;]\n      labels:\n        instance: redis\n        group: inner<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Prometheus Exporters\uff1ahttps:\/\/prometheus.io\/docs\/instrum [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[386],"tags":[385,387],"class_list":["post-1555","post","type-post","status-publish","format-standard","hentry","category-monitor","tag-grafana","tag-prometheus"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1555"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1555\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}