Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

OBSERVE

Last updated
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.

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

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
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) 2147483648
11) "peak_memory_bytes"
12) (integer) 2415919104
13) "slowlog_length"
14) (integer) 12
15) "alerts_sent"
16) (integer) 3
17) "alerts_failed"
18) (integer) 0
19) "num_workers"
20) (integer) 8

HotKV-only command.

INFO, ALERTS, LICENSE.INFO