libwebsockets/lib/system/metrics/CMakeLists.txt
Andy Green 3f4623bb36 lws_metrics
There are a few build options that are trying to keep and report
various statistics

 - DETAILED_LATENCY
 - SERVER_STATUS
 - WITH_STATS

remove all those and establish a generic rplacement, lws_metrics.

lws_metrics makes its stats available via an lws_system ops function
pointer that the user code can set.

Openmetrics export is supported, for, eg, prometheus scraping.
2021-03-08 21:47:28 +00:00

11 lines
137 B
CMake

include_directories(.)
if (LWS_WITH_SYS_METRICS)
list(APPEND SOURCES
system/metrics/metrics.c
)
endif()
exports_to_parent_scope()