Saving and Importing Custom .js scripts in Synthetics

While working with synthetics and writing custom scripts for monitors i came into the situation of replicating 1 monitor 4-5 times to check different things but the actual code is 99% the same.
I do don want to have all of the checks in the same monitor because it is not clean that way and it is also not clear what failed if 1 monitor checks 4-5 different things.

Can you add a way to save custom scripts and having a way to import them while writing a new script for a monitor.
This would be great as it would allow the re-using of code instead of copy pasting of having one monitor do many things.

Thanks


New Relic edit

  • I want this, too
  • I have more info to share (reply below)
  • I have a solution for this

0 voters

We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.

Hi, @vedran.semenski: While you wait for this feature, you may find this workaround helpful:

2 Likes