Not getting alerts to alert-insights from ML Insights in Watchtower
search cancel

Not getting alerts to alert-insights from ML Insights in Watchtower

book

Article ID: 395030

calendar_today

Updated On:

Products

WatchTower WatchTower Platform

Issue/Introduction

Noticed that not getting alerts to alert-insights from ml-insights, and have noticed that there are a bunch of errors in the logs for attempting the POST for these alerts. On this page of the documentation, it alludes to the use of the string name of the alert group for configuration, but the error says that it is having an issue with deserializing the value type 'java.lang.Long' from that string while it is the name of the group (Group Name). Is it actually supposed to be the Group Number (Group ID) that was assigned to the group?

Generic example of error message received: 

2025-xx-xx 00:00:00.000000000+0000 ERROR 1 --- [ Thread-1] c.c.o.e.n.a.rest.AlertInsightsProvider : WTWML : Failed to update alert in Alert Central due to exception: 400 on POST request for "https://zowe.xxx.com:xxxx/bcmalertinsightsapi/api/v1/alerts": "{"messages":[{"messageType":"ERROR","messageNumber":"BMACS9400","messageContent":"Invalid Input. Reason: Cannot deserialize value of type `java.lang.Long` from String \"ml-insights\": not a valid `java.lang.Long` value\n at [Source: (org.springxxxxx.util.StreamUtils$NonClosingxxxx); line: x, column: xxx] (through reference chain: com.broadcom.msd.xx.xxx.xxxxxx.xxxxx.AlertCreate[\"owningGroup\"])","messageReason":"The request contained an invalid input.","messageAction":"Review the reason description in the message and provide a valid input.","messageKey":"com.broadcom.msd.xx.xxx.badInput.basic","messageParameters":["Cannot deserialize value of type `java.lang.Long` from String \"ml-insights\": not a valid `java.lang.Long` value\n at [Source: (org.springxxxxxxx.util.StreamUtils$NonClosingInputStream); line: x, column: xxx] (through reference chain: com.broadcom.msd.xx.xxx.xxxx.xxxxxx.AlertCreate[\"owningGroup\"])"],"messageInstanceId":"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx","messageComponent":"com.broadcom.msd.xx.xxx.common.exceptions.BaseExceptionHandler"}]}

Environment

WT 1.2

Resolution

Need to provide the Group ID for variable "ALERT_INSIGHTS_GROUP_NAME"  in "ml-insights-configmap" Config Map, as shown by this example (Customer would need to specify their own Group ID):

ALERT_INSIGHTS_GROUP_NAME: "1234"

This was also noted in the documentation to reference the Group ID:

Create a group to integrate ML-Insights