Open
Description
Bug description
See PushOver Limits:
Messages are currently limited to 1024 4-byte UTF-8 characters, with a title of up to 250 characters. Supplementary URLs are limited to 512 characters, and URL titles to 100 characters.
For my alarm PushOver API returns an error: "errors":["Url is too long (maximum is 512 characters)"]
.
The problem is that alarm-notify.sh
script is constructing $goto_url
, which in my case is quite long due to a metric from Prometheus endpoint (metric has labels inside etc.)
Expected behavior
Option1. URL and other fields are checked for length
Option 2. Ability to drop URL via configuration
Steps to reproduce
Just hardode any longer values (e.g. redirect_params
) into goto_url
and try to send PushOver notification
goto_url="${NETDATA_REGISTRY_URL}/registry-alert-redirect.html?agent_machine_guid=${NETDATA_REGISTRY_UNIQUE_ID}&host_machine_guid=${child_machine_guid}&transition_id=${transition_id}&${redirect_params}"
Installation method
kickstart.sh
System info
This is not applicable to any particular system
Netdata build info
Netdata v2.5.3
Additional info
No response