Unable to probe my http site. Probe_success= 0 but My http site is working as expected.

875 views
Skip to first unread message

mxp7...@ucmo.edu

unread,
Aug 17, 2017, 11:40:27 AM8/17/17
to Prometheus Users
Error log :     blackbox_blackbox.1.fmg2nbm54zwv@swarm-a-01    | time="2017-08-17T15:13:40Z" level=error msg="Error for HTTP request to http://adapt-docs: Get http://adapt-docs: context deadline exceeded" source="http.go:178" 

My Config file :

global:

scrape_interval: 15s

scrape_timeout: 10s

evaluation_interval: 15s

rule_files:

- "targets.rules"

- "host.rules"

- "containers.rules"


scrape_configs:

# scrape config for node exporter + cadvisor

- job_name: 'nodeexporter'

scrape_interval: 15s

scrape_timeout: 20s

static_configs:

- targets: ['nodeexporter:9100']


- job_name: 'cadvisor'

scrape_interval: 15s

scrape_timeout: 20s

static_configs:

- targets: ['cadvisor:8080']


- job_name: 'prometheus'

scrape_interval: 15s

scrape_timeout: 20s

static_configs:

- targets: ['localhost:9090']

- job_name: 'adapt-docs'

          scrape_interval: 15s

          scrape_timeout: 20s

          metrics_path: /probe

          params:

                  module: [http_2xx]

          static_configs:

                  - targets:

                          - adapt-docs

          relabel_configs:

                  - source_labels: [__address__]

                    target_label: __param_target

                  - source_labels: [__param_target]

                    target_label: instance

                  - target_label: __address__

                    replacement: blackbox:9115  # Blackbox exporter.


Blackbox config:

modules:

  http_2xx:

    prober: http

    timeout: 5s

    http:

      valid_http_versions: ["HTTP/1.1", "HTTP/2"]

      valid_status_codes: []  # Defaults to 2xx

      method: GET

      preferred_ip_protocol: "ip4" # defaults to "ip6"



Prometheus dashboard is not showing any error:


Blackbox exporter dashboard:






Nicholas Capo

unread,
Aug 17, 2017, 12:23:16 PM8/17/17
to mxp7...@ucmo.edu, Prometheus Users

I think your target is wrong.
Does `adapt-docs` resolve correctly?
Can you curl that url from the machine/container running the blackbox exporter?

Nicholas


--
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 prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/81554130-c2d6-430d-8482-f9c1a71d49a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mxp7...@ucmo.edu

unread,
Aug 17, 2017, 12:31:15 PM8/17/17
to Prometheus Users, mxp7...@ucmo.edu
Thanks for your response Nicholas. I am afraid trying to execute my blackbox and Prometheus containers and  I got this error rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:262: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory"

Thanks,
Manoj

Nicholas Capo

unread,
Aug 17, 2017, 12:40:02 PM8/17/17
to mxp7...@ucmo.edu, Prometheus Users


I'm not sure how to help you with the container problem.
Is adapt-docs the correct domain name?
Shouldn't it be something like www.adapt-docs.com?

Nicholas


mxp7...@ucmo.edu

unread,
Aug 17, 2017, 12:55:02 PM8/17/17
to Prometheus Users, mxp7...@ucmo.edu
even i have added my complete domain name in the targets but still the same.

Thanks,
Manoj
Reply all
Reply to author
Forward
0 new messages