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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则