Linux

This guide walks you through installing the Infrastructure Agent (Infra Agent) on a Linux machine. These instructions can also be found on the Installation page in the Middleware application.

We offer two install scripts based on your operating system. Please note that not all Linux machines are supported. A list of supported machines can be found under Prerequisites.

Prerequisites

1 Ubuntu

Ubuntu v18.04 or above

2 AWS Instances

For AWS EC2 instances, Amazon Linux, Ubuntu, or Debian is required. For AWS instances using Red Hat, please install the Docker Infra Agent

3 Operating System

MacOS Linux is not supported

Install

Step 1: Access Linux Installation

Log in to Middleware, navigate to the Installation Page in the bottom left corner and select Linux-Based from the Infrastructure section

Step 2: Run Linux Install Command

Copy the appropriate installation command based on your machine’s operating system. Copying the command directly from the Installation page ensures your API key and UID are inserted accurately.

DEB
RPM

DEB: Compatible with Debian or Debian-based operating systems. For AWS instances this includes Ubuntu and Debian.

RPM: Compatible with Red Hat Package Manager and operating systems like Red Hat or CentOS. Use this for AWS instances using Amazon Linux.

Step 3: Add Host Tags [Optional]

Create filterable custom tags by adding the MW_HOST_TAGS environment variable to the installation command as comma-separated key-value pairs. Use the tag name to create an alias for the host (e.g. production).

Check your host tags have been embedded by navigating to Infrastructure -> Your Desired Host -> System Information

Step 4: Verify Installation

Run the following command to verify the Infra Agent status:

A successful installation will return the following Infra Agent Status report:

Troubleshooting

Run only one Infra Agent per node per host. Multiple agents will cause unexpected behavior.

Once the Infra Agent is installed metrics should begin appearing in the Middleware application within a few minutes. If metrics do not appear, confirm that the machine has access to the internet, either directly or through a proxy, and that only one Infra Agent is running per node.

Uninstall

To uninstall the MW agent, use one of the following commands:

DEB
RPM

Need assistance or want to learn more about Middleware? Contact our support team in Slack.