On 22/02/2021 07:17, [email protected] wrote:
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
What do the HA Proxy logs say when Prometheus requests are made?
--
Stuart Clark
--
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/86b0d3f1-d3a8-9986-7c4e-c091e81a957f%40Jahingo.com.