Skip to content

Deploying OpenSearch Metrics

Deploying OpenSearch-based metrics for HCL Connections™ involves testing the environment and then switching users to the OpenSearch Metrics component.

Before proceeding, make sure that you have changed the number of shards for the index (if your environment warrants it), and enabled the Metrics component to connect to your OpenSearch server.

Complete the following steps to set up OpenSearch Metrics:

  1. Validate that the OpenSearch user experience is functioning well by confirming the test context root URL is working:

    Log in to the following URL as the admin user: https://Connections_server/metricssc

  2. When validation is complete, run the following Python script to switch users to the OpenSearch Metrics component.

    This script causes the RDBMS-based app to stop capturing data, and the OpenSearch component to start capturing it.

    1. On the WebSphere deployment manager server, start the wsadmin client as described in Starting the wsadmin client.

    2. Run the following commands to switch users to the OpenSearch Metrics component:

  3. (Optional) Map user profile attributes to report dimensions.

    Metrics reports support up to three different dimensions, which are based on user profile attributes. The following user attributes are supported for mapping to report dimensions:

    • By default, mapping is provided for the following three attributes:

    • - Mapped to the Geography dimension in Metrics reports

    • - Mapped to the Department dimension in Metrics reports
    • - Mapped to the Role dimension in Metrics reports You can change the attribute mapping by completing the following steps:

    Note: You should only change mappings with your first use of Metrics. Otherwise, Metrics data will be inconsistent and lead to incorrect report data.

    1. Get the default mapping:




    2. Update the mapping:

      Do not change the keys "attribute1", "attribute2", and "attribute3". Just replace the attributes with the values that you want to use.

      Run the following command:


      For example:

      MetricsAdminService.setUserAttributesMapping('{"attribute1":"","attribute2":"","attribute":""}' )
    3. Get the mapping again to verify that it was changed successfully:


      If the mapping did not update correctly, review the logs in the following location:


  4. Confirm that the URL for metrics is working: https://Connections_server/metrics.

Parent topic:Configuring the OpenSearch Metrics component