OS specific installation
  • 13 Jun 2024
  • 3 Minutes to read
  • PDF

OS specific installation

  • PDF

Article summary

Traceable's Platform agent receives various information from different tracing agents. The Platform agent is deployed between a tracing agent and the Traceable Platform and collects data. It also classifies and redacts data. The Platform agent ensures that no sensitive information reaches the Traceable Platform. The Platform agent receives the blocking rule information from the Traceable Platform and sends it to the instrumentation agent.

The document details steps to install the Traceable agent on virtual machines having one of the following two operating systems:


Before you begin

You would require an Agent token to proceed with Platform agent installation. Complete the following steps to generate a unique Agent token: 

  1. Log in to your Traceable account.

  2. Navigate to Settings (image-1638268402925) → Account Agent Tokens.

  3. Click on Generate Token.

Make sure to copy and save the generated token, as you cannot access it again. You can only edit the name of the token or delete it. This token is used in the steps detailed below. If this token is deleted from Traceable Platform (UI), the communication between Traceable Platform agent and Traceable Platform (UI) will break. In such a case, generate a new token and update the same in the Platform agent.


Amazon Linux 2 (CentOS)

The set of instructions is compatible with Amazon Linux 2 (CentOS). Complete the following steps to install Traceable agent:

  1. Set up the repository

  2. Select the version of the Traceable agent

  3. Install Traceable agent

  4. Configure Traceable agent

  5. Start Traceable agent

  6. Verify installation

Set up the repository

Enter the following command to set up the Traceable repo:

sudo vi /etc/yum.repos.d/traceable.repo

Paste the following contents (type i to enter edit mode)

Replace [7|8] with the version of CentOS you are using. Execute rpm -E %{rhel} to fetch the CentOS version.

In the following sample snippet, in baserul, replace the centos[7/8] with the required version of CentOS,, as shown in the example.

[traceable]
name=Traceable repository
baseurl=https://packages.traceable.ai/centos[7|8]/
enabled=1
gpgcheck=0

For example,

[traceable]
name=Traceable repository
baseurl=https://packages.traceable.ai/centos7/
enabled=1
gpgcheck=0

Hold down Shift + ZZ to exit Vi editor.

Install Traceable

sudo yum install traceable

Configure Traceable

  1. Set the refresh token

Add the refresh token to the file below. This is the token you copied and saved in the Before you begin section.

sudo vi /etc/traceable/agent/token

 Type Shift + ZZ to exit vi.

  1. Reload systemd

Enter the following command to reload the systemd service:

sudo systemctl daemon-reload
  1. Set the environment variable

Enter the following command to set the environment variable:

sudo systemctl edit traceable

 Enter the following, then exit the editor:

[Service]
Environment="TA_ENVIRONMENT=<expected environment>"

Platform agent connection through a proxy

If the Traceable Platform agent is connecting to the Traceable Platform through a transparent proxy, you can add the following environment variable along with TA_ENVIRONMENT setting:

Enviornment = "http_proxy=http://<address>:<port>"
Environment = "https_proxy=http://<address>:<port>"

If the proxy server requires a username and password, include the credentials as shown below:

Environment = "https_proxy=http://<username>:<password>@<address>:<port>"

Start Traceable

Enter the following command to start the Traceable agent:

sudo systemctl start traceable

 Add Traceable to the system startup

sudo systemctl enable traceable && sudo systemctl restart traceable

Verify installation

Enter the following command to verify a successful installation of the Traceable agent:

systemctl is-active traceable

Ensure no ERROR logs are present,u and a Started metric exporter message appears in the logs

cat /var/traceable/log/traceable.YYYY_mm_dd_ss_mil.log

Ubuntu

The instructions to install Traceable agent are compatible with Ubuntu 18.04, 20.04, and 22.04. Complete the following steps to install the Traceable agent:

  1. Set up the repository

  2. Install Traceable agent

  3. Configure Traceable agent

  4. Start Traceable agent

  5. Verify installation

Set up the Repository

sudo apt-get update
sudo apt-get install -y ca-certificates
sudo echo "deb [trusted=yes] https://packages.traceable.ai/ubuntu/ focal main" | sudo tee -a /etc/apt/sources.list.d/traceable.list
sudo apt-get update

Install Traceable

sudo apt-get install -y traceable

Configure Traceable

Configuring Traceable involves the following two steps:

  1. Editing the config.yam file

  2. Reloading systemd service

Set the refresh token

Add the refresh token to the file below

sudo vi /etc/traceable/agent/token

Reload systemd

Enter the following command to reload the systemd service:

sudo systemctl daemon-reload

Set the environment variable

Enter the following command to set the environment variable:

sudo systemctl edit traceable

 Enter the following then exit the editor:

[Service]
Environment="TA_ENVIRONMENT=<expected environment>"

Enter the following command to start the Traceable agent:

sudo systemctl start traceable

Platform agent connection through a proxy

If the Traceable Platform agent is connecting to the Traceable Platform through a transparent proxy, you can add the following environment variable along with TA_ENVIRONMENT setting:

Enviornment = "http_proxy=http://<address>:<port>"
Environment = "https_proxy=http://<address>:<port>"

If the proxy server requires a username and password, include the credentials as shown below:

Environment = "https_proxy=http://username:password@<address>:<port>"

Add Traceable to the system startup

Enter the following command to add a Traceable agent to systemd startup:

sudo systemctl enable traceable && sudo systemctl restart traceable

Verify installation

Enter the following command to verify a successful installation of the Traceable agent:

systemctl is-active traceable

Ensure no ERROR logs are present,, and a Started metric exporter message appears in the logs

cat /var/traceable/log/traceable.YYYY_mm_dd_ss_mil.log



Was this article helpful?

ESC

Eddy, a generative AI, facilitating knowledge discovery through conversational intelligence