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.
- 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.
- Enter the user name and password.
- Click Next.
- Navigate to the Administration > Configuration.
- 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.
- 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 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:
- Data Model
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",
- To create Kafka mapping, click Create Mapper.