Open Q&A
If there's no good subforum for your question - ask it here!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Refresh tags from environment variables

markusb
Newcomer_

I set a couple of tags from environment variables.

These tags can change when the process is restarted. But Dynatrace still displays the old setting. How can I tell Dynatrace to refresh the tags to what the environment variables say.

For example I have 

DT_RELEASE_VERSION=v10.4.0-b02

in my environment.

After updating the software the variable is set to

DT_RELEASE_VERSION=v10.5.0-b01

but in Dynatrace I still see the old value 'v10.4.0-b02'.

How can I tell Dynatrace to refresh the tags bases on the environment variables of the running process?

2 REPLIES 2

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

You can try to ingest metadata using oneagenctl + autotagging rule.

Best regards

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

m3tomlins
Helper

One of our experiences is that tag value updates are delayed with the auto-tagging propagation, for complex rules. If you have tags that are applied to other layers in the "stack" (e.g. apply to services, or underlying hosts, etc). In some cases it could take hours for a tag to be propagated to the new value. We ended up scoping our auto-tagging rules to limit propagation and keep tags from being applied unneccesarily to other entities.

One other thought I had: perhaps your process restart isn't refreshing the session hosting the process?...thus the environment variables would not be dropped and re-set on a new underlying session?

Dynatrace AllStar | Community Champion | @m3tomlins | @performacology | Dynatracer at FreedomPay

Featured Posts