How to get Message Processor hostname/ip address at runtime edge public Cloud

nandishnandy
Participant III

Hi,

My requirement is to log meesage processor hostname or ip address during the runtime to identify the MP from which the request was served.

Thanks In Advance

0 3 910
3 REPLIES 3

@Nandeesha , Cloud / OnPrem ?

Its a cloud

@Nandeesha

There are some useful flow variables related to the system documented here:-

https://docs.apigee.com/api-platform/reference/variables-reference#system

What you are after is:

- system.interface.eth0

Systems that run on the public cloud are ephemeral in nature, and thus IP addresses would be constantly recycled. Moreover, it cannot be guaranteed that 'eth0' will always reflect the correct private IP address of the instance.

The 'system.uuid' flow variable comes in useful here, as it will always reflect a unique message processor instance, and the Apigee global support team will be able to track it down more easily.