Skip to content

Instantly share code, notes, and snippets.

@umiyosh
Last active August 21, 2019 08:58
Show Gist options
  • Save umiyosh/7ce38de146437438f5058b2d51a07f31 to your computer and use it in GitHub Desktop.
Save umiyosh/7ce38de146437438f5058b2d51a07f31 to your computer and use it in GitHub Desktop.
This one-liner can randomly sample about 0.1% and slowly monitor with redis-cli

This one-liner can randomly sample about 0.1% and slowly monitor with redis-cli

% redis-cli -h sample-redis.io monitor | perl -ne 'print if (rand() < .001)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment