Hello All,
I’m running Dynatrace OneAgent in infra‑only mode and tried to configure custom host properties using the --set-host-property flag, for example:
--set-host-property=Environment=NONPROD
--set-host-property=Owner=Container-Orchestration
However, these properties are not showing up under the “Properties and tags” section of the host overview in Dynatrace.
My questions are:
- Is this the expected behavior for infra‑only mode (i.e., custom host properties not supported)?
- If so, what’s the recommended way to surface these properties in Dynatrace when using infra‑only agents?
- Has anyone successfully used --set-host-property in infra‑only mode, or is this feature limited to full‑stack deployments?
Any guidance or confirmation would be greatly appreciated.
Thanks!
Also we are using terraform to deploy infraonly and passing this as args.
args:
- --set-app-log-content-access=true
- --set-host-property=Compliance=None
- --set-host-property=Environment=${oneagent_deploy_env}
- --set-host-property=NodeType=Worker
- --set-host-property=Owner=${oneagent_owner}
Hi,
Scroll down in the host view, I think they are added as metadata in the bottom.
And you can create auto tagging rules also, if you want those as tags.
Best regards
Thanks @AntonPineiro for your inputs.
I checked, but no metadata is showing for Infra-only. I can see it for Full stack, but not for Infra-only.
Hi,
Maybe is about terraform way or syntax. You can ingest host properties or host tags using oneagentctl, no matter is fullstack or inframode.
Best regards
tried that as well, still no luck. Form host it is showing but in DT it is not showing
Hi,
As I read Kubernetes… Which mode has OneAgent? Infra mode or PaaS mode? Can you share host properties in the Dynatrace UI?
Best regards
this one is Infraonly, this one not showing metadata
this one is fullstack
Hi,
I can see already your properties in the bottom on your screen, NodeType, Compliance… Metadata is there as expected.
Best regards
yes but that is for fullstack server, server 844 is not showing metadata, in configuration it has same metadata as server 840
Hi,
If you have 2 hosts, with same OneAgent version, with same OneAgent mode and one is working and another not, I would open a support ticket.
Best regards
Thank you @AntonPineiro for your help and suggestions. I will raise a ticket.
From your screenshots it seems that both (840, 844) agents are in full-stack mode.
ya even i am checking why it is showing sa full-stack in dt, but server 844 is configured as infraonly
args:
- --set-infra-only=true
this setting has been changed a few versions before, actual is (OneAgent configuration via command-line interface — Dynatrace Managed Docs
--set-monitoring-mode=infra-only
in fact, it was previously “--set-monitoring-mode=infrastructure”, setting you use was used even before 
ah okok, thank you for this, let me try and see if that works
it worked, thank you for your help.