Peek
Peek a messages from a queue channel command

Synopsis

Peek command allows to peak one or many messages from a queue channel without removing them from the queue
1
kubemqctl queues peek [flags]
Copied!

Examples

1
# Peek 1 messages from a queue and wait for 2 seconds (default)
2
kubemqctl queue peek some-channel
3
4
# Peek 3 messages from a queue and wait for 5 seconds
5
kubemqctl queue peek some-channel -m 3 -w 5
Copied!

Options

1
-h, --help help for peek
2
-m, --messages int set how many messages we want to peek from queue (default 1)
3
-w, --wait int set how many seconds to wait for peeking queue messages (default 2)
Copied!

Options inherited from parent commands

1
--config string set kubemqctl configuration file (default "./.kubemqctl.yaml")
Copied!
Last modified 1yr ago