Setting up Decision Center to integrate with IBM Cloud Product Insights

After generating the API Key of your IBM Cloud Product Insights service instance on Bluemix®, you are ready to configure the Decision Center component of your on-premises IBM® ODM product to connect with the service instance.

Procedure

  1. Update the Decision Center configuration.
    1. Create the directory config in wlp_install_dir/usr/servers/odm8900/config, if it does not exist. wlp_install_dir is the Liberty installation directory.
    2. Create the file wlp_install_dir/usr/servers/odm8900/config/decisioncenter-configuration.properties with the following content:
      com.ibm.rules.metering.enable=true
      com.ibm.rules.metering.send.usages=true
      com.ibm.rules.metering.server.url=https://hybridconnect-api.ng.bluemix.net
      com.ibm.rules.metering.api.key=api_key
      com.ibm.rules.metering.instance.identifier=DecisionCenter
      com.ibm.rules.metering.install.directory=/opt/IBM/MyServer/ODMRuntime
      Note: api_key in the code snippet is the key used for the connection between your IBM Cloud Product Insights service instance on Bluemix and your IBM ODM server. You can find it in your service instance under Service Credentials > View Credentials.
      Note: DecisionCenter is an example of instance identifier, and /opt/IBM/MyServer/ODMRuntime is an example of installation directory. Please specify your own.
    Table 1. Metering attributes
    Element attribute Description Mandatory/optional
    com.ibm.rules.metering.api.key The API key generated from Bluemix. It is part of the service credentials of your IBM Cloud Product Insights dashboard in Bluemix. IBM ODM uses the API key to send the metering information securely to the correct dashboard.

    Mandatory when com.ibm.rules.metering.enable=true and com.ibm.rules.metering.send.usages=true

    See IBM ODM metrics.

    com.ibm.rules.metering.enable Set this parameter to true to insert or to false to remove the metering plugin in the Decision Center configuration. Optional
    com.ibm.rules.metering.host.name The name of the IBM ODM server that sends the metrics. Allows you to differentiate the servers.

    It is displayed in the IBM Cloud Product Insights dashboard. For example: myserver.com The format must follow the pattern [0-9]+(\.[0-9]+)*

    Optional
    com.ibm.rules.metering.install.directory Installation directory of the IBM ODM server. Helps distinguish two server instances. It is displayed in the IBM Cloud Product Insights dashboard. Optional

    For example: /opt/IBM/MyServer/MyRuntime

    com.ibm.rules.metering.instance.identifier Identifier to distinguish emitting servers that have the same host name. Optional

    For example: MyInstanceID

    com.ibm.rules.metering.send.usages When this parameter is enabled, the usage reporting of the runtime is sent to the IBM Cloud Product Insights server.

    Value: true or false

    Mandatory when com.ibm.rules.metering.enable=true

    You must set this parameter to true in order to send the runtime usage reports to your IBM Cloud Product Insights service instance.

    If this parameter is set to false, the metering feature is enabled but no usage reporting is sent

    com.ibm.rules.metering.server.url Endpoint where the usage metrics are sent

    Mandatory when com.ibm.rules.metering.enable=true and com.ibm.rules.metering.send.usages=true

    com.ibm.rules.metering.source.url URL of the server that emits the metrics. It is displayed in the IBM Cloud Product Insights dashboard. Optional
  2. Restart the Liberty server to deploy the Decision Center artifact with the new configuration.

Results

The Decision Center data is sent to your IBM Cloud Product Insights service instance.

What to do next

Go to Bluemix and check out usage results in your IBM Cloud Product Insights service dashboard. For details on usage metrics, see IBM ODM metrics

To disable IBM Cloud Product Insights usage metering, set the com.ibm.rules.metering.enable attribute to false as follows, and then restart the server:
com.ibm.rules.metering.enable=false