Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions addons/promex/service-prometheus.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,13 @@ static int promex_dump_global_metrics(struct appctx *appctx, struct htx *htx)
val = mkf_u32(FN_GAUGE, 1);
break;

#ifndef USE_ZLIB
case ST_I_INF_ZLIB_MEM_USAGE:
case ST_I_INF_MAX_ZLIB_MEM_USAGE:
/* Skip zlib metrics when built with libslz */
continue;
#endif

default:
break;
}
Expand Down