mirror of
https://github.com/wassname/ray.git
synced 2026-08-15 12:45:23 +08:00
Integrate metrics (#4246)
This commit is contained in:
committed by
Philipp Moritz
parent
8e19d3721f
commit
7d776f35e1
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
TOOLS_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
||||
|
||||
pushd $TOOLS_DIR
|
||||
|
||||
# Download Prometheus server.
|
||||
unamestr="$(uname)"
|
||||
if [[ "$unamestr" == "Linux" ]]; then
|
||||
echo "Downloading Prometheus server for linux system."
|
||||
PACKAGE_NAME=prometheus-2.8.0.linux-amd64
|
||||
elif [[ "$unamestr" == "Darwin" ]]; then
|
||||
echo "Downloading Prometheus server for MacOS system."
|
||||
PACKAGE_NAME=prometheus-2.8.0.darwin-amd64
|
||||
else
|
||||
echo "Downloading abort: Unrecognized platform."
|
||||
exit -1
|
||||
fi
|
||||
|
||||
URL=https://github.com/prometheus/prometheus/releases/download/v2.8.0/$PACKAGE_NAME.tar.gz
|
||||
wget $URL
|
||||
tar xvfz $PACKAGE_NAME.tar.gz
|
||||
|
||||
popd
|
||||
Reference in New Issue
Block a user