We are creating custom business metrics using the metrics API v2.
Before, when sending custom metrics with API v1 we used to tag the custom device and we could use those tags for alerting profile filters.
I might have missed it but I'm unsure if it's possible to tag the v2 kind of metric.
Has anyone done something similar, how do you set up the tagging rules?
Solved! Go to Solution.
If you are having troubles tagging them via custom device, you can always revert to the entity selector and tag them from that standpoint. The entity selector allows you to set a tag for any entity in Dynatrace. https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/entity-selector/
Extending what Chad said, you might want to look at the new generic entity model. Basic workflow is:
You can see your soda cans by going to abc123.live.dynatrace.com/ui/entity/list/entity:sodacan
Correct. In this case you'd define a new generic entity called sodacan and set the extractionrule to be some string (in my case sodacanid)
Then whenever you pass a metric, a new entity (think of an object in OOP) will be automatically created based on that unique ID.
Feel free to reach out on email (firstname.lastname @ dynatrace.com) if you want to describe your setup in more detail privately.