Custom Alert Targets fail to deliver Webhook notifications to Google Chat Space. Slack or PagerDuty Webhooks deliver successfully from Wavefront or DX OpenExplore.
Functionality of sending notifications to Google Chat from Wavefront or DX OpenExplore is not currently supported.
It is recommended to use a supported notification method for reliable delivery of alert messages from your Wavefront or DX OpenExplore environment.
If you choose to use Google Chat APIs for Alert notification the below steps were provided as best-effort and have been found to deliver Alert Notifications however are not guaranteed.
{{! https://docs.wavefront.com/webhooks_alert_notification.html#customizing-alert-target-templates }}
{{#setDefaultIterationLimit}}500{{/setDefaultIterationLimit}}
{{#setFailingLimit}}500{{/setFailingLimit}}
{{#setInMaintenanceLimit}}500{{/setInMaintenanceLimit}}
{{#setNewlyFailingLimit}}500{{/setNewlyFailingLimit}}
{{#setRecoveredLimit}}500{{/setRecoveredLimit}}
{{#setAllInAlertQueryLimit}}500{{/setAllInAlertQueryLimit}}
{{#setFilterByKVsLimit}}500{{/setFilterByKVsLimit}}
{{#setContributingKVsLimit}}100{{/setContributingKVsLimit}}
{
"cardsV2": [{
"card": {
"header": {
"title": "[{{severity}}] {{name}}",
"subtitle": "{{reason}}"
},
"sections": [
{
"header": "Alert Link",
"widgets":[{"textParagraph": {"text":"<a href={{{url}}}>{{url}}</a>"}}]
},
{
"header": "Failing Sources",
"widgets": [
{
"textParagraph": {"text": "{{#failingHosts}} {{{.}}}, {{/failingHosts}}"}
}
]
},
{
"header": "Newly failing Sources",
"widgets": [
{
"textParagraph": {"text": "{{#newlyFailingHosts}} {{{.}}}, {{/newlyFailingHosts}}{{^newlyFailingHosts}}n/a{{/newlyFailingHosts}}"}
}
]
},
{
"header": "Recovered Sources",
"widgets": [
{
"textParagraph": {"text": "{{#recoveredSeries}} {{{.}}}, {{/recoveredSeries}}{{^recoveredSeries}}n/a{{/recoveredSeries}}"}
}
]
}
]
}
}]
}
Limitation: