]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: contrib/prometheus-exporter: Remove tests on the option 'http-use-htx'
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Jul 2019 13:12:33 +0000 (15:12 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:18:27 +0000 (09:18 +0200)
Configuring the Prometheus service is now always valid for HTTP proxies. So we
don't rely anymore on the flag PR_O2_USE_HTX.

contrib/prometheus-exporter/service-prometheus.c

index 2aafd4d87bfdb9ebc06a45d7600c306c010a0825..67914f602fff6343d0030737187a9fa8b6f027ff 100644 (file)
@@ -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");
                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. */
        rule->applet = promex_applet;