Blackbox - Proxy

1,286 views
Skip to first unread message

Pete Leese

unread,
Jul 5, 2018, 12:24:26 PM7/5/18
to Prometheus Users
Hi There,

I have a couple of transparent proxy servers in my environment, that sometimes are a little flaky.

I was planning on using blackbox to do some quick and dirty monitoring to validate if the proxies are operational or not.

I guess my question is, is there a probe I can create where I can force it to route out via the proxy to a website ? my view is that in theory, the check should fail if the proxy is down. or if anyone can provide me some other method of validating if a squid proxy server is online I would appreciate this as well.

cheers

pete

Matt Doughty

unread,
Jul 5, 2018, 12:26:42 PM7/5/18
to Pete Leese, Prometheus Users
You need to set the proxy-url in your probe definition. See the documentation: https://github.com/prometheus/blackbox_exporter/blob/master/CONFIGURATION.md

--Matt

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/543f0b10-34ae-4a7a-96c4-080092abec3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
--Matt

Pete Leese

unread,
Jul 6, 2018, 5:04:39 PM7/6/18
to Prometheus Users
Cheers Matt. I’ll take a look at this.

I have also taken a look at squid exporters but seem to suffer a few bugs and not quite ready for a production environment yet.

Pete

Pete Leese

unread,
Jul 9, 2018, 9:51:18 AM7/9/18
to Prometheus Users
Ok, so I have a squid proxy running on port 8080

when I do ipaddr:8080 the config fails to load

first path segment in URL cannot contain colon.

What am I doing wrong? :)

Pete Leese

unread,
Jul 9, 2018, 9:51:57 AM7/9/18
to Prometheus Users
  edge6proxy:
    prober: http
    timeout: 50s
    http:
      valid_status_codes: []
      method: GET
      no_follow_redirects: false
      fail_if_ssl: false
      fail_if_not_ssl: false
#      protocol: tcp
      preferred_ip_protocol: ip4
      proxy_url: address:8080
      tls_config:
        insecure_skip_verify: true

Pete Leese

unread,
Jul 9, 2018, 10:52:51 AM7/9/18
to Prometheus Users
its fine now, clue was in the title...

proxy_URL
Reply all
Reply to author
Forward
0 new messages