[Project Monitors] Support multiple hosts
/urls
/ports
in lightweight monitors.
#627
Labels
enhancement
New feature or request
Lightweight monitors in the synthetics agent currently do not support the popular multiple hosts feature. When users want to check a list of hosts with the same config, they can use a config like:
and easily monitor all three. We currently prevent that in our Kibana validation, because it would move us from a 1:1 saved object -> monitor relationship to a 1:N relationship. This issue would solve that by having the synthetics agent essentially treat the
hosts
andurls
fields as a macro, expanding it before communicating to the API.This requires us to also add the
host
to both theid
andname
fields to prevent clashes. This is done today in heartbeat by hashing thehost
then appending it to the ID in wrappers.go. We currently do not do something similar for the name, relying on the UI to show the name and the URL consistently side-by-side. I propose we change this, and include the plain text URL in the name as a suffix, so, in the example above we'd have names likeSpecial Monitors - 10.0.0.1:8080
.ACs:
urls
hosts
ports
The text was updated successfully, but these errors were encountered: