You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Major architecture overhaul — flat layout, unified API, prometheus-cpp compatibility
Breaking changes (fully backward-compatible via shims and aliases)
core/simpleapi/3rdpatryto flatinclude/src/3rdpartyprometheus-cpp-lite-core→prometheus-cpp-lite(header-only)prometheus-cpp-simpleapi→prometheus-cpp-lite-full(static, with globals)prometheus::simpleapi::toprometheus::namespacecore.h(registry.h,family.h,metric.h,builder.h, etc.)save_to_file.h→file_saver.hpush_to_server.h→http_pusher.hgateway.h→http_pusher.hhttp-client-lite→ip-sockets-cpp-litesimpleapi.h→prometheus.hNew features
http_server_t/Exposer) — new export mode with multi-endpoint support and auto-generated index pageinfo_t) for exposing build metadata as labelsbenchmark_t) for wall-clock profiling viastart()/stop()BuildCounter(),Exposer,Gateway,Family,Add(),Increment(),RegisterCollectable()add_custom_metric_class.cpp)counter_family_t, etc.) with compile-time type safetyuint64_t(default counters),int64_t(default gauges),double, or any arithmetic typehttp_server,http_pusher,file_saver) viaprometheus-cpp-lite-fulltargethttp_server_tandhttp_pusher_tBackward compatibility
All v1.0 code compiles and works without changes:
prometheus-cpp-lite-core,prometheus-cpp-simpleapi) provided as aliasesregistry.h,family.h,metric.h,builder.h,save_to_file.h,push_to_server.h,gateway.h, etc.) provided as shims with#pragma messagedeprecation noticesSaveToFile,PushToServer,Gateway) provided as[[deprecated]]type aliasesprometheus::simpleapi::namespace preserved with[[deprecated]]aliasessimpleapi.hredirects toprometheus.hand provides all legacy aliasesThis discussion was created from the release v2.0.
Beta Was this translation helpful? Give feedback.
All reactions