makeporngreatagain.pro
yeahporn.top
hd xxx

Install & Setup Prometheus On Amazon Linux, CentOS & RHEL

1,030
  1. Create a system user for Prometheus:
     sudo useradd --no-create-home --shell /bin/false prometheus
  2. Create the directories in which we’ll be storing our configuration files and libraries:
     sudo mkdir /etc/prometheus
     sudo mkdir /var/lib/prometheus
  3. Set the ownership of the /var/lib/prometheus directory:
     sudo chown prometheus:prometheus /var/lib/prometheus
  4. Pull down the tar.gz file from the Prometheus downloads page:
     cd /tmp/
     wget https://github.com/prometheus/prometheus/releases/download/v2.49.1/prometheus-2.49.1.linux-amd64.tar.gz
  5. Extract the files:
     tar -xvf prometheus-2.49.1.linux-amd64.tar.gz
  6. Move the configuration file and set the owner to the prometheus user:
     cd prometheus-2.49.1.linux-amd64
     sudo mv console* /etc/prometheus
     sudo mv prometheus.yml /etc/prometheus
     sudo chown -R prometheus:prometheus /etc/prometheus
  7. Move the binaries and set the owner:
     sudo mv prometheus /usr/local/bin/
     sudo mv promtool /usr/local/bin/
     sudo chown prometheus:prometheus /usr/local/bin/prometheus
     sudo chown prometheus:prometheus /usr/local/bin/promtool
  8. Create the service file:
     sudo vim /etc/systemd/system/prometheus.service

    Add:

    [Unit]
    Description=Prometheus
    Wants=network-online.target
    After=network-online.target
    
    [Service]
    User=prometheus
    Group=prometheus
    Type=simple
    ExecStart=/usr/local/bin/prometheus \
        --config.file /etc/prometheus/prometheus.yml \
        --storage.tsdb.path /var/lib/prometheus/ \
        --web.console.templates=/etc/prometheus/consoles \
        --web.console.libraries=/etc/prometheus/console_libraries
    
    [Install]
    WantedBy=multi-user.target

    Save and exit. (For VIM, press ESC:wq to save and exit.)

  9. Reload systemd:
     sudo systemctl daemon-reload
  10. Start Prometheus, and make sure it automatically starts on boot:
     sudo systemctl start prometheus
     sudo systemctl enable prometheus
  11. Visit Prometheus in your web browser at PUBLICIP:9090

Comments are closed, but trackbacks and pingbacks are open.

baseofporn.com https://www.opoptube.com
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.