build_prometheus_cpp.sh 273 B

12345678910111213
  1. #! /bin/bash -eu
  2. cd /tmp
  3. git clone --recursive https://github.com/jupp0r/prometheus-cpp
  4. mkdir prometheus-cpp/build
  5. cd prometheus-cpp/build
  6. cmake .. \
  7. -DCMAKE_INSTALL_PREFIX=/usr/local \
  8. -DCMAKE_BUILD_TYPE=Release \
  9. -DENABLE_TESTING=0
  10. make -j$(nproc)
  11. sudo make install