Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize the output format of redis requests #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yz1509
Copy link

@yz1509 yz1509 commented Feb 3, 2021

Before

tcp and port 6379
# Start new stream: 127.0.0.72->127.0.0.72 59640->6379
 INFO
# Start new stream: 127.0.0.72->127.0.0.72 6379->59640
 CONFIG GET maxmemory
# Start new stream: 127.0.0.72->127.0.0.72 60578->6379
 PING
# Start new stream: 127.0.0.72->127.0.0.72 6379->60578
# Start new stream: 127.0.0.1->127.0.0.1 41712->6379
 SLOWLOG GET 11
# Start new stream: 127.0.0.1->127.0.0.1 6379->41712
 INFO
 CONFIG GET maxmemory
 SLOWLOG GET 11
 INFO
 CONFIG GET maxmemory
 SLOWLOG GET 11
# Start new stream: 127.0.0.72->127.0.0.72 60580->6379
 PING
# Start new stream: 127.0.0.72->127.0.0.72 6379->60580
 INFO
 CONFIG GET maxmemory
 SLOWLOG GET 11
 SLOWLOG GET 11
# Start new stream: 127.0.0.1->127.0.0.1 44172->6379
# Start new stream: 127.0.0.1->127.0.0.1 6379->44172
 PING
 CLIENT SETNAME redis_exporter
 CONFIG GET *
 INFO ALL
 INFO
 CONFIG GET maxmemory
 SLOWLOG LEN
 SLOWLOG GET 1
 PING
 SLOWLOG GET 11
 INFO
 CONFIG GET maxmemory
 SLOWLOG GET 11
 INFO
 CONFIG GET maxmemory

After

tcp and port 6379
# Start new stream: 127.0.0.72->127.0.0.72 59640->6379
"1612323922 [127.0.0.72:59640] INFO"
# Start new stream: 127.0.0.72->127.0.0.72 6379->59640
"1612323922 [127.0.0.72:59640] CONFIG GET maxmemory"
# Start new stream: 127.0.0.1->127.0.0.1 41712->6379
"1612323923 [127.0.0.1:41712] SLOWLOG GET 11"
# Start new stream: 127.0.0.1->127.0.0.1 6379->41712
# Start new stream: 127.0.0.72->127.0.0.72 60580->6379
"1612323923 [127.0.0.72:60580] PING"
# Start new stream: 127.0.0.72->127.0.0.72 6379->60580
"1612323923 [127.0.0.72:59640] INFO"
"1612323923 [127.0.0.72:59640] CONFIG GET maxmemory"
"1612323924 [127.0.0.1:41712] SLOWLOG GET 11"
"1612323924 [127.0.0.72:59640] INFO"
"1612323924 [127.0.0.72:59640] CONFIG GET maxmemory"
"1612323925 [127.0.0.1:41712] SLOWLOG GET 11"
# Start new stream: 127.0.0.72->127.0.0.72 60578->6379
"1612323925 [127.0.0.72:60578] PING"
# Start new stream: 127.0.0.72->127.0.0.72 6379->60578
"1612323926 [127.0.0.72:59640] INFO"
"1612323926 [127.0.0.72:59640] CONFIG GET maxmemory"
"1612323926 [127.0.0.1:41712] SLOWLOG GET 11"
"1612323927 [127.0.0.1:41712] SLOWLOG GET 11"
"1612323927 [127.0.0.72:59640] INFO"
"1612323927 [127.0.0.72:59640] CONFIG GET maxmemory"
"1612323928 [127.0.0.1:41712] SLOWLOG GET 11"
"1612323928 [127.0.0.72:59640] INFO"
"1612323928 [127.0.0.72:59640] CONFIG GET maxmemory"
"1612323928 [127.0.0.72:60580] PING"
"1612323929 [127.0.0.1:41712] SLOWLOG GET 11"
"1612323929 [127.0.0.72:59640] INFO"
"1612323929 [127.0.0.72:59640] CONFIG GET maxmemory"
"1612323930 [127.0.0.1:41712] SLOWLOG GET 11"
"1612323930 [127.0.0.72:59640] INFO"
"1612323930 [127.0.0.72:59640] CONFIG GET maxmemory"
"1612323930 [127.0.0.72:60578] PING"
"1612323931 [127.0.0.1:41712] SLOWLOG GET 11"
"1612323931 [127.0.0.72:59640] INFO"
"1612323931 [127.0.0.72:59640] CONFIG GET maxmemory"
"1612323932 [127.0.0.1:41712] SLOWLOG GET 11"
"1612323932 [127.0.0.72:59640] INFO"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant