Flatcar Linux

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

Prerequisites

Butane tool to translate human readable Butane configuration into machine readable Ignition configuration used by Flatcar Linux container Linux.

Install

Step 1: Butane Configuration

You will have to create a systemd service in your Flatcar container Linux’s Butane configuration.

You will have to create a mw-agent.service systemd unit in your existing Butane configuration.

Step 2: Ignition Configuration

Convert your Butane configuration to Ignition configuration using the following command

Replace your-configuration.bn with the actual configuration file name in the above command

You can now use the contents of ignition.ign to provision and launch your Flatcar Linux container 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

Verify the status of the Infra Agent. If status is UP or Exited, the installation was successful. If status is blank, installation was unsuccessful. Run the following command to verify the Infra Agent status:

Step 5: Check Your Dashboard

Navigate to Middleware and ensure metrics are appearing in the Unified Dashboard. It can take up to a few minutes for metrics to appear. If metrics do not appear after this time head to our troubleshooting page for some common issues.

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