Redis is an in memory key-value data store. The Redis monitoring extension gathers Redis server statistics and display them in AppDynamics Metric Browser.
This extension works only with the standalone machine agent.
Note : Please make sure to not use tab (\t) while editing yaml files. You may want to validate the yaml file using a yaml validator
Configure the Redis instances by editing the config.yml file in
<MACHINE_AGENT_HOME>/monitors/RedisMonitor/. Specify the host, port of the Redis instance, password if authentication enabled and keyspaces. You can also add excludePatterns (regex) to exclude metrics from showing up in the AppDynamics controller.
# List of Redis servers servers: - host: "localhost" port: 6379 password: "" displayName: "localhost" includePatterns: [ ] excludePatterns: [ .*tcp_port$, .*master_port$, .*Persistence|.* ] #prefix used to show up metrics in AppDynamics metricPrefix: "Custom Metrics|Redis|" # This will create it in specific Tier. Replace
# metricPrefix: "Server|Component: |Custom Metrics|Redis|"
This extension uses INFO command to fetch metrics from Redis server. Some of the metrics are listed below.
In addition to the above metrics, we also add a metric called "Metrics Collection Successful" with a value 0 when an error occurs and 1 when the metrics collection is successful.
Note : By default, a Machine agent or a AppServer agent can send a fixed number of metrics to the controller. To change this limit, please follow the instructions mentioned here. For eg.
java -Dappdynamics.agent.maxMetrics=2500 -jar machineagent.jar
Always feel free to fork and contribute any changes directly via GitHub.
For any questions or feature request, please contact AppDynamics Support.
Redis Version Tested On:
1.0.0 - Release version
1.0.1 - Code Optimization.
1.0.2 - Support for role metrics
1.0.3 - Revamped and Added more metrics.
1.0.4 - JDK 1.6 compatible
1.0.5 - Added commandstats and keyspace_hit_ratio
1.0.6 - Added code fixes
1.0.7 - Fix for includePatterns