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.
- Go tohttps://Telcocloud serviceassurance-ui-IP.A typical URL for logging into the user interface from the same system on whichVMware Telco Cloud Service Assuranceis installed ishttps://10.x.x.x.
- Enter the user name and password.
- ClickNext.
- Navigate to theAdministration>Configuration.
- ClickKafka Mappers.Add Kafka Mapperappears in the right pane.
You can view the output of the Kafka mapper anytime, by uploading Sample Data and clickingEvaluate. TheEvaluatetab 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. - To configure the Kafka mapping, enter the details as listed below:Input ParametersDescriptionDefault ValueMapper NameProvide name of the mappingNAMapper DescriptionProvide description about Kafka mapping.NATypeSelect from following:
- Metrics
- Events
MetricsMapping DetailsModel TypeUseChoose Model, to select the model from the Data Model Catalogs.GenericCodeRepresents the formatted schema (in JSON format) of selected model.NAReplace Mapping SchemaUpload a new mapping schema.NASample DataUseSelect Sample Data, to upload JSON file.NATarget Data ModelProvide details about selected model schema:- Catalog
- Data Model
- Properties
- Tags
NAEvaluateProvides JSON path expression mapping values to the sample data.NASelect Sample DataExample:Mapping source properties to the destination properties to comply with theVMware Telco Cloud Service Assuranceformat using JSONPath expressions."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 - To create Kafka mapping, clickCreate Mapper.