Appdynamics / apigee-monitoring-extension

Apigee Monitoring Extension
https://www.appdynamics.com/community/exchange/apigee-monitoring-extension-for-appdynamics/
Apache License 2.0
3 stars 7 forks source link

Timezone conversion #13

Closed iogbole closed 2 years ago

iogbole commented 3 years ago

Add a timezone conversion feature.

Apigee SaaS uses UTC tz by default. This results in an error if the extension's host server is using a different timezone.

Desired outcome

Provide a timezone configuration option in the config.json that accepts either local or utc as values.

Where:

In summary:

local == onpremise Apigee

echo $(date +%m/%d/%Y+%H:%M:%S --date="+1 sec")  > "${timer_file}" 

And utc == SaaS Apigee

echo $(date -u  +%m/%d/%Y+%H:%M:%S --date="+1 sec")  > "${timer_file}"
stuartgreenshields commented 3 years ago

I have done the initial first phase of this and it is being put through tests, before being released.

stuartgreenshields commented 2 years ago

Completed so in config.json you can select

1) onprem This set the APIGEE interval to collect to localtime to where the server runs the script, but this server needs to be in the same local time timezone as the onprem apigee instance you are collecting against. 2) saas This sets the APIGEE interval to collect to UTC time, wherever the script is run from. This is because the SaaS APIGEE instance time is set to UTC.

stuartgreenshields commented 2 years ago

CLosing