To collect the data from the various data sources, you can add Kafka mapping. Kafka mapping also helps in processing incoming records. Additionally to map the properties, you can use JSON path expressions.

Procedure

  1. Go to http://Telco Cloud Operations-UI-IP.
    A typical URL for logging into the user interface from the same system on which VMware Telco Cloud Operations is installed is http://10.x.x.x.
  2. Enter the user name and password.
  3. Click Next.
  4. Navigate to the Administration > Configuration.
  5. Click Kafka Mappers.
  6. To configure the Kafka mapping, enter the details as listed below:
    Input Parameters Description Default Value
    Name Provide name of the mapping NA
    Description Provide description about Kafka mapping. NA
    Type Choose from following:
    • Metrics
    • Events
    Metrics
    Mapping
    Name Name of the mapping stored in the mapper. NA
    Schema Example

    Mapping source properties to the destination properties to comply with the VMware Telco Cloud Operations format using JSONPath expressions.

    Example:
     "type": "Kafka-Collector",
     "instance": "$.properties.source",
     "timestamp": "$.timestamp",
     "metricType": "$.properties.devtype",
     "properties.dataSource": "$.properties.ip",
     "properties.deviceType": "$.properties.devtype",
     "properties.deviceName": "$.properties.devdesc",
     "properties.entityType": "$.properties.type",
     "properties.entityName": "$.properties.table",
     
    Note:

    For data ingested through Kafka Mapper, timestamp values must be in the UTC timestamp ("YYYY-MM-DDTHH:mm:ss.sssZ") and long (ms since epoch) format. Failure to comply, results in messages not being ingested.

    For example:
    1. 2021-03-07T20:10:07.934Z (valid)
    2. 2021-3-7T20:10:07.934Z (invalid)
    3. 2021-03-07 (invalid)
    4. 1585827598 (valid)
    Replace Mapping Schema Upload a new mapping schema. NA
  7. To create Kafka mapping, click Create.