And you're correct, this will not work, the REST API doesn't support that, my suggestion is to create an idea for this.
Original Message:
Sent: Tue February 03, 2026 05:39 AM
From: Rainer Schuppe
Subject: How to set TAGS for an Instana agent
Hey Israel,
Thanks for the reply. We tried that, but when we set the tags in the configuration.yaml they are applied to the host only and are not applied to the agent on that host. The JSON example in this thread is the output for a query where there are tags set on the host, but the agent tags array is empty.
That's why I asked how to set those.
Any idea how to get something into the tags array of the agent? - Update: There is an environment variable INSTANA_AGENT_TAGS which can be used. But that seems to be the only way - at least documented.
Thanks and regs,
Rainer
------------------------------
Rainer Schuppe Rainer Schuppe
Instana veteran (since 2016), APM oldtimer (since 2003 Wily, Dynatrace, AppDynamics, Instana, OpenTelemetry)
https://observability-heroes.com
------------------------------
Original Message:
Sent: Tue February 03, 2026 04:46 AM
From: Israel Ochoa
Subject: How to set TAGS for an Instana agent
Hey Rainer,
Unfortunately, it seems it's not possible using the Rest API, but, you can use the configuration YAML or environment tags, for example, this is for Kubernetes:
https://www.ibm.com/docs/en/instana-observability/1.0.312?topic=kubernetes-administering-agent#configuring-the-agent__title__1
Search the word tags and you're going to see how to add them in the configuration YAML using a custom resource.
Hope this helps.
------------------------------
Israel Ochoa
CSM Architect - NCEE Market
IBM
Stockholm
Visit "IBM Instana - The Lost Docs" -> https://isreal8a.github.io/instana-docs