I don't know of a way to obtain the list of urls from a separated file, but something you can do is to define the monitor in a separate file, like this:
Files like this one, with monitor definitions, can be included with heartbeat.config.monitors from the main configuration file:
heartbeat.config.monitors:
# Directory + glob pattern to search for configuration files
path: ${path.config}/monitors.d/*.yml
# If enabled, heartbeat will periodically check the config.monitors path for changes
reload.enabled: false
# How often to check for changes
reload.period: 5s
You can create new file following the templates as much as you want.
I have several hundred files that created by bash script that only have single target, as follow
Thanks for kindly help. You are right. we may generate it from templates.
About the generation, the first idea comes to my mind is using scripts to convert json to yaml like https://www.json2yaml.com/ does. Is that same with your bash script samples?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.