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):
curl --header "Authorization: Bearer XXXX-XXX-XXX-XXX-XXXX" --request GET
'https://service.haproxy.local/v1/metrics'
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
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/51018433-a713-4cef-8bf2-d83a9ee4fb27n%40googlegroups.com.