Skip to content

Add option to configure proxy via env #2

@Crited

Description

@Crited

When trying to connect to Red Hat OpenShift, one has to directly access the provided API without port. Due to the fact, that the default port is set to 9090 and can't be blank it is not possible to use this plugin with RedHat OpenShift. For example:

Version: v0.1.0

For example:

sudo -u icinga ./check_prometheus -H ***.net query --query '***' --secure
[UNKNOWN] - Post "https://***.net:9090/api/v1/query": dial tcp ***:9090: connect: connection refused (*url.Error)

Should preferably just call http://***.net/api/v1/query because using 443 or 80 explicitly doesn't work.

sudo -u icinga ./check_prometheus -H ***.net query --query '***' -p 443 --secure
[UNKNOWN] - Post "https://***.net:443/api/v1/query": dial tcp ***:443: connect: connection refused (*url.Error)

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions