Monitoring Redis

在安裝 Instana 代理程式之後,會自動部署並安裝 Redis 感應器。

支援的作業系統

Redis 感應器支援的作業系統與主機代理程式需求一致,可以在每一個主機代理程式的「支援的作業系統」區段中檢查這些需求,例如 Unix 支援的作業系統

支援的版本

Instana 支援下列版本的 Redis:

  • Redis 3.0.x
  • Redis 3.2.x
  • Redis 4.0.x
  • Redis 5.0.x
  • Redis 6.0.x
  • Redis 7.0.x

配置

為了啟用深度度量值監視,您需要將認證通知代理程式,以透過 <agent_install_dir>/etc/instana/configuration.yaml存取監視資訊。

com.instana.plugin.redis:
  username: '' # Used when Redis 6 ACL applied
  password: ''
  # Instana requires the CONFIG command and it must not be disabled on the Redis side. 
  # If it was renamed using 'rename-command', eg: rename-command CONFIG NEWCONFIG
  # this setting can be used to tell Instana the new command name
  config-command: 'NEWCONFIG'
  # Monitor certain values in Redis
  monitor:
    - db: 0           # db number - defaults to 0 if absent
      key: 'logstash' # key of value, given as string

如果使用 程序環境 來配置 Redis 外掛程式,則需要在 redis.conf 檔案中將 set-proc-title 旗標設定為 no ,如下所示:

# By default, Redis modifies the process title (as seen in 'top' and 'ps') to
# provide some runtime information. It is possible to disable this and leave
# the process name as executed by setting the following to no.

set-proc-title no

度量值集合

若要檢視度量值,請在「Instana 使用者」介面的資訊看板中選取 基礎架構 ,按一下特定的受監視主機,然後您可以看到包含所有已收集度量值及受監視處理程序的主機儀表板。

節點層次

不支援監視已啟用 TLS/SSL 的 Redis Sentinel 及 Redis 。

配置資料

  • 開始時間
  • 角色
  • 已啟用的叢集
  • 奴隸

效能度量

  • 傳輸量
  • 索引鍵命中數、遺失數、命中率
  • 已過期/已收回的索引鍵
  • 資料庫
  • 記憶體
  • 連線
  • 持續性
  • 慢速日誌 (最多可以搜尋一個月的 Snapshot 歷程。)

性能簽章

每一個感應器都有一個精選的性能簽章知識庫,可以根據送入的度量對性能簽章進行持續評估,並根據使用者影響來觸發問題或發生事件。

內建事件 會根據實體上的性能簽章失敗來觸發問題或突發事件,而 自訂事件 會根據任何給定實體的個別度量值臨界值來觸發問題或突發事件。

如需 Redis Node 的 built-events 的相關資訊,請參閱 內建事件參照

叢集層次

叢集層次資訊適用於 Redis 3.0.0 版或更高版本。

配置資料

  • ID
  • 叢集狀態
  • 節點總數
  • 主要節點數目

效能度量

  • 在內部叢集中傳送的訊息數
  • 在內部叢集中收到的訊息數
  • 傳輸量
  • 索引鍵命中數、遺失數、命中率
  • 已過期/已收回的索引鍵
  • 記憶體
  • 連線

性能簽章

如需 Redis Cluster 的 built-events 的相關資訊,請參閱 內建事件參照

疑難排解

Redis CONFIG 指令名稱未啟用且未配置

監視問題類型: redis_config_command_name_not_configured

若要從 Redis 伺服器讀取度量值, Instana 代理程式需要在 redis.conf 中使用下列指令來停用 CONFIG 指令:

rename-command CONFIG ''

如果在 redis.conf 中使用下列指令將 CONFIG 指令重新命名為類似 b840fc02d524045429941cc15f59e41cb7be6c52:

rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52

需要在 config-command 代理程式設定中配置新的指令名稱 b840fc02d524045429941cc15f59e41cb7be6c52 :

com.instana.plugin.redis:
  config-command: 'b840fc02d524045429941cc15f59e41cb7be6c52'