Hi,
We have a server behind haproxy (service.haproxy.local) and In order to access its metric I can run this curl command and I get the results (the command is executed on the prometheus server):
and here is the job configuration on the prometheus:
- job_name: custom_metrics
scrape_interval: 1m
scrape_timeout: 30s
metrics_path: /v1/metrics
scheme: https
bearer_token: XXXX-XXX-XXX-XXX-XXXX
static_configs:
- targets:
- service.haproxy.local:443
But in the prometheus I get 503 service unavailable