19 Aug 2025
02:28 PM
- last edited on
20 Aug 2025
07:02 AM
by
MaciejNeumann
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.
19 Aug 2025 08:20 PM
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:
You can try to create a tagging rule, using entity selector, using "run_as" to "sql:postgres_host".
Best regards
20 Aug 2025 08:33 AM - edited 20 Aug 2025 09:02 AM
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 :
(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.
20 Aug 2025 12:55 PM
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