OBSERVE
OBSERVE INFO OBSERVE METRICS
- Group
- Observability
- Complexity
- O(1)
- Arity
- -2 (at least 2 words, counting the command name)
- Flags
- admin, read-only, fast
- HotKV Cloud
- Performance and Scale
- On-Premise
- requires the enterprise-observability license feature
OBSERVE gives monitoring tools a short, fixed set of figures over the
normal client connection, for when you cannot scrape the Prometheus
endpoint (metrics-port). For everything, use INFO.
Subcommands
Section titled “Subcommands”| Subcommand | Fields |
|---|---|
INFO |
uptime_seconds, connected_clients, total_commands, used_memory_bytes, peak_memory_bytes, total_connections, enterprise_features |
METRICS |
uptime_seconds, connected_clients, total_commands, total_connections, used_memory_bytes, peak_memory_bytes, slowlog_length, alerts_sent, alerts_failed, num_workers |
| Field | Meaning |
|---|---|
uptime_seconds |
Seconds since the server started |
connected_clients |
Clients connected now |
total_commands |
Commands processed since start |
total_connections |
Connections accepted since start |
used_memory_bytes, peak_memory_bytes |
Memory in use now, and the highest so far |
enterprise_features |
The features the license enables (as LICENSE.INFO lists them), or (no valid license) |
slowlog_length |
Entries in the slow log |
alerts_sent, alerts_failed |
Webhook alerts delivered and failed (see ALERTS) |
num_workers |
Threads serving client connections |
Return value
Section titled “Return value”A flat array of field and value pairs, in RESP2 and RESP3, in the order
listed above. enterprise_features is a bulk string; every other value is
an integer. Errors:
| Case | Error |
|---|---|
| Unknown subcommand | ERR unknown OBSERVE subcommand '<name>' - try OBSERVE INFO or OBSERVE METRICS |
No license that includes enterprise-observability |
NOLICENSE enterprise-observability requires a HotKV license. Contact sales@hotkv.com |
Examples
Section titled “Examples”127.0.0.1:6379> OBSERVE METRICS 1) "uptime_seconds" 2) (integer) 86412 3) "connected_clients" 4) (integer) 37 5) "total_commands" 6) (integer) 918273645 7) "total_connections" 8) (integer) 4120 9) "used_memory_bytes"10) (integer) 214748364811) "peak_memory_bytes"12) (integer) 241591910413) "slowlog_length"14) (integer) 1215) "alerts_sent"16) (integer) 317) "alerts_failed"18) (integer) 019) "num_workers"20) (integer) 8Compatibility
Section titled “Compatibility”HotKV-only command.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.