Prometheus + grafana + alertmanager mailbox alarm

Environment

System: CentOS 7
Software: alertmanager-0.18.0.linux-amd64.tar.gz

Install

  • Download the binary package
    Address: https://prometheus.io/download/

  • Installation

    # tar -xzvf alertmanager-0.15.1.linux-amd64.tar.gz # mkdir /usr/local/prometheus # mv alertmanager-0.15.1.linux-amd64 /usr/local/prometheus/alertmanager 
  • Create a data directory

    #  mkdir -p /data/prometheus/alertmanager/data 
  • Create user and authorize

    < pre class="hljs shell"># useradd prometheus # chown- R prometheus:prometheus /usr/local/prometheus /data/prometheus

Start< /h2>

  • Add startup service

    # vim /usr /lib/systemd/system/alertmanager.service [Unit] Description=Alertmanager After=network.target [Service] Type=simple User=prometheus ExecStart=/usr/local/prometheus/alertmanager/alertmanager --config.file=/usr /local/prometheus/alertmanager/alertmanager.yml --storage.path=/data/prometheus/alertmanager/data Restart=on-failure [Install] WantedBy=multi-user.target 
  • Startup

    # systemctl enable alertmanager.service # systemctl start alertmanager.service < /span>
  • Access
    Address: http://ip:9093

< /div>

Environment< /h2>

System: CentOS 7
Software: alertmanager-0.18.0.linux-amd64.tar.gz

Installation

  • Download Binary package
    Address: https://prometheus.io/download/

  • Installation

    # tar -xzvf alertmanager-0.15.1.linux-amd64.tar.gz # mkdir /usr/local/prometheus # mv alertmanager-0.15.1.linux-amd64 /usr/local/prometheus/alertmanager 

    < /li>

  • Create a data directory

    # mkdir -p /data/ prometheus/alertmanager/data 
  • Create users and authorize

    # useradd prometheus # chown -R prometheus:prometheus /usr/local/prometheus /data/prometheus 

Start

  • Add startup service

    # vim /usr/lib/systemd/system/alertmanager. service [Unit] Description=Alertmanager After=network.target [Service] Type=simple User=prometheus ExecStart=/usr/local/prometheus/alertmanager/alertmanager --config.file=/usr/local/prometheus/alertmanager/alertmanager. yml --storage.path=/data/prometheus/alertmanager/data Restart=on-failure [Install] WantedBy=multi-user.target 
  • < p>Start

    # systemctl enable alertmanager.service # systemctl start alertmanager.service 

  • Access
    Address: http://ip:9093

Environment

System: CentOS 7
Software: alertmanager-0.18.0.linux-a md64.tar.gz

Installation

  • Download the binary package
    Address: https://prometheus.io/download/

  • Installation

    # tar -xzvf alertmanager-0.15.1. linux-amd64.tar.gz # mkdir /usr/local/prometheus # mv alertmanager-0.15.1.linux-amd64 /usr/local/prometheus/alertmanager  span>
  • Create a data directory

    # mkdir -p /data/prometheus/alertmanager/data 
  • Create users and authorize

    # useradd prometheus # chown -R prometheus:prometheus /usr/local/prometheus /data/prometheus < /span>

    < /li>

Start

  • Add start service

     # vim /usr/lib/systemd/system/alertmanager.service [Unit] Description=Alertmanager After=network.target [Service] Type=simple User=prometheus ExecStart=/usr/local/prometheus /alertmanager/alertmanager --config.file=/usr/local/prometheus/alertmanager/alertmanager.yml --storage.path=/data/prometheus/alertmanager/data Restart=on-failure [Install] WantedBy=multi-user. target 
  • Start

    # systemctl enable alertmanager.service # systemctl start alertmanager.service < /span>
  • Access
    Address: http://ip:9093< /p>

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4897 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.