To configure your Linux host (Ubuntu server) to send metrics to your IBM Cloud Monitoring instance, install a Sysdig agent.

Complete the following steps from the command line:

  1. Open the terminal.

  2. Run the following command to log in to the IBM Cloud:

    ibmcloud login -a cloud.ibm.com

    Select the account where the IBM Cloud Monitoring instance is available.

  3. Obtain the Sysdig access key.

    1. Log in to the IBM Cloud console. Open link.

    2. From the left navigation page, select Observability.
    3. Select Monitoring.The IBM Cloud Monitoring dashboard is displayed. A list of monitoring instances that are available on IBM Cloud are displayed.

    4. Identify the instance for which you want to get the access key. Select actions, then click View Key. A pop up window opens with the key information.

    5. Click the eye icon to view the access key.

  4. Obtain the IBM region list. For information, see Regions and endpoints. Open link.

  5. Obtain the region-specific public collector endpoint. For information, see Public collector endpoints. Open link
  6. Run the following command to deploy the Sysdig agent on the virtual server:
    curl -s  | sudo bash -s -- --access_key <SYSDIG_ACCESS_KEY> --collector <COLLECTOR_ENDPOINT> --collector_port 6443 --secure true --check_certificate false --tags TAG_DATA --additional_conf 'sysdig_capture_enabled: false'

    Example:
    command for frankfurt region from our environment: curl -s  | sudo bash -s -- --access_key 2cefff44-4cba-4c8d-afc0-a8563ee8049a --collector ingest.eu-de.monitoring.cloud.ibm.com --collector_port 6443 --secure true --check_certificate false --tags type:sysdig-agent,location:frankfurt,sourceType:virtualserver --additional_conf 'sysdig_capture_enabled: false'

  7. Verify the status of the dragent service

    Run the command: systemctl status dragent.service

After the installation is done, check the contents of the /opt/draios/etc/dragent.yaml file. The values of ssl, ssl_verify_certificate, and sysdig_capture_enabled properties must be set to the following:

If these values are not correct in the dragent.yml file, set these properties manually and save the file.

(Optional) To filter the metrics, add the metrics_filter property in dragent.yaml file. For details, see Including and excluding metrics. Open link

To view the metrics in the IBM Cloud Sysdig UI, launch the Sysdig Web UI. For details, see Launch the Web UI. Open link. In the Host and containers section, you can find the entry for your Ubuntu server.