Hi,
I'm getting below error on prometheus console log while scraping metrics 
from json_exporter 
<https://github.com/prometheus-community/json_exporter/tree/c487740bb83f5b2a682d99161cbe8e4209ba4b2e>.
 
Target endpoint is available and able to get response with curl using basic 
authentication. 

ts=2022-04-18T20:58:07.156Z caller=scrape.go:1292 level=debug 
component="scrape manager" scrape_pool=json 
target="http://localhost:7979/probe?target=http%3A%2F%2Flocalhost%3A9015%2Fservices%2Fv2%2Fmpoints%2FE_TIP5%2Fstatistics";
 
msg="Scrape failed" err="server returned HTTP status 503 Service 
Unavailable"


Here is the prometheus.yaml

scrape_configs:

## gather metrics of prometheus itself
- job_name: prometheus
static_configs:
- targets:
- localhost:9090

## gather the metrics of json_exporter application itself
- job_name: json_exporter
static_configs:
- targets:
- localhost:7979 ## Location of the json exporter's real <hostname>:<port>

## gather the metrics from third party json sources, via the json exporter
- job_name: json
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /probe
basic_auth:
username: XXXXXX
password: XXXXX
static_configs:
- targets: ['http://localhost:9015/services/v2/mpoints/E_TIP5/statistics']
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: localhost:7979 ## Location of the json exporter's real 
<hostname>:<port>    

-- 
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/49e981da-a195-4b8b-ac8c-1b7f96ab07e4n%40googlegroups.com.

Reply via email to