amazon web services - Prometehus target Invalid Urls syntax -
im trying add target configured in aws ec2 container
gnu nano 2.5.3 file: prometheus.yml # global config global: scrape_interval: 15s # default, scrape targets every 15 seconds. evaluation_interval: 15s # default, scrape targets every 15 seconds. # scrape_timeout set global default (10s). # attach these labels time series or alerts when communicating # external systems (federation, remote storage, alertmanager). external_labels: monitor: 'codelab-monitor' # load rules once , periodically evaluate them according global 'evaluation_interval'. rule_files: # - "first.rules" # - "second.rules" # scrape configuration containing 1 endpoint scrape: # here it's prometheus itself. scrape_configs: # job name added label `job=<job_name>` timeseries scraped config. - job_name: 'sit' # override global default , scrape targets job every 5 seconds. scrape_interval: 5s # metrics_path defaults '/metrics' # scheme defaults 'http'. static_configs: - targets: ['localhost:8000','localhost:9100','localhost:9125', 'localhost:9102', 'localhost:8125', 'http://test-elasticloa-y0avx674hv7dr7x-1495584279.us-west-2.elb.amazonaws.com/prometheus']
however im getting error message arguing url not valid. how can correct syntax url?
erro[0000] error loading config: couldn't load configuration (-config.file=prometheus.yml): "http://test-elasticloa-y0avx674hv7dr7x-1495584279.us-west-2.elb.amazonaws.com/prometheus" not valid hostname source=main.go:149
looking @ code, appears can't have forward slashes in there - try removing that.
Comments
Post a Comment