cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Displaying custom host metrics using plugin

Julius_Loman
DynaMight Legend
DynaMight Legend

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 ).

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:

{
"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"
}
}
]
}

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner
6 REPLIES 6

Jakub_Mierzewsk
Inactive

Displaying metrics on host are not yet officially supported. Debug flag must be turned on in order to display host metrics on the UI. Please contact with your Dynatrace sales rep.

Could you tell me current status of this feature?
Is it needed to turn on the debug flag on latest version of OneAgent?
I'm trying to create an OneAgent plugin to display metrics on host.


tarjei_utnes
Helper

Hi, what is the latest status here? Do we still need to use the debug flag?


As far as I've been told this should be available very soon. Definitely this year.


Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Awesome, we are eagerly waiting for this.


This already seems to be working (at least with Dynatrace 177+, Oneagent 175+). You get additional host tile:

For plugin example, see my simple host session count plugin available at:
https://github.com/juliusloman/dynatrace-oneagent-plugin-hostsessioncount


Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts