diff --git a/src/modules/keydb_modstatsd/modmain.cpp b/src/modules/keydb_modstatsd/modmain.cpp index 203dcdcdf..f6a5c0ee2 100644 --- a/src/modules/keydb_modstatsd/modmain.cpp +++ b/src/modules/keydb_modstatsd/modmain.cpp @@ -100,6 +100,7 @@ std::unordered_map g_mapInfoFields = { { "used_memory", { StatsD_Type::STATSD_GAUGE_BYTES, false /* prefixOnly */}}, { "used_memory_rss", { StatsD_Type::STATSD_GAUGE_BYTES }}, { "maxmemory", { StatsD_Type::STATSD_GAUGE_BYTES, false /* prefixOnly */}}, + { "maxstorage", { StatsD_Type::STATSD_GAUGE_BYTES, false /* prefixOnly */}}, { "used_memory_dataset_perc", { StatsD_Type::STATSD_GAUGE_FLOAT }}, { "avg_lock_contention", { StatsD_Type::STATSD_GAUGE_LONGLONG }}, { "repl_backlog_size", { StatsD_Type::STATSD_GAUGE_BYTES }}, diff --git a/src/server.cpp b/src/server.cpp index a14e4a9ce..e7ef53d23 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -5826,7 +5826,8 @@ sds genRedisInfoString(const char *section) { "lazyfree_pending_objects:%zu\r\n" "lazyfreed_objects:%zu\r\n" "storage_provider:%s\r\n" - "available_system_memory:%s\r\n", + "available_system_memory:%s\r\n" + "maxstorage:%llu\r\n", zmalloc_used, hmem, g_pserver->cron_malloc_stats.process_rss, @@ -5872,7 +5873,8 @@ sds genRedisInfoString(const char *section) { lazyfreeGetPendingObjectsCount(), lazyfreeGetFreedObjectsCount(), g_pserver->m_pstorageFactory ? g_pserver->m_pstorageFactory->name() : "none", - available_system_mem + available_system_mem, + g_pserver->maxstorage ); freeMemoryOverheadData(mh); }