cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Looking to upgrade from Dynatrace Managed to SaaS? See how

Automatic tag on custom device based on "issameis" OneAgent Host placeholder ?

nicolasT123
Visitor

Hello,

I am on a managed cluster.

I use the PostgreSQL native extension.

It creates two differents CUSTOM_DEVICE for one Databases servers.

I got the OneAgent installed installed and can see on the custom_device that it attachs the real monitored host.

On my host, I got properties.

How could I create a automatic tag value on the Custom device, based on a OA host property value like 

"{Host:Environment:myenv}"

And associate to the Custom_device entity selector : 

I tried this without success : 

type(CUSTOM_DEVICE),fromRelationships.issameas(type("HOST"))

 

Is it possible to inherit a placeholder value from a different entity type ?

 

Thanks in advance.

3 REPLIES 3

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

I would say transform that host property in a tag in host level, using automatic tagging rules. And later, propagate tag from host to custom device.

You need to check topology to understand how custom device is linked to host:

AntonPineiro_0-1755631134752.png

You can try to create a tagging rule, using entity selector, using "run_as" to "sql:postgres_host".

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Hello, I was able to create the good entity selector : 

type(sql:postgres_host),fromRelationships.issameas(type("HOST"))

 

The display entities is able to catch my host.. But the placeholder "{Host:Environment:myenv}" is not translated to its value and remains "raw : {Host:Environment:myenv}" on the custom devices tag : 

nicolasT123_0-1755675150547.png

(here another example screenshot but the philosophy is here)

precision : My metadata (host properties) is working fine because I use it to propagate tags from values to process groups and services.

What do you mean by propagate from "host tags" to "custom devices" tags ? You mean manually ? Or is there a way to make it automatic ? 

 

If manual, any new configuration of the extension will have to be followed by a manual tag propagation which is not smart at all. 

 

Thanks for your help.

 

Best regards.

Hi,

It means manually. Imagine you have tag "X". Then you can use "type(sql:postgres_host),fromRelationships.issameas(type("HOST"),tag("X"))" as selector to new tagging rule.

This product idea is to avoid manual stuff. It would be good if those tags are autopropagated to custom devices as default.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Featured Posts