Skip to content

Commit cc7ebf3

Browse files
authored
Merge pull request #7 from NHSLeadership/develop
Change metrics port
2 parents 8e69bad + a442381 commit cc7ebf3

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ serving the same site and as such PHP sessions should be centralised. The defaul
5555
|CONTAINER_MODE | web, cron, or worker | web |
5656
|ATATUS_ENABLED | Boolean to enable or disable Atatus APM | false |
5757
|ATATUS_APM_LICENSE_KEY |Provides a licence key to enable the Atatus APM PHP module. Disabled Atatus APM if not set. | |
58+
|ATATUS_ENABLED | The name of the application to be passed to Atatus | "PHP App" |
5859
|REDIS_HOST | Provide the path to Redis for PHP session storage. | tcp://redis:6379 |
5960
|MAIL_RELAY | Set the SMTP mail host for the system's SSMTP mail relay service | outbound.kube-mail:25 |
60-
|APP_NAME | The name of the application to be passed to Atatus | "PHP App" |
6161
|APP_ENV | The name of the environment to be passed to Atatus | null |
62-
|APP_VERSION | The version of the app | null |
62+
|APP_VERSION | The version of the app | Set by the upstream container |

rootfs/entrypoint.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ set -e
33

44
# Startup logging
55
echo "=== Container Startup ==="
6+
echo "App name: ${ATATUS_APP_NAME:app}"
7+
echo "App version: ${APP_VERSION:none}"
68
echo "Container mode: ${CONTAINER_MODE:-web}"
79
echo "Environment: ${APP_ENV:-production}"
810
echo "Atatus: ${ATATUS_ENABLED:-false}"
@@ -26,7 +28,7 @@ cp /nhsla/ro/atatus.ini /nhsla/rw/atatus.ini
2628
if [ "${ATATUS_ENABLED:-false}" = "true" ] && [ ! -z "$ATATUS_APM_LICENSE_KEY" ]; then
2729
# If Atatus is enabled and API key set then configure Atatus
2830
sed -i -e "s/atatus.license_key = \"\"/atatus.license_key = \"$ATATUS_APM_LICENSE_KEY\"/g" /nhsla/rw/atatus.ini
29-
sed -i -e "s/atatus.app_name = \"PHP App\"/atatus.app_name = \"$APP_NAME\"/g" /nhsla/rw/atatus.ini
31+
sed -i -e "s/atatus.app_name = \"PHP App\"/atatus.app_name = \"$ATATUS_APP_NAME\"/g" /nhsla/rw/atatus.ini
3032
sed -i -e "s/atatus.release_stage = \"production\"/atatus.release_stage = \"$APP_ENV\"/g" /nhsla/rw/atatus.ini
3133
sed -i -e "s/atatus.app_version = \"\"/atatus.app_version = \"$APP_VERSION\"/g" /nhsla/rw/atatus.ini
3234
fi

rootfs/etc/frankenphp/Caddyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
php_server
9898
}
9999

100-
:2019 {
100+
:9253 {
101101
handle /metrics {
102102
metrics
103103
}

0 commit comments

Comments
 (0)