Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Conversation

@march-github
Copy link
Contributor

@march-github march-github commented Jan 23, 2020

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.

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. It is currently pulled from
GitHub on every clean build. It would be better to make 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 for LogDevice. Default is ON.
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jan 23, 2020
If ldprometheus plugin is in the main build, its external dependencies
should be handled the same way all other LogDevice external dependencies are.

Test plan:

Did a clean pull of LogDevice with this change into a new directory.
Followed the steps to rebuild LogDevice normally.
Verified that build completes and the Prometheus plugin loads fine.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA Signed Do not delete this pull request or issue due to inactivity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants