# Displaying custom host metrics using plugin

**URL:** <https://community.dynatrace.com/t/displaying-custom-host-metrics-using-plugin/7685>\
**Category:** Extensions\
**Tags:** oneagent, extensions\
**Created:** [September 7, 2017, 9:07am UTC](https://community.dynatrace.com/t/displaying-custom-host-metrics-using-plugin/7685 "2017-09-07T09:07:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 7, 2017, 9:07am UTC](https://community.dynatrace.com/t/displaying-custom-host-metrics-using-plugin/7685/1 "2017-09-07T09:07:09Z")

</div>

I’ve created a custom oneagent plugin using the SDK sending host metrics. However I’m unable to display those metrics from custom plugin in the UI. Metrics are not displayed at the host level and also cannot be seen using when building custom chart or when defining custom alerts. However metric data sent by the plugin be successfully retrieved using timeseries REST APIs ( [https://{id}.live.dynatrace.com/api/v1/timeseries](http://https://%7Bid%7D.live.dynatrace.com/api/v1/timeseries) ).

Also it does not matter if I specify the “ui” part in the plugin.json file or not. Am I doing something wrong or is dynatrace not able to display custom host metrics at the moment?

My plugin.json:

```auto
{
  "name": "custom.python.passwd_plugin",
  "version": "1.2",
  "type": "python",
  "entity": "HOST",
  "processTypeNames": ["LINUX_SYSTEM"],
  "source": {
    "package": "passwd_plugin",
    "className": "PasswdPlugin",
    "install_requires": [],
    "activation": "Singleton"
  },
  "metrics": [
    {
      "timeseries": {
        "key": "records",
        "unit": "Count"
      }
    },
    {
      "timeseries": {
        "key": "size",
        "unit": "Byte"
      }
    }
  ]
}

```

---

_[View the full topic](https://community.dynatrace.com/t/displaying-custom-host-metrics-using-plugin/7685)._
