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

Using Metric Dimension values for Tagging Values (Key : Value)

pvr
Observer

Hello,

Is it possible to use metric dimensions as tag values?

Eg. If we use extension 2.0 custom metrics, say Palo Alto devices, I want to be able to tag the custom devices i.e. entities of type (palo-alto:device) with their IP address. For normal devices / std. custom devices this has a placeholder like {CustomDevice:IpAddress}, which is not possible for Palo Alto.

However, this extn 2. for palo alto stores the Device IP address in this metric dimension :

"com.dynatrace.extension.palo-alto.generic.if.entity ": "device.address".

Is it possible to use this dimension as tag value? if so what syntax/way is to be used?

thanks in advance.

-Venkat

2 REPLIES 2

mark_bley
Dynatrace Mentor
Dynatrace Mentor

Hi @pvr ,

atm it is not possible to attach the value of a dimension to a generic type directly from the ingested log line. However you can extract the dimension value and add it as a metadata to the generic type like displayed in this example here

The attribute section is what you would be looking at

attributes:
  - pattern: '{network.name}'
    key: wmi_network_name
    displayName: Name
  - pattern: '{network.type}'
    key: wmi_network_type
    displayName: Type

Hi @mark_bley ,

I issue is the IP address is already being stored as property/metadata on the custom device as the above dimension and is being displayed. However, we want to tag using that value as it (tags) would be the visible thing in our alerts on these devices.

My question is specific to how we can use an existing property/dimension as a tag value .

thanks

Venkat