All Projects → c1982 → redis-traffic-stats

c1982 / redis-traffic-stats

Licence: MIT license
Live monitor & analyze Redis queries on your client

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to redis-traffic-stats

Unknown-Logger
An advanced Windows Keylogger with features like (Disable CMD, Screenshotter, Client Stub Builder, Low Level Keyhooks, Hide Application, Respawner, Delete Chrome and Firefox data, and more!)
Stars: ✭ 23 (-72.62%)
Mutual labels:  monitor
express-actuator
Express middleware with endpoints to help you monitor and manage applications
Stars: ✭ 71 (-15.48%)
Mutual labels:  monitor
linux-inspect
linux-inspect implements various Linux inspecting utilities.
Stars: ✭ 32 (-61.9%)
Mutual labels:  monitor
SAPNetworkMonitor
Based on niping for sap network monitoring QQ群: 651878914
Stars: ✭ 48 (-42.86%)
Mutual labels:  monitor
uptime-kuma
A fancy self-hosted monitoring tool
Stars: ✭ 27,425 (+32548.81%)
Mutual labels:  monitor
IP-Monitor
CSDN博客
Stars: ✭ 32 (-61.9%)
Mutual labels:  monitor
bull-monitor
🐂 Standard UI for Bull and BullMQ.
Stars: ✭ 89 (+5.95%)
Mutual labels:  monitor
site-monitor
监控网站的可访问性的监控系统
Stars: ✭ 48 (-42.86%)
Mutual labels:  monitor
idfx
Tool for flash/monitor ESP-IDF and ESP8266_SDK apps on the WSL2 ⚡
Stars: ✭ 71 (-15.48%)
Mutual labels:  monitor
amas
Amas is recursive acronym for “Amas, monitor alert system”.
Stars: ✭ 77 (-8.33%)
Mutual labels:  monitor
chrome-extension-aspectratio219
🖥️ Fit the screen properly in fullscreen mode on monitor ultrawide with 21:9 aspect ratio (Netflix, Youtube, PrimeVideo, Crunchyroll)
Stars: ✭ 28 (-66.67%)
Mutual labels:  monitor
pm2-docker
Monitor Docker Daemon (expose host docker daemon for monitoring)
Stars: ✭ 21 (-75%)
Mutual labels:  monitor
solana-nft-monitor
Monitor Solana NFT projects using Github Actions + flatgithub.com
Stars: ✭ 31 (-63.1%)
Mutual labels:  monitor
diffido
Watch web pages for changes
Stars: ✭ 19 (-77.38%)
Mutual labels:  monitor
theonionbox
Dashboard to monitor Tor node operations
Stars: ✭ 116 (+38.1%)
Mutual labels:  monitor
monitor
mac 实时网速监控 bandwidh monitor
Stars: ✭ 23 (-72.62%)
Mutual labels:  monitor
twitch-chat-monitor
Twitch Chat Monitor that allows the chat to be shown comfortably on a big monitor. Useful for room-scale streaming where the chat needs to be readable from a distance.
Stars: ✭ 28 (-66.67%)
Mutual labels:  monitor
redis-healthy
It retrieves metrics, periodically, from Redis (or sentinel) and send them to Logstash
Stars: ✭ 62 (-26.19%)
Mutual labels:  monitor
lemon
Lemon – LED Monitor – is a $79.43 opensource alternative to LaMetric that supports GitHub-, IFTTT- and Zapier-webhooks and even integrates with Pushover!
Stars: ✭ 45 (-46.43%)
Mutual labels:  monitor
panorama
Lightweight system monitor for Linux
Stars: ✭ 31 (-63.1%)
Mutual labels:  monitor

redis-traffic-stats

redis-traffic-stats is a live monitor and analyze RESP packets in your server. This tool does not touch Redis Server. Just monitors redis client request and response on the real time.

All redis stats exported as prometheus metrics so you can visualize analytics data on your favorite dashboard (like grafana).

Features:

  • Live Monitoring
  • Low CPU utilization
  • Prometheus Exporter
  • Basic-Auth protection
  • Top commands of count
  • Top command and keys count
  • No dependencies
  • No Redis performance degradation

Tasks:

  • Count commands and arguments
  • Count network traffic of command
  • Monitor Slow commands
  • Monitor big response

Installation

Usage

./redis-traffic-stats --interface=ens5 --addr=:9200 \
--password=pass \
--debug=false \
-s=: \
-r="[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}" \
--redisport=6379 \
--max=150 \
--slow-response-threshold=20ms
--snaplen=50000
Flag Default Usage
debug false Enable debug logs
interface empty Ethernet infreface name. eth0, ens5
redisport 6379 Redis server port number
addr :9200 http listener port for prometheus metrics
username admin Prometheus metrics username
password **** Prometheus metrics password
s empty Separator of keys (for split). If it empty does not split keys.
r empty Regex pattern of keys (for clean)
max 150 Maximum lookup size of key. If value -1 unlimited lookup.
slow-response-threshold 500 threshold for recording slow response. Millisecond
big-response-threshold 1500 threshold for recording slow response. Bytes
snap 2048 the maximum size to read for each packet (snaplen)

Grafana Dashboard

This easy way for dasboarding. You can upload to grafana this file.

Run test environment

docker-compose up

garafana:

http://localhost:3000/

prometheus:

http://localhost:9090/

Static Compilation

This tool require libpcap library (https://www.tcpdump.org/). You can embed dependencies on the compilation process. This helps for portability. Check the build command below

LDFLAGS='-l/usr/lib/libpcap.a' CGO_ENABLED=1 go build -ldflags '-linkmode external -extldflags -static' .

Troubleshooting

If you get an error about libpcap like below

./redis-traffic-stats: error while loading shared libraries: libpcap.so.0.8: cannot open shared object file: No such file or directory

install libpcap

for centos

yum install libpcap-devel

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Oğuzhan YILMAZ - @c1982 - [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].