mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-05 11:39:33 +00:00
MINOR: contrib/prometheus-exporter: Remove tests on the option 'http-use-htx'
Configuring the Prometheus service is now always valid for HTTP proxies. So we don't rely anymore on the flag PR_O2_USE_HTX.
This commit is contained in:
parent
8f7fe1c9d7
commit
25994dacb3
@ -2239,10 +2239,6 @@ static enum act_parse_ret service_parse_prometheus_exporter(const char **args, i
|
|||||||
memprintf(err, "Prometheus exporter service only available on 'http-request' rulesets");
|
memprintf(err, "Prometheus exporter service only available on 'http-request' rulesets");
|
||||||
return ACT_RET_PRS_ERR;
|
return ACT_RET_PRS_ERR;
|
||||||
}
|
}
|
||||||
if (!(px->options2 & PR_O2_USE_HTX)) {
|
|
||||||
memprintf(err, "Prometheus exporter service only available for HTX proxies");
|
|
||||||
return ACT_RET_PRS_ERR;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Add applet pointer in the rule. */
|
/* Add applet pointer in the rule. */
|
||||||
rule->applet = promex_applet;
|
rule->applet = promex_applet;
|
||||||
|
Loading…
Reference in New Issue
Block a user