Redis (deprecated)
Use this Splunk Observability Cloud integration for the Redis monitor. See benefits, install, configuration, and metrics
The Splunk Distribution of the OpenTelemetry Collector uses the Smart Agent receiver with the redis monitor type to capture the following metrics:
-
Memory used
-
Commands processed per second
-
Number of connected clients and followers
-
Number of blocked clients
-
Number of keys stored per database
-
Uptime
-
Changes since last save
-
Replication delay per follower
It accepts endpoints and allows multiple instances.
This integration is available on Kubernetes and Linux, and supports Redis 2.8 and higher.
Benefits
インテグレーションを設定すると、これらの機能にアクセスできるようになります:
-
メトリクスを表示します。独自のカスタムダッシュボードを作成することができ、ほとんどのモニターは組み込みのダッシュボードも提供しています。ダッシュボードの詳細については、「Splunk Observability Cloudでダッシュボードを表示する」を参照してください。
-
Infrastructure Monitoring に表示される環境内の物理サーバー、仮想マシン、AWS インスタンス、およびその他リソースのデータ駆動型の視覚化を表示します。ナビゲータの詳細については、「Splunk Infrastructure Monitoring でナビゲーターを使用する」を参照してください。
-
Metric Finder へアクセスし、モニターから送信されたメトリクスを検索します。詳細は、「メトリクス・ファインダーとメタデータ・カタログを検索する」を参照してください。
Installation
このインテグレーションを導入するには、以下の手順に従ってください:
-
Splunk Distribution of OpenTelemetry Collector をホストまたはコンテナプラットフォームにデプロイします:
-
設定のセクションで説明するように、モニターを設定します。
-
Splunk Distribution of OpenTelemetry Collector を再起動します。
Configuration
Smart Agent モニターとCollector のインテグレーションを使用するには、以下の手順に従います:
-
Smart Agent レシーバーを設定ファイルに含めます。
-
レシーバーセクションおよびパイプラインセクションの両方で、Collector 構成にモニタータイプを追加します。
-
「Collector でSmart Agent モニターを使用する」を参照してください。
-
Smart Agent レシーバーの設定方法を参照してください。
-
一般的な構成オプションのリストについては、「モニターの共通設定」を参照してください。
-
Collector の詳細については、「はじめに:Collector を理解して使用する」を参照してください。
-
Example
To activate this integration, add the following to your Collector configuration:
receivers:
smartagent/redis:
type: collectd/redis
... # Additional config
Next, add the monitor to the service.pipelines.metrics.receivers section of your configuration file:
service:
pipelines:
metrics:
receivers: [smartagent/redis]
Configuration settings
The following table shows the configuration options for the Redis integration:
|
Option |
Required |
Type |
Description |
|---|---|---|---|
|
|
Yes |
| |
|
|
Yes |
| |
|
|
No |
| Path to the Python binary. If you don’t provide a path, the monitor uses its built-in runtime. The string can include arguments to the binary. |
|
|
No |
| Name for the Redis instance. The maximum length is 64 characters. The default value is "{host}:{port}". |
|
|
No |
|
Authentication |
|
|
No |
| List of keys that you want to monitor for length. To learn more, see the Monitor the length of Redis lists section. |
|
|
No |
| Flag that controls verbose logging for the plugin. If true,verbose logging is activated. The default value is |
The following table shows you the configuration options for the sendListLengths configuration object:
|
Option |
Required |
Type |
Description |
|---|---|---|---|
|
|
Yes |
|
The database index |
|
|
Yes |
| A string or pattern to use for selecting keys. A string selects a single key. A pattern that uses |
Monitor the length of Redis lists
To monitor the length of list keys, you must specify the key and database index in the configuration using the following syntax:
sendListLengths: [{databaseIndex: $db_index, keyPattern: "$key_name"}]
You can specify $key_name as a glob-style pattern. The only supported wildcard is * . When you use a pattern, the configuration processes all keys that match the pattern.
To ensure that the * is interpreted correctly, surround the pattern with double quotes (""). When a nonlist key matches the pattern, the Redis monitor writes an error to the agent logs.
in Splunk Observability Cloud, gauge.key_llen is the metric name for Redis list key lengths. Splunk Observability Cloud creates a separate MTS for each Redis list.
Notes:
-
The Redis monitor uses the
KEYScommand to match patterns. Because this command isn’t optimized, you need to keep your match patterns small. Otherwise, the command can block other commands from executing. -
To avoid duplicate reporting, choose a single node in which to monitor list lengths. You can use the main node configuration or a follower node configuration.
Metrics
The following metrics are available for this integration:
https://raw.githubusercontent.com/signalfx/splunk-otel-collector/main/internal/signalfx-agent/pkg/monitors/collectd/redis/metadata.yaml
Notes
-
Splunk Observability Cloud で利用可能なメトリクスタイプの詳細は、「メトリクスタイプ」を参照してください。
-
ホストベースのサブスクリプションプランでは、デフォルトのメトリクスは、ホスト、コンテナ、バンドルメトリクスなど、Splunk Observability Cloud のホストベースのサブスクリプションに含まれるメトリクスです。カスタムメトリクスはデフォルトでは提供されていないため、料金が発生する場合があります。詳細については、「メトリクスカテゴリ」を参照してください。
-
MTSベースのサブスクリプションプランでは、すべてのメトリクスがカスタムです。
-
メトリクスを追加するには、「その他のメトリクスの追加」で
extraMetricsの設定方法を参照してください。
Troubleshooting
__ ___ ___ _ ______ _____________ _____ ________ ___ ___ ___ ____ __ ___ ____ ____ __ ______ _____________ ______ ___ ___ ___ ____ __ ___ _________ _____
_________ __ ______ _____________ _____ _________
-
______ _ ____ __ ___ ______ _______ _______
-
_______ ______ ________
_________ __ ___________ _________ ___ ____ _____ _____
-
___ _ ________ ___ ___ _______ _______ _________ _______ __ ______ ________
-
____ ___ ______ ______________ ____ _____ _____ _______ __ ___________ ____ __________ _________ ___ ______ _________ __________ __ _____ ___ ____ _______
Database Query Performance
You can troubleshoot Redis command performance issues using Database Query Performance in Splunk APM.
-
For a sample scenario, see Scenario: Skyler investigates Redis performance issues using Database Query Performance
-
For more information on Database Query Performance support for Redis, see Redis