Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Probe_success value for non exisisting URL #2257

Closed
lalithasoundarya opened this Issue Dec 6, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@lalithasoundarya
Copy link

lalithasoundarya commented Dec 6, 2016

What did you do?
I installed prometheus on my pc and tried to scrape Google.com but the probe status is 0 .

What did you expect to see?
It should give an error message as non existing url
What did you see instead? Under which circumstances?
Iam seeing probe success = 0 message for google.com

Environment
windows

  • System information:

    insert output of uname -srm here
    Microsoft Windows [Version 6.1.7601]

  • Prometheus version:

    insert output of prometheus -1.3.1 windows amd64

  • Alertmanager version:

    insert output of alertmanager -version here (if relevant to the issue)

  • Prometheus configuration file:
    global:
    external_labels:
    monitor: 'hostname'

rule_files:
- 'C:\Users\prasanta1.sahoo\go\bin\alert.rules'

scrape_configs:

  • job_name: 'bb'
    scrape_interval: 30s
    scrape_timeout: 10s
    metrics_path: /probe
    params:
    module: [http_2xx] # Look for a HTTP 200 response.
    URL: google.com

    relabel_configs:

    • source_labels: [address]
      regex: (.*)(:80)?
      target_label: __param_target
      replacement: ${1}
    • source_labels: [__param_target]
      regex: (.*)
      target_label: instance
      replacement: ${1}
    • source_labels: []
      regex: .*
      target_label: address
      replacement: 10.50.89.143:9115 # Blackbox exporter.
      Please let us know for any changes in the above config file.
  • Alertmanager configuration file:
insert configuration here (if relevant to the issue)
  • Logs:
insert Prometheus and Alertmanager logs relevant to the issue here

my global config.docx

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Dec 6, 2016

Dupe of #2256

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.