Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Panduan ini membantu Anda mengonfigurasi Pemantauan untuk memantau Redis.
Redis adalah penyimpanan nilai kunci tingkat lanjut open source. Server ini sering disebut sebagai
server struktur data karena nilai dapat berisi string, hash, daftar, set, dan
set yang diurutkan. Untuk informasi selengkapnya, buka redis.io.
Fungsi ini hanya tersedia untuk agen yang berjalan di Linux. Fitur ini tidak tersedia di Windows.
Discovery
Monitoring menemukan layanan Redis yang berjalan di project Cloud Platform Anda jika Anda memiliki hal berikut:
Jika instance Redis Anda dilindungi sandi, atau jika Anda menggunakan
host atau port nonstandar untuk Redis, sebagai root, edit redis.conf dengan
mengikuti petunjuk di bagian atas file.
Mulai ulang agen pemantauan dengan menjalankan perintah berikut:
sudo service stackdriver-agent restart
Untuk informasi selengkapnya tentang plugin collectdredis, lihat
Plugin:Redis.
Metrik Redis
Daftar lengkap metrik yang dipantau plugin Redis ada di
Metrik agen: redis.
Metrik yang sebenarnya dikumpulkan, dan metrik yang tersedia di menu Monitoring, dapat bervariasi.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[],[],null,["# Monitoring Redis\n\nThis guide helps you configure Monitoring to monitor Redis.\n\nRedis is an open source advanced key-value store. It is often referred to as a\ndata structure server since values can contain strings, hashes, lists, sets and\nsorted sets. For more information, visit [redis.io](http://redis.io/).\n\nThis functionality is only available for agents running on Linux. It is\nnot available on Windows.\n| **Note:** You can now collect metrics from your Redis instance using the [Ops Agent](/stackdriver/docs/solutions/agents/ops-agent), the primary and preferred agent for collecting telemetry from your Compute Engine instances. For details, see [configuring the Ops Agent for\n| Redis](/stackdriver/docs/solutions/agents/ops-agent/third-party/redis).\n\nDiscovery\n---------\n\nMonitoring discovers Redis services running in your Cloud Platform\nproject if you have the following:\n\n- VM instances with **redis** in their names.\n- Firewall rules that open port **6379**.\n\nTo see the metrics for Redis, do the following:\n\n1. In the Google Cloud console, go to the **Dashboards** page:\n\n [Go to **Dashboards**](https://console.cloud.google.com/monitoring/dashboards)\n\n \u003cbr /\u003e\n\n If you use the search bar to find this page, then select the result whose subheading is\n **Monitoring**.\n2. Select the **Redis** dashboard from the list.\n\nConfiguring Redis monitoring\n----------------------------\n\nThe Monitoring agent uses the\n[**hiredis** client library](https://github.com/redis/hiredis)\nto monitor Redis. After installing Redis, install `hiredis` by running the\nfollowing commands:\n\n- RHEL and CentOS\n\n sudo yum install epel-release\n sudo yum install hiredis\n\n- Ubuntu 18.04 LTS, 16.04 LTS, and Debian 9\n\n sudo apt-get install libhiredis0.13\n\n- SLES\n\n sudo zypper install libhiredis0_13\n\nConfiguring Monitoring\n----------------------\n\nTo monitor Redis, perform the following actions on your VM instance after\n[installing the monitoring agent](/monitoring/agent/monitoring/installation):\n\n1. **Install the Redis configuration file** ,\n [redis.conf](https://raw.githubusercontent.com/Stackdriver/stackdriver-agent-service-configs/master/etc/collectd.d/redis.conf),\n by running the following command:\n\n (cd /etc/stackdriver/collectd.d/ && sudo curl -O https://raw.githubusercontent.com/Stackdriver/stackdriver-agent-service-configs/master/etc/collectd.d/redis.conf)\n\n2. If your Redis instance is password-protected, or if you are using a\n nonstandard host or port for Redis, as **root** , edit `redis.conf` by\n following the instructions at the top of the file.\n\n3. **Restart the monitoring agent** by running the following command:\n\n sudo service stackdriver-agent restart\n\nFor more information on the `collectd` `redis` plugin, see\n[Plugin:Redis](https://collectd.org/wiki/index.php/Plugin:Redis).\n\nRedis metrics\n-------------\n\nThe full list of metrics the Redis plugin monitors is at\n[Agent metrics: redis](/monitoring/api/metrics_agent#agent-redis).\nThe actual metrics collected, and the metrics available in the\nMonitoring menus, can vary."]]