App Runner Port is not honored

0

Dear Support , We are using App Runner to run our dockerized spring boot app and would want to expose a particular port at which the service responds to. However the domain that exposed from the App Runner is without the port that has been configured so this means that it works on a default secure port ie 443. Is this a bug ? so this means that App Runner service is secured even without the basic authentication set up ? Please kindly clarify Thanks and Regards Thulsi Doss Krishnan

2回答
0

App Runner includes fully managed TLS with no setup needed. App Runner automatically renews the certificates before their expiration date. The port configured on the App Runner service is the port the application listens on, which is mapped to the public 443 port automatically.

AWS
Noah_L
回答済み 1年前
0

Many thanks @Noah L for the quick response. There is an issue in scrapping the spring boot metrics running in app runner with the App runner Domain.

So in my Prometheus configuration i have this configuration

  • job_name: 'spring-actuator' metrics_path: '/actuator/prometheus' scheme: https scrape_interval: 5s static_configs:
    • targets: ['z9ynuwgrpt.us-east-1.awsapprunner.com']

how when i see the target on prometheus i get the following error

EndPoint https://z9ynuwgrpt123.us-east-1.awsapprunner.com/actuator/prometheus DOWN Error server returned HTTP status 404 Not found

Please note my prometheus is a docker image running in an aws EC2 instance.

Any clues as to why prometheus is showing an error when it is trying to scrape metrics from the App Runner endpoint

回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ