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

Can we fetch environment name using OneAgent files?

bhandariviv1
Newcomer

Hi Members,

We are trying to find name of the monitoring environment to which one of our OneAgent is reporting.

We have multiple environments configured and it is very difficult to check reporting host details of every environment one by one.

Any/All suggestions are welcome.

Thanks

Vivek

4 REPLIES 4

Julius_Loman
DynaMight Legend
DynaMight Legend

Sure, but only the environment ID (tenant id). See the ruxitagentproc.conf and the property tenant in that file. The real name of your choice (such as "production" ) cannot be seen by an agent. But I don't think you have more than few environments in your cluster.


Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

bhandariviv1
Newcomer

Thanks for the quick response Julius.

We were able to fetch the tenant ID as per your suggestions.

However, is there a way we can determine the corresponding environment name to which the tenent ID points to ?

Also, attached is a snip which will give you a rough idea about the numerous environments in our DT instance.

Vivek


Julius_Loman
DynaMight Legend
DynaMight Legend

Well, the Dynatrace Managed Configuration API does not seem to have a proper method for retrieving list of environments in a cluster.


But what you can do is to login to the Cluster management console, open the browser's developer options and then navigate to the environment page. You should see a request to the internal rest API named "environments". Then look in to the response - it's a JSON and it contains all the data you need. It's dirty, but it works.


Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

bhandariviv1
Newcomer

Looks like that will resolve my query.

Will check the admin pages and update this thread if any issue arises.

Great help, Thanks again !


Featured Posts