Restmon - Json schema uploaded successfully but not listed in the MCS template.
We have prepared the schema and uploaded it in restmon but that is not reflected in the MCS template.
When we add the schema with 1 or 2 attributes, it is showing properly but more attributes are not showing.
UIM 20.x
Restmon probe
This is caused by using the same QOS name for all of the attributes
Change the QoS names to unique names.
See the attached full file examples:
Example not working:
"metrics": [
{
"xml_ns": "",
"attributes": {
"uim": {
"conversion": "Suspended:0, yes:1, disabled:2, no:3",
"defaultpublishing": "true",
"qos_name": "QOS_WM_SERVICE_STATE",
"qos_desc": "State",
"qos_abbr": "State",
"metric_type": "1.4:1",
"qos_unit": "State",
"source": "%hostname",
"target": "Example.target.example:example"
}
},
"value": "$.notIdealSchedulerList[0].actualStatus",
"url": "api",
"group": "group",
"helptext" : "Suspended:0, yes:1, disabled:2, no:3"
},
{
"xml_ns": "",
"attributes": {
"uim": {
"conversion": "Suspended:0, yes:1, disabled:2, no:3",
"defaultpublishing": "true",
"qos_name": "QOS_WM_SERVICE_STATE",
"qos_desc": "State",
"qos_abbr": "State",
"metric_type": "1.4:1",
"qos_unit": "State",
"source": "%hostname",
"target": "Example.target.example:example"
}
},
"value": "$.notIdeal_JDBC_PollingNotifications[0].idealNotificationEnabled",
"url": "api",
"group": "grouos",
"helptext" : "Suspended:0, yes:1, disabled:2, no:3"
},
example working:
"metrics": [
{
"xml_ns": "",
"attributes": {
"uim": {
"conversion": "Suspended:0, yes:1, disabled:2, no:3",
"defaultpublishing": "true",
"qos_name": "QOS_WM_SERVICE_STATE",
"qos_desc": "State",
"qos_abbr": "State",
"metric_type": "1.4:1",
"qos_unit": "State",
"source": "%hostname",
"target": "Example.target.example:example"
}
},
"value": "$.notIdealSchedulerList[0].actualStatus",
"url": "api",
"group": "group",
"helptext" : "Suspended:0, yes:1, disabled:2, no:3"
},
{
"xml_ns": "",
"attributes": {
"uim": {
"conversion": "Suspended:0, yes:1, disabled:2, no:3",
"defaultpublishing": "true",
"qos_name": "QOS_WM_SERVICE_SERVICEREQUESTNOTIFICATION_STATE",
"qos_desc": "State",
"qos_abbr": "State",
"metric_type": "1.4:1",
"qos_unit": "State",
"source": "%hostname",
"target": "Example.target.example:example"
}
},
"value": "$.notIdeal_JDBC_PollingNotifications[0].idealNotificationEnabled",
"url": "api",
"group": "groups",
"helptext" : "Suspended:0, yes:1, disabled:2, no:3"
},