# Infrastructure Monitoring with just Custom metrics

**URL:** <https://community.dynatrace.com/t/infrastructure-monitoring-with-just-custom-metrics/22943>\
**Category:** Open Q&A\
**Tags:** hosts-classic\
**Created:** [January 22, 2020, 12:29pm UTC](https://community.dynatrace.com/t/infrastructure-monitoring-with-just-custom-metrics/22943 "2020-01-22T12:29:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mevlut\_soner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mevlut_soner/32/34748_2.png) [@mevlut\_soner](https://community.dynatrace.com/u/mevlut_soner)\
**Post date:** [January 22, 2020, 12:29pm UTC](https://community.dynatrace.com/t/infrastructure-monitoring-with-just-custom-metrics/22943/1 "2020-01-22T12:29:17Z")

</div>

Hi all ,

Our client would like to monitor their hosts without consuming infrastructure monitoring license, they would like to do that by just consuming custom metrics license (for exm; CPU/memory/disk usage or network connectivity etc.), Is this possible ?

I looked at the Dynatrace documents, i found something that called timeseries API, there are many available metrics, you can look below. Is this the way to do it ?

[https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/metric-v1/available-metrics/managed/](https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/metric-v1/available-metrics/managed/?_ga=2.258222925.638106918.1579502535-2033812005.1565269317)

Regards.

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [January 22, 2020, 12:44pm UTC](https://community.dynatrace.com/t/infrastructure-monitoring-with-just-custom-metrics/22943/2 "2020-01-22T12:44:38Z")

</div>

Yes, you can create custom network device and push there metrics using api. You have to define those metrics and write scripts that will collect them on hosts and sent them to DT using api. This will work but never be as useful as OneAgent

---

<div class="post-metadata">

**Author:** ![mevlut\_soner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mevlut_soner/32/34748_2.png) [@mevlut\_soner](https://community.dynatrace.com/u/mevlut_soner)\
**Post date:** [January 22, 2020, 12:59pm UTC](https://community.dynatrace.com/t/infrastructure-monitoring-with-just-custom-metrics/22943/3 "2020-01-22T12:59:12Z")

</div>

Thanks for your answer. Can’t we do that without writing script ? the first question is that. The second question is if we write a script that collects all metrics from server and then post these to DT through API, how can we schedule it ? If the OS is linux, it can be crontab ?

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [January 22, 2020, 1:16pm UTC](https://community.dynatrace.com/t/infrastructure-monitoring-with-just-custom-metrics/22943/4 "2020-01-22T13:16:18Z")

</div>

No you cannot use OneAgent to collect metrics without host unit consumption. Script can be scheduled in crontab to fetch metrics every minute and then send them to DT. But you have to deal with retries when network problems will interrupt sending data etc. In general it may cost much work.

Sebastian

---

<div class="post-metadata">

**Author:** ![mevlut\_soner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mevlut_soner/32/34748_2.png) [@mevlut\_soner](https://community.dynatrace.com/u/mevlut_soner)\
**Post date:** [January 22, 2020, 1:44pm UTC](https://community.dynatrace.com/t/infrastructure-monitoring-with-just-custom-metrics/22943/5 "2020-01-22T13:44:38Z")

</div>

OK, got it. Thank you Sebastian.
