ADMON
Pulse containers and services are monitored via ADMON.
Configure the tools as a systemd service to keep them running in the event of a system reboot or crash.
You need a custom SMTP server credentials to set up the email notifications when a Pulse container or service crashes or does not operate for any reason.
Configure ADMON
Follow the steps to deploy ADMON to monitor the containers and services :
- Type the command into the
$AcceloHomedirectory:
cd $AcceloHome- Download the
admonbinary by using your credentials and adding the following command.
wget -np -l 1 --auth-no-challenge -O "admon" --http-user=<CUSTOMER_NAME> --ask-password https://ci.acceldata.dev/downloads/commons/admon- Make the
admonbinary executable by adding the following command.
chmod +x <ACCELO_HOME>/admon- Use the following command to generate the
admonconfiguration file.
./admona configuration file is generated in the path: <ACCELO_HOME>/config/admon.yml>
- Edit the file in the path, <ACCELO_HOME>/config/admon.yml> by comparing the list of containers running on the host.
Replace all the instances of the <> properties with the appropriate values.
network: ad-defaultapmServerIP: <PULSE_UI_SERVER_IP>containers:- ad-director_default- ad-graphql_default- ad-connectors_default- ad-sparkstats_default- ad-alerts_default- ad-streaming_default- ad-tsdb_default- ad-db_defaultsmtp: username: <sender_email_id> password: <password> server: <server> port: <port> sender: <sender_email_id> senderName: <sender_user_name> receivers: - <accel_data_user_email_address> - <customer_email_address> emailSubject: '[<cluster_name> - ALERT] AccelData APM Containers Not Running' authEnabled: trueslackTeamURL: ""CheckInterval: 60SnoozeTime: 600- Create an new file in the path /etc/systemd/system/admon.service with the following contents:
[Unit]Description=AccelData AdMon DaemonWants=syslog.target network.targetAfter=syslog.target network.target[Service]Type=simplePIDFile=/run/admon.pidExecStartPre=/usr/bin/test -f /usr/bin/dockerExecStart=<ACCELO_HOME>/admon -r -c <ACCELO_HOME>ExecStop=/bin/kill -9 $MAINPIDTimeoutStopSec=10Restart=alwaysRestartSec=10[Install]Replace all the instances of the <> properties with the appropriate values.
- Run the commands to start and enable
admonas a systemd service:
systemctl daemon-reloadsystemctl start admon- Check if the status of the service is Up and Running. Now use the following command to enable auto start of the service on server reboots.
systemctl enable admonsystemctl status admonYou have now successfully installed ADMON and configured it monitor the services and containers.
Stop ADMON Service
To stop the ADMON service run the following command.
systemctl stop admon