So, I want to send some metrics from one of our other monitoring tools about Network internet facing Interfaces that live on some switches in our datacenters using the Dynatrace Ingest Metrics API v2.
Each interface entity would have some properties like Name, ID, IP Address, Transmit/Receive bandwidth, and maybe even some custom properties like ISP Name and Circuit ID. Each interface lives on a network switch that I would also want to create as new entities in Dynatrace with properties like Name, Model Number, and IP Address and custom properties like Location and Device Role (i.e. Core Switch, Access Switch, DataCenter Switch, etc…).
From what I’ve pieced together via the Metrics Ingestion Protocol, the Monitored Entities API, and the Topology Model documentation, it seems like I have to send all those property values for the entities as dimensions with each metric payload and then you have rules in Settings > Topology model > Generic types that parse those dimensions out into Entity ID, Entity Name, and Entity Attribute fields.
If that’s correct, that seems weird and unnecessary to me. It seems more logical to have my script that is sending the metrics to the API to check and see if the entities I’m sending metrics about already exist and, if they don’t, to send all of the above properties and values as dimensions to have the new entities created and, if the entities do already exist, just send the Interface Name (or some unique ID value) and metric for this timestamp. Do we really have to send all of those static properties with each and every metric payload? Those properties will pretty much never change once set, and the documentation talks about how metrics and entities are two separate things, but entity dimensions are shown as always being sent with the metrics payloads. It just doesn’t make sense.
Also, apparently Entities in Dynatrace can have Metadata. Is that the same thing as the attribute values set by the Topology model rules? If not, how do I set the metadata for an entity created by custom metrics created via the metrics v2 ingest API?



