Giter VIP home page Giter VIP logo

redis-monitoring-extension's Introduction

AppDynamics Monitoring Extension for use with Redis

This extension works only with the standalone machine agent.

Use Case

Redis is an in memory key-value data store. The Redis monitoring extension gathers Redis server statistics and display them in AppDynamics Metric Browser.

##Installation

  1. Run 'mvn clean install' from the redis-monitoring-extension directory and find the RedisMonitor.zip in the "target" folder.
  2. Unzip as "RedisMonitor" and copy the "RedisMonitor" directory to <MACHINE_AGENT_HOME>/monitors

Configuration

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

  1. 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.

    For eg.

         # List of Redis servers
         servers:
           - host: "localhost"
             port: 6379
             password: "admin"
             displayName: "localhost"
             includePatterns: [
                        ]
             excludePatterns: [
                               .*Persistence|.*
                              ]
         #prefix used to show up metrics in AppDynamics
         metricPrefix:  "Custom Metrics|Redis|"
    
    
  2. Configure the path to the config.yml file by editing the in the monitor.xml file in the <MACHINE_AGENT_HOME>/monitors/RedisMonitor/ directory. Below is the sample

    <task-arguments>
        <!-- config file-->
        <argument name="config-file" is-required="true" default-value="monitors/RedisMonitor/config.yml" />
         ....
    </task-arguments>
    

Metrics

This extension uses INFO command to fetch metrics from Redis server. Some of the metrics are listed below.

  • Server: uptime_in_seconds, uptime_in_days
  • clients: blocked_clients, connected_clients
  • memory: mem_fragmentation_ratio, used_memory, used_memory_peak, used_memory_rss
  • replication: role (MASTER:1, SLAVE:0), master_link_status(UP:1, DOWN:0), connected_slaves, master_last_io_seconds_ago, master_link_down_since_seconds, master_sync_in_progress
  • CPU
  • Persistence
  • Stats
  • Keyspace: keys, expires
  • commandstats: cmdstat_set, cmdstat_info, cmdstat_subscribe
  • keyspace_hit_ratio = keyspace_hits/(keyspace_hits + keyspace_misses) 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

Custom Dashboard

Contributing

Always feel free to fork and contribute any changes directly via GitHub.

##Community Find out more in the AppSphere community.

##Support For any questions or feature request, please contact AppDynamics Support.

redis-monitoring-extension's People

Contributors

kunalgupapdx avatar qldong avatar balakrishnav avatar dustinwhittle avatar tradel avatar mithun100 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.