# How to duplicate/copy existing calculated-service-metrics?

**URL:** <https://community.dynatrace.com/t/how-to-duplicate-copy-existing-calculated-service-metrics/21575>\
**Category:** Open Q&A\
**Tags:** services-classic\
**Created:** [February 24, 2021, 3:25am UTC](https://community.dynatrace.com/t/how-to-duplicate-copy-existing-calculated-service-metrics/21575 "2021-02-24T03:25:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![waikeat\_chan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/waikeat_chan/32/33405_2.png) [@waikeat\_chan](https://community.dynatrace.com/u/waikeat_chan)\
**Post date:** [February 24, 2021, 3:25am UTC](https://community.dynatrace.com/t/how-to-duplicate-copy-existing-calculated-service-metrics/21575/1 "2021-02-24T03:25:09Z")

</div>

As an experiment, I’ve configured multiple calc-service-metrics to track the performance of various funds of my customer, in terms of their request-count.

Now I want to create the metrics to track the response-time and also failure-rate of each funds too.

Instead of recreating one-by-one, I am wondering is there way I can duplicate/clone a new one based on existing calc-service-metric, then in the new one simply change from request-count to response-time.

Then it would be time-saving.

Best Regards,

Wai Keat

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [February 24, 2021, 5:45am UTC](https://community.dynatrace.com/t/how-to-duplicate-copy-existing-calculated-service-metrics/21575/2 "2021-02-24T05:45:33Z")

</div>

Hello [@Wai Keat C.](https://answers.dynatrace.com/users/6729/view.html)

I wish there was a way to duplicate/clone the existing metrics. In this situation, I see only the less tedious way to use the API.

> **[Service metrics API - PUT a metric](https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/calculated-metrics/service-metrics/put-calculated-metric)**
>
> Update a calculated service metric via the Dynatrace API.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![adam\_gardner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/adam_gardner/32/20087_2.png) [@adam\_gardner](https://community.dynatrace.com/u/adam_gardner)\
**Post date:** [February 24, 2021, 5:48am UTC](https://community.dynatrace.com/t/how-to-duplicate-copy-existing-calculated-service-metrics/21575/3 "2021-02-24T05:48:21Z")

</div>

Use monaco to download the calculated service metrics (and other configuration) from your tenant. They’ll come down in their own folder. Then just modify the YAML and JSON files and you have new CSMs. Then just use `monaco deploy…` to send back to your tenant

Let me know if you want more info on monaco (the repo has most of the info though)

> **[GitHub - Dynatrace/dynatrace-configuration-as-code: This tool automates deployment of Dynatrace...](https://github.com/Dynatrace/dynatrace-configuration-as-code)**
>
> This tool automates deployment of Dynatrace Configuration to one or multiple Dynatrace environments.
