question

Francois G. avatar image
Francois G. asked ·

Correct combination of processTypeNames and pgi_name in OneAgent plugin that pulls docker container statistics from docker remote API

Hi All,

I'm building a OneAgent plugin in order to create alerts for container level events, since Dynatrace can't do this (yet). The plugin gets a list of containers and stats for each container from the docker stats API.

I'm uncertain about the correct implementation of process snapshots, specifically the correct combination of pgi_name/id in the plugin code and processTypeName in the plugin.json schema.

My current configuration is pgi_name('dockerd') and "processTypeNames": ["DOCKERDEAMON"], but this is not working for some reason. The plugin builds successfully without any errors.

Any insights would be appreciated.

Regards,

Francois

oneagentextensionsprocess groupsdocker
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

1 Answer

Julius L. avatar image
Julius L. answered ·

As far as I remember (been a while since I've played with the OneAgent SDK), but I remember it this way:

The "processTypeNames" or "processTypes" determine if plugin should be "executed". This means if process of give type specified in the array is found, the plugin will get executed. On the other hand, the pgi_name/id in the plugin code determines for which processgroup will the data be sent. AFAIK should be able to send out metrics for process groups of any types (not just the ones defined in plugin.json).

Did you have a look how the ruxit.python.docker plugin is written? The Docker monitoring is also performed using the python plugin.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Space Topics

mobile monitoring dotnet synthetic monitoring reports iis chat kubernetes servicenow amazon web services mysql mainframe rest api errors cassandra dashboard oneagent sdk cmc application monitoring openkit smartscape request attributes monitoring developer community user tagging log monitoring services ufo syntheticadvisory activegate ip addresses auto-detection high five award oracle hyperion webserver uem usql iib test automation license web performance monitoring ios news migration management zones index ibm mq web services custom event alerts notifications sso host monitoring knowledge sharing reports browser monitors java hybris sap vmware maintenance window user action naming javascript appmon ai synthetic classic availability tipstricks automation extensions session replay diagnostic tools permissions davis assistant faq documentation problem detection http monitors server easytravel apdex aws-quickstart network docker tags and metadata cloud foundry google cloud platform synthetic monitoring process groups account usability dynatrace saas gui paas openshift key user actions administration user actions postgresql synthetic locations oneagent security Dynatrace Managed user management custom python technologies mongodb openstack user session monitoring continuous delivery citrix configuration alerting NGINX action naming linux nam installation masking error reporting database mission control jmeter recorder apache mobileapp RUM php threshold azure purepath davis scripting agent aix nodejs android