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
답변함 일 년 전
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

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠