makeporngreatagain.pro
yeahporn.top
hd xxx

Install & Setup Alertmanager On Amazon Linux, CentOS & RHEL

2,528
  1. Create the alertmanager system user:
    sudo useradd --no-create-home --shell /bin/false alertmanager
  2. Create the /etc/alertmanager directory:
    sudo mkdir /etc/alertmanager
  3. Download Alertmanager from the Prometheus downloads page:
    cd /tmp/
    wget https://github.com/prometheus/alertmanager/releases/download/v0.16.1/alertmanager-0.16.1.linux-amd64.tar.gz
  4. Extract the files:
    tar -xvf alertmanager-0.16.1.linux-amd64.tar.gz
  5. Move the binaries:
    cd alertmanager-0.16.1.linux-amd64
    sudo mv alertmanager /usr/local/bin/
    sudo mv amtool /usr/local/bin/
  6. Set the ownership of the binaries:
    sudo chown alertmanager:alertmanager /usr/local/bin/alertmanager
    sudo chown alertmanager:alertmanager /usr/local/bin/amtool
  7. Move the configuration file into the /etc/alertmanager directory:
    sudo mv alertmanager.yml /etc/alertmanager/
  8. Set the ownership of the /etc/alertmanager directory:
    sudo chown -R alertmanager:alertmanager /etc/alertmanager/
  9. Create the alertmanager.service file for systemd:
    sudo vim /etc/systemd/system/alertmanager.service

    Copy and Paste content:

    [Unit]
    Description=Alertmanager
    Wants=network-online.target
    After=network-online.target
    
    [Service]
    User=alertmanager
    Group=alertmanager
    Type=simple
    WorkingDirectory=/etc/alertmanager/
    ExecStart=/usr/local/bin/alertmanager \
        --config.file=/etc/alertmanager/alertmanager.yml
    [Install]
    WantedBy=multi-user.target

    Save and exit.

  10. Stop Prometheus, and then update the Prometheus configuration file to use Alertmanager:
    sudo systemctl stop prometheus
    sudo $EDITOR /etc/prometheus/prometheus.yml
    
    alerting:
      alertmanagers:
      - static_configs:
        - targets:
          - localhost:9093
  11. Reload systemd, and then start the prometheus and alertmanager services:
    sudo systemctl daemon-reload
    sudo systemctl start prometheus
    sudo systemctl start alertmanager
  12. Make sure alertmanager starts on boot:
    sudo systemctl enable alertmanager
  13. Visit PUBLICIP:9093 in your browser to confirm Alertmanager is working.

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.