tarantool / metrics

Metric collection library for Tarantool
MIT License
39 stars 23 forks source link

api: metrics configuration #425

Closed DifferentialOrange closed 1 year ago

DifferentialOrange commented 1 year ago

This PR introduces metrics.cfg{} -- a single entrypoint to setup the module:

It is a prerequirement to box.cfg{} metrics configuration after embedding.

Some features were deprecated to make API more consistent and stable:

Using the deprecated features logs warning for existing handles and throw errors for new API like metrics.cfg{}.

See comments for more info.

I didn't forget about

Part of tarantool/tarantool#7725