digitalocean / prometheus-client-c

A Prometheus Client in C
Other
160 stars 79 forks source link

Add function to pass libmicrohttpd options when starting Prometheus listener #68

Open sysvinit opened 2 years ago

sysvinit commented 2 years ago

This commit adds a new function, promhttp_start_daemon_with_options(), which exposes the variadic options interface of MHD_start_daemon() to applications using prometheus-client-c. This would allow applications to e.g. bind to a specific IP address instead of the wildcard address, which is the libmicrohttpd default.

ggarber commented 2 years ago

I think this is a great addition. I also need it!

wferi commented 1 year ago

79 enables a different approach: calling libmicrohttpd directly.