Skip to content

Blackbox exporter ignores proxy_url seting #1455

@init0info

Description

@init0info

Hi

I'm creating a monitor for our proxy server with the blackbox exporter sending periodic messages to an outside service.

The following config sends health check messages to an api...

Problem is: the proxy server is not being used for sending the requests: nothing in the proxy access logs, and if I change the port to something that definitely would not work, the messages are still going through.

What am I doing wrong?

`prometheus-blackbox-exporter:

config:
modules:
post_api_probe:
prober: http
timeout: 5s
http:
proxy_url: "http://proxy-url:3128"
method: POST
headers:
Content-Type: application/json
Authorization: " "
body: '{"event": "proxy healthcheck","sourcetype":"blackbox"}'
valid_http_versions: ["HTTP/1.1", "HTTP/2"]
preferred_ip_protocol: "ip4"
serviceMonitor:
enabled: true
interval: 30s
path: /probe
targets:
- name: proxy-synthetic-test
module: post_api_probe
url: https://<api_url>`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions