This repository was archived by the owner on Jan 7, 2022. It is now read-only.
moved Mohamed Bassem's Prometheus plugin into the LogDevice source tree. #171
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The plugin implements a StatsPublisher that makes LogDevice stats
available to Prometheus over a specified TCP port. For more
details see https://github.com/MohamedBassem/logdevice-prometheus.
The plugin requires https://github.com/jupp0r/prometheus-cpp/ -- a
C++ client library for Prometheus. I made it a git submodule
of LogDevice.
The plugin requires no new dependent packages. I changed the cmake options
of prometheus-cpp build to remove the dependency on libcurl-dev.
Added BUILD_PLUGINS cmake option. Default is ON.
Test plan consists of (1) making a clean build of LogDevice with new submodule and plugin, (2) running tests/prometheus_test (passes), and (3) observing that ldprometheus plugin is listed in the output of LD_LOAD_PLUGINS=lib/libldprometheus.so bin/logdeviced.