Retro Eye care Haitian Deep Dark Default
Logo
Install Monitoring Center

Install Monitoring Center #

Background

SphereEx Monitoring Center uses Prometheus to store and process monitoring data. Prometheus is an excellent system monitoring tool. SphereEx-Boot provides the function of installing Prometheus.

Prerequisites

SphereEx-Boot’s hosts, and hosts deploying Prometheus require SSH mutual trust authentication.

Note: There are two ways to install Prometheus.

Install via command #

Application Scenarios

When you need to quickly install Prometheus on a single host, you can directly enter the command to install.

Procedure

  1. From the Prometheus website, download the installation package prometheus-xxx.xxx.tar.gz.

Note: You can also use the Prometheus installation package from the Boot toolkit.

  1. Enter the command directly to install.
$ spex component install --user "root" --password "123456" --install-dir /root/prometheus --package ./prometheus-2.33.3.linux-amd64.tar.gz --host 127.0.0.1

Install through a Configuration File #

Application Scenarios

When you need to deploy Prometheus on multiple hosts, you can use a configuration file to install it.

Procedure

  1. From the Prometheus website, download the installation package prometheus-xxx.xxx.tar.gz.

  2. Export the configuration template “prometheus-config.yaml”.

$ spex component install -t
$ ls 
prometheus-config.yaml
  1. The following is the configuration file “prometheus-config.yaml”. Users can configure it according to the actual situation.
install_user: root # user name
install_password: root # password
prometheus:
  file: /root/prometheus-x.x.x.tar.gz # prometheus installation package path
  install_dir: /root/prometheus/ # installation directory
  servers:
    - host: 10.0.1.1 # worker node IP
      install_dir: /root/promethues/ # set the installation directory separately
  1. Fill in the configuration file “prometheus-config.yaml”, and use the following command to install.
$ spex component install -f ./prometheus-config.yaml