@@ -21,19 +21,25 @@ cron_build_canary_command: "/khronos/bin/cli.js --queue khronos:canary:build --j
2121cron_log_canary_command : " /khronos/bin/cli.js --queue khronos:canary:log --job '{}' --host {{ cron_rabbit_host_address }} {{ cron_rabbit_auth }}"
2222# This is the github-branch canary cron command
2323cron_github_branch_canary_command : " /khronos/bin/cli.js --queue khronos:canary:github-branch --job '{}' --host {{ cron_rabbit_host_address }} {{ cron_rabbit_auth }}"
24+ cron_container_metrics_command : " /khronos/bin/cli.js --queue khronos:metrics:container-status --job '{}' --host {{ cron_rabbit_host_address }} {{ cron_rabbit_auth }}"
2425
2526# for container settings
2627container_envs : >
27- -e API_URL={{ api_url }}
2828 -e API_SOCKET_SERVER=https://{{ api_socket_server_hostname }}
29- -e CANARY_API_TOKEN={{ khronos_canary_token }}
30- -e CANARY_REBUILD_INSTANCE_ID={{ khronos_canary_rebuild_instance_id }}
31- -e CANARY_REBUILD_NAVI_URL={{ khronos_canary_rebuild_navi_url }}
29+ -e API_URL={{ api_url }}
30+ -e CANARY_API_TOKEN={{ khronos_canary_token | default('undefined') }}
31+ -e CANARY_GITHUB_BRANCHES_INSTANCE_ID={{ khronos_canary_github_branches_instance_id | default('undefined') }}
32+ -e CANARY_LOG_INSTANCE_ID={{ khronos_canary_logs_instance_id | default('undefined') }}
33+ -e CANARY_LOG_TERMINAL_SLEEP=10
34+ -e CANARY_REBUILD_INSTANCE_ID={{ khronos_canary_rebuild_instance_id | default('undefined') }}
35+ -e CANARY_REBUILD_NAVI_URL={{ khronos_canary_rebuild_navi_url | default('undefined') }}
3236 -e DATADOG_HOST={{ datadog_host_address }}
3337 -e DATADOG_PORT={{ datadog_port }}
34- -e KHRONOS_PREFETCH=6
38+ -e INTERCOM_API_KEY={{ intercom_api_key | default('undefined') }}
39+ -e INTERCOM_APP_ID={{ intercom_app_id | default('undefined') }}
3540 -e KHRONOS_MAVIS=http://{{ mavis_hostname }}
3641 -e KHRONOS_MONGO=mongodb://{{ khronos_mongo_auth }}@{{ mongo_hosts }}/{{ khronos_mongo_database }}
42+ -e KHRONOS_PREFETCH=6
3743 -e LOG_LEVEL=error
3844 {% if node_env != "production-epsilon" %}
3945 -e MONGO_CACERT=/opt/ssl/mongo-client/ca.pem
@@ -45,10 +51,8 @@ container_envs: >
4551 -e RABBITMQ_PASSWORD={{ rabbit_password }}
4652 -e RABBITMQ_PORT={{ rabbit_port }}
4753 -e RABBITMQ_USERNAME={{ rabbit_username }}
54+ -e SWARM_HOST=http://{{ swarm_host_address }}:{{ swarm_master_port }}
4855 -e WORKER_MAX_RETRY_DELAY=3600000
49- -e CANARY_LOG_TERMINAL_SLEEP=10
50- -e CANARY_LOG_INSTANCE_ID={{khronos_canary_logs_instance_id}}
51- -e CANARY_GITHUB_BRANCHES_INSTANCE_ID={{khronos_canary_github_branches_instance_id}}
5256
5357container_run_opts : >
5458 -h {{ name }}
0 commit comments