Hello team , we are trying to scrape metrics from AWS App runner , which by default works on secure port ie 443 . So to scrape the secure end point we tried giving the generated certs and key.
Here is the prometheus.yml that we used
scrape_configs:
The job name is added as a label job=<job_name> to any timeseries scraped from this config.
- job_name: “prometheus”
metrics_path defaults to ‘/metrics’
scheme defaults to ‘http’.
static_configs:- targets: [“localhost:9090”]
- job_name: “spring-actuator”
scrape_interval: 5s
metrics_path: ‘/actuator/prometheus’
scheme: https
tls_config:
cert_file: /etc/prometheus/certs/prometheus.csr
key_file: /etc/prometheus/certs/prometheus.key
insecure_skip_verify: falsemetrics_path defaults to ‘/metrics’
scheme defaults to ‘http’.
static_configs:- targets: [“z9ynuwgrpt.us-east-1.awsapprunner.com”]
However when i start the prometheus and in the targets it shows
“server returned HTTP status 404 Not Found” can some one guide on scrapping https endpoint (edited)
Thanks and Regards
Thulsi Doss Krishnan
- targets: [“z9ynuwgrpt.us-east-1.awsapprunner.com”]