Data Subscription

AOM allows you to subscribe to metrics or alarms. After the subscription, data can be forwarded to custom Kafka or Distributed Message Service (DMS) topics for you to retrieve.

A maximum of 10 data subscription rules can be created.

Creating Subscription Rules

  1. Log in to the AOM console. In the navigation pane, choose Configuration Management > Data Subscription.
  2. Click Create Subscription Rule in the upper right corner. On the displayed page, set parameters and click OK.

    You can set Subscription Target Type to Custom Kafka or DMS as required.

    • If Subscription Target Type is set to Custom Kafka, set parameters based on Table 1.
      Table 1 Subscription rule parameters

      Parameter

      Description

      Example

      Rule Name

      Subscription rule name.

      Enter aom-kafka-test.

      Subscription Content

      Options: Metric and Alarm.

      Select Metric.

      Subscription Target Type

      Options: Custom Kafka and DMS.

      Select Custom Kafka.

      Subscription Target Address

      Custom Kafka address, which needs to be connected to Internet.

      Each address must be in the format of "IPv4 address:port". If multiple addresses exist, separate them by commas (,). Example: 192.168.0.1:9092,192.168.0.2:9092

      Set this parameter as required.

      1. (Optional) On the Rule Details page, click to enable Kafka SASL_SSL and set parameters based on Table 2.

        AOM supports only Kafka SASL_SSL security authentication. If you have enabled Kafka SASL_SSL for instances, you also need to enable it on the Rule Details page.

        Table 2 Setting Kafka SASL_SSL parameters

        Parameter

        Description

        Example

        User name

        SASL username for instance access authentication.

        demo

        Password

        SASL password for instance access authentication. Keep your password secure. The system cannot detect your password.

        -

        Client certificate

        Use a client certificate in .pem format.

        -

      2. Click Verify and Save Custom Kafka Configuration to verify the connectivity of the custom Kafka instance.
      3. Select a topic for transmitting data and click OK.
    • If Subscription Target Type is set to DMS, set parameters based on Table 3.
      Table 3 Subscription rule parameters

      Parameter

      Description

      Example

      Rule Name

      Subscription rule name.

      Enter aom-kafka-test.

      Subscription Content

      Options: Metric and Alarm.

      Select Metric.

      Subscription Target Type

      Options: Custom Kafka and DMS.

      Select DMS.

      Instance

      Select a DMS instance. If no DMS instance is available, click Create DMS Instance to create one.

      Select kafka-aom-7160.

      1. On the Rule Details page, click Create a network connection channel.
      2. Verify the DMS instance connectivity.

        Ensure that an inbound rule is added to allow traffic from source IP address 198.19.128.0/20 on port 9011. To set a security group rule, do as follows:

        1. Log in to the management console.
        2. Click in the upper left corner and choose Networking > Virtual Private Cloud.
        3. In the navigation pane, choose Access Control > Security Groups. Then, locate the security group corresponding to the DMS instance and click Manage Rule in the Operation column.
        4. On the Inbound Rules tab page, click Add Rule to allow the network traffic from source IP address 198.19.128.0/20 on port 9011.
      3. Click Verify and Save DMS Configuration Information.
      4. Select a topic for transmitting data and click OK.

Data Subscription Format

Follow-up Operations

After the data subscription rule is created, AOM will send data to your custom Kafka or DMS topic so that you can retrieve the subscribed metrics or alarms.