Database Monitoring
Redis Monitoring
Redis Metrics to KloudMate
2min
effective redis performance monitoring is crucial for optimal operation and detection of potential bottlenecks or issues you can achieve this by utilizing the opentelemetry collector for metric collection and visualization within kloudmate here is more information on installing the opentelemetry collector and using it if you are already running the opentelemetry collector and want to send your telemetry data to kloudmate, simply modify your yaml config file as shown in the following sample config file extensions health check pprof endpoint 0 0 0 0 1777 zpages endpoint 0 0 0 0 55679 receivers otlp protocols grpc http redis endpoint localhost 6379 collection interval 10s processors resourcedetection detectors \[env, system] cumulativetodelta batch send batch size 5000 timeout 10s exporters otlphttp endpoint 'https //otel kloudmate com 4318' headers authorization \<token> service pipelines metrics receivers \[otlp, opencensus, prometheus, redis] processors \[cumulativetodelta, batch, resourcedetection] exporters \[otlphttp] extensions \[health check, pprof, zpages] redis metrics name description type unit redis commands processed total number of commands processed by the server sum number redis cpu time system cpu consumed by the redis server in seconds since server start sum seconds redis keys expired total number of key expiration events sum number redis db expires number of keyspace keys with an expiration gauge number redis commands number of commands processed per second gauge ops/s redis replication offset the server's current replication offset gauge bytes redis net input the total number of bytes read from the network sum bytes redis clients connected number of client connections (excluding connections from replicas) sum number redis keys evicted number of evicted keys due to maxmemory limit sum number redis maxmemory the value of the maxmemory configuration directive gauge bytes redis clients max input buffer biggest input buffer among current client connections gauge bytes redis cmd latency command execution latency gauge seconds redis memory lua number of bytes used by the lua engine gauge bytes redis replication backlog first byte offset the master offset of the replication backlog buffer gauge bytes redis keyspace hits number of successful lookup of keys in the main dictionary sum number redis clients blocked number of clients pending on a blocking call sum number redis connections rejected number of connections rejected because of maxclients limit sum number redis latest fork duration of the latest fork operation in microseconds gauge microseconds redis clients max output buffer longest output list among current client connections gauge bytes redis slaves connected number of connected replicas sum number redis db keys number of keyspace keys gauge number redis keyspace misses number of failed lookup of keys in the main dictionary sum number redis uptime number of seconds since the redis server started sum seconds redis memory used total number of bytes allocated by redis using its allocator gauge bytes redis net output the total number of bytes written to the network sum bytes redis connections received total number of connections accepted by the server sum number redis rdb changes since last save number of changes since the last dump sum number redis memory rss number of bytes that redis allocated as seen by the operating system gauge bytes redis db avg ttl average keyspace keys ttl gauge milliseconds redis memory peak peak memory consumed by redis (in bytes) gauge bytes redis memory fragmentation ratio ratio between used memory rss and used memory gauge number for full details on metrics, click here