Monitoring Mesos Slaves
Prerequisites
- Create a Middleware account
- Keep Middleware API Key and Target at hand https://app.middleware.io/installation#infrastructures/ubuntu
Make sure to replace
MW_API_KEY_VALUE
and MW_TARGET_VALUE
placeholders in the steps aheadMethod 1 : Install & Run Middleware Agent - Via Script
- This script will Install a DEB file and start the Middleware Agent as a service.
- If systemd is not available, it will create an upstart service.
1-step installation script
Method 2 : Install & Run Middleware Agent - Manually
1. Download DEB file
2. Install DEB file
3. Run Middleware Agent
3.1. Using CLI
3.2. Using Service
3.2.1 For Ubuntu machines having systemd
- Create
/etc/systemd/system/mwservice.service
with the content given below
- Enable & Start the service
3.2.2 For older Ubuntu machines - not having systemd
- Create
/etc/init/mwservice.conf
with the content given below
- Create
/etc/init/mwservice.conf
with the content given below
- Enable & Start the service