Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

add prometheus to thirdparty #284

Merged
merged 11 commits into from
Jul 31, 2019
Merged

add prometheus to thirdparty #284

merged 11 commits into from
Jul 31, 2019

Conversation

ChenQShmily
Copy link
Contributor

@ChenQShmily ChenQShmily commented Jul 26, 2019

download and build prometheus to thirdparty
then prometheus can be used as a new way to report data

@@ -244,6 +244,18 @@ check_and_download "${GFLAGS_PKG}"\
"${GFLAGS_NAME}"
exit_if_fail $?

# prometheus-cpp
if [ ! -d $TP_SRC/prometheus-cpp ]; then
git clone https://github.com/jupp0r/prometheus-cpp.git --recursive
Copy link
Contributor

@neverchanje neverchanje Jul 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用 0.7.0 有没有问题?我们的依赖包为了加速通常放在阿里云 oss,你应当这个也一样。没问题我就放上去。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用release版本的话prometheus本身会缺少第三方库,并且无法用git submodule init/update获取,在build的时候会失败

Copy link
Member

@vagetablechicken vagetablechicken Jul 29, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

第三方库gtest可以禁掉,option(ENABLE_TESTING "Build tests" ON)。也不会为第三方跑测试,不用build。
civetweb就和Prometheus一样,单独下来吧

git clone master还是不能保证稳定性

@neverchanje neverchanje added area/installation PR or issues related to compilation / build scripts / installation / deployment. component/scripts labels Jul 30, 2019
@vagetablechicken vagetablechicken merged commit d8e5bab into XiaoMi:master Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/installation PR or issues related to compilation / build scripts / installation / deployment.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants