Add Kafka Mapping

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.
  1. Go to
    https://Telcocloud serviceassurance-ui-IP
    .
    A typical URL for logging into the user interface from the same system on which
    VMware Telco Cloud Service Assurance
    is installed is
    https://10.x.x.x
    .
  2. Enter the user name and password.
  3. Click
    Next
    .
  4. Navigate to the
    Administration
    >
    Configuration
    .
  5. Click
    Kafka Mappers
    .
    Add Kafka Mapper
    appears in the right pane.
    You can view the output of the Kafka mapper anytime, by uploading Sample Data and clicking
    Evaluate
    . The
    Evaluate
    tab contains the processed metric or error based on the current Kafka Mapper definition in the code window.
    Additionally, you can save MnR metric data to a file and upload. The uploaded data is converted to JSON format and displayed in the Sample Data section. This JSON data is used for further processing.
  6. To configure the Kafka mapping, enter the details as listed below:
    Input Parameters
    Description
    Default Value
    Mapper Name
    Provide name of the mapping
    NA
    Mapper Description
    Provide description about Kafka mapping.
    NA
    Type
    Select from following:
    • Metrics
    • Events
    Metrics
    Mapping Details
    Model Type
    Use
    Choose Model
    , to select the model from the Data Model Catalogs.
    Generic
    Code
    Represents the formatted schema (in JSON format) of selected model.
    NA
    Replace Mapping Schema
    Upload a new mapping schema.
    NA
    Sample Data
    Use
    Select Sample Data
    , to upload JSON file.
    NA
    Target Data Model
    Provide details about selected model schema:
    • Catalog
    • Data Model
    • Properties
    • Tags
    NA
    Evaluate
    Provides JSON path expression mapping values to the sample data.
    NA
    Select Sample Data
    Mapping source properties to the destination properties to comply with the
    VMware Telco Cloud Service Assurance
    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",
    NA
  7. To create Kafka mapping, click
    Create Mapper
    .