# Synthetic monitor of openshift scenario

**URL:** <https://community.dynatrace.com/t/synthetic-monitor-of-openshift-scenario/45777>\
**Category:** Synthetic Monitoring\
**Tags:** openshift, javascript, synthetic-monitoring\
**Created:** [May 27, 2024, 1:44pm UTC](https://community.dynatrace.com/t/synthetic-monitor-of-openshift-scenario/45777 "2024-05-27T13:44:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![khouloud](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@khouloud](https://community.dynatrace.com/u/khouloud)\
**Post date:** [May 27, 2024, 1:44pm UTC](https://community.dynatrace.com/t/synthetic-monitor-of-openshift-scenario/45777/1 "2024-05-27T13:44:50Z")

</div>

the goal is to modify an already populated YAML file on openshift console when creating Pod, for that I want to use Javascript clickpath in Dynatrace Synthetic Monitoring, we will proceed in several steps.

can you help me to do this correctly .  
the image below is a capture scenario of creating the pod whis has a yaml already filled and I want ti modify it according to my needs

 ![khouloud_0-1716817294019.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/0/50d768516e7fea43d939429cec23716d4693abc5.jpeg)

Regards

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [June 7, 2024, 11:49am UTC](https://community.dynatrace.com/t/synthetic-monitor-of-openshift-scenario/45777/2 "2024-06-07T11:49:35Z")

</div>

How do you normally modify it? Click inside the yaml and update&nbsp; the text? Can you do it in the console in DevTools with some JavaScript? If so, you could likely do the same with a [JavaScript Event](https://docs.dynatrace.com/docs/platform-modules/digital-experience/synthetic-monitoring/browser-monitors/browser-clickpath-events#javascript) in the monitor.

---

<div class="post-metadata">

**Author:** ![khouloud](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@khouloud](https://community.dynatrace.com/u/khouloud)\
**Post date:** [June 7, 2024, 1:46pm UTC](https://community.dynatrace.com/t/synthetic-monitor-of-openshift-scenario/45777/3 "2024-06-07T13:46:35Z")

</div>

Hello,&nbsp;  
Thank you for your answer,&nbsp;In fact, I tried everything, I tried to modify the yaml line by line, I tried to copy and paste the yaml content directly but it didn’t work&nbsp;it adds lines everywhere and in duplicate  
So I said to myself why I won’t try with the javascript script, here is the script I put in, as far as the javascript is concerned, I didn’t really understand how it works  
[javascript synthetic.txt](https://community.dynatrace.com/uploads/short-url/xeMEnycmHsNMjtkN6bwpxXYptOZ.txt) (1.57 KB)

 ![errsyn.PNG](https://global.discourse-cdn.com/dynatrace/original/3X/0/f/0f75f81866fa7a82211a8afe9f1ef7a0ad383616.png)

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [June 10, 2024, 8:01am UTC](https://community.dynatrace.com/t/synthetic-monitor-of-openshift-scenario/45777/4 "2024-06-10T08:01:02Z")

</div>

Your attachment looks like Selenium rather than Dynatrace Synthetic. If you would like to use Dynatrace for this, it might be easier to ask on the in-product chat for assistance in updating your monitor, as then we can check the Dynatrace Synthetic monitor.
