Skip to content

Instantly share code, notes, and snippets.

@nekufa
Created February 8, 2022 16:12
Show Gist options
  • Save nekufa/a90c062d06dc08f06ceea5d18fb88377 to your computer and use it in GitHub Desktop.
Save nekufa/a90c062d06dc08f06ceea5d18fb88377 to your computer and use it in GitHub Desktop.
~ # nats stream report
Obtaining Stream stats
╭────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Stream Report │
├──────────────────────────┬─────────┬───────────┬──────────┬────────┬──────┬─────────┬──────────┤
│ Stream │ Storage │ Consumers │ Messages │ Bytes │ Lost │ Deleted │ Replicas │
├──────────────────────────┼─────────┼───────────┼──────────┼────────┼──────┼─────────┼──────────┤
│ event_notify_budget │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-0* │
│ action │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-0* │
│ anomaly │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ budget │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-0* │
│ developer │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ entity │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-0* │
│ event │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ event_changes │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ event_notify_action │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ event_notify_anomaly │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ view │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ event_notify_cetelem │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ event_notify_company │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ event_notify_flow │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ event_notify_genesis │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ event_notify_helpdesk │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ event_notify_integration │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ event_notify_intercom │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ event_notify_life │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ event_notify_person │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-0* │
│ event_notify_report │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ event_notify_sector │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ event_notify_sheet │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ event_notify_solution │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-0* │
│ event_notify_space │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ event_notify_stage │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ event_notify_storage │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ event_notify_tax │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ event_notify_telemetry │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ event_notify_unit │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-0* │
│ event_notify_view │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ event_notify_web │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ event_process │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-0* │
│ flow │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-0* │
│ gateway │ File │ 11 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ guard │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-0* │
│ integration │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ life │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ person │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ queue │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ sheet │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ space │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-0* │
│ stage │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ storage │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ telemetry │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-2* │
│ web │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-1* │
│ KV_SERVICE_HANDLERS │ File │ 0 │ 33 │ 38 KiB │ 0 │ 0 │ nats-1* │
╰──────────────────────────┴─────────┴───────────┴──────────┴────────┴──────┴─────────┴──────────╯
~ # nats stream info event
Information for Stream event created 0001-01-01T00:00:00Z
Configuration:
Subjects: event
Acknowledgements: true
Retention: File - WorkQueue
Replicas: 1
Discard Policy: New
Duplicate Window: 2m0s
Allows Msg Delete: true
Allows Purge: true
Allows Rollups: true
Maximum Messages: unlimited
Maximum Bytes: unlimited
Maximum Age: unlimited
Maximum Message Size: unlimited
Maximum Consumers: unlimited
Cluster Information:
Name: nats
Leader: nats-2
State:
Messages: 0
Bytes: 0 B
FirstSeq: 410
LastSeq: 409 @ 2022-02-08T15:54:41 UTC
Active Consumers: 1
~ # nats consumer report event
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Consumer report for event with 1 consumers │
├──────────┬──────┬────────────┬──────────┬─────────────┬─────────────┬──────────────┬───────────┬─────────┤
│ Consumer │ Mode │ Ack Policy │ Ack Wait │ Ack Pending │ Redelivered │ Un processed │ Ack Floor │ Cluster │
├──────────┼──────┼────────────┼──────────┼─────────────┼─────────────┼──────────────┼───────────┼─────────┤
│ event │ Pull │ Explicit │ 30.00s │ 0 │ 0 │ 0 │ 409 │ nats-2* │
╰──────────┴──────┴────────────┴──────────┴─────────────┴─────────────┴──────────────┴───────────┴─────────╯
~ # nats consumer info event event
Information for Consumer event > event created 2022-02-07T13:05:44Z
Configuration:
Durable Name: event
Pull Mode: true
Filter Subject: event
Deliver Policy: All
Ack Policy: Explicit
Ack Wait: 30s
Replay Policy: Instant
Max Ack Pending: 20,000
Max Waiting Pulls: 512
Cluster Information:
Name: nats
Leader: nats-2
State:
Last Delivered Message: Consumer sequence: 409 Stream sequence: 409 Last delivery: 16m47s ago
Acknowledgment floor: Consumer sequence: 409 Stream sequence: 409 Last Ack: 16m47s ago
Outstanding Acks: 0 out of maximum 20000
Redelivered Messages: 0
Unprocessed Messages: 0
Waiting Pulls: 66 of maximum 512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment