CONTRIB: move prometheus-exporter to addons/promex

Let's start to better organize the addons by moving promex there (and
with an easier directory name). The makefile and maintainers files were
updated, as well as the CI's build matrix.
This commit is contained in:
Willy Tarreau 2021-04-02 15:35:19 +02:00
parent 92dc78605a
commit 3dfadc7ae7
5 changed files with 6 additions and 5 deletions

4
.github/matrix.py vendored
View File

@ -81,7 +81,7 @@ for CC in ["gcc", "clang"]:
"WURFL_LIB=contrib/wurfl",
"USE_DEVICEATLAS=1",
"DEVICEATLAS_SRC=contrib/deviceatlas",
"EXTRA_OBJS=contrib/prometheus-exporter/service-prometheus.o",
"USE_PROMEX=1",
"USE_51DEGREES=1",
"51DEGREES_SRC=contrib/51d/src/pattern",
],
@ -147,7 +147,7 @@ matrix.append(
"WURFL_LIB=contrib/wurfl",
"USE_DEVICEATLAS=1",
"DEVICEATLAS_SRC=contrib/deviceatlas",
"EXTRA_OBJS=contrib/prometheus-exporter/service-prometheus.o",
"USE_PROMEX=1",
"USE_51DEGREES=1",
"51DEGREES_SRC=contrib/51d/src/pattern",
],

View File

@ -119,7 +119,7 @@ Files: src/peers.c, include/haproxy/peers*.h
Prometheus Exporter
Maintainer: Christopher Faulet <cfaulet@haproxy.com>
Maintainer: William Dauchy <wdauchy@gmail.com>
Files: contrib/prometheus-exporter
Files: addons/promex
Note: William is the referent regarding Prometheus. He should be consulted for
all additions and modifications of features. Christopher is the referent
for the code itself. He should be consulted for questions regarding the

View File

@ -617,7 +617,7 @@ OPTIONS_OBJS += src/hlua.o src/hlua_fcn.o
endif
ifneq ($(USE_PROMEX),)
OPTIONS_OBJS += contrib/prometheus-exporter/service-prometheus.o
OPTIONS_OBJS += addons/promex/service-prometheus.o
endif
ifneq ($(USE_DEVICEATLAS),)
@ -999,10 +999,11 @@ uninstall:
clean:
$(Q)rm -f *.[oas] src/*.[oas] haproxy test .build_opts .build_opts.new
$(Q)for dir in . src dev/* admin/* include/* doc; do rm -f $$dir/*~ $$dir/*.rej $$dir/core; done
$(Q)for dir in . src dev/* admin/* addons/* include/* doc; do rm -f $$dir/*~ $$dir/*.rej $$dir/core; done
$(Q)rm -f haproxy-$(VERSION).tar.gz haproxy-$(VERSION)$(SUBVERS)$(EXTRAVERSION).tar.gz
$(Q)rm -f haproxy-$(VERSION) haproxy-$(VERSION)$(SUBVERS)$(EXTRAVERSION) nohup.out gmon.out
$(Q)rm -f {admin,dev,contrib}/*/*.[oas] {admin,dev,contrib}/*/*/*.[oas] {admin,dev,contrib}/*/*/*/*.[oas]
$(Q)rm -f addons/promex/*.[oas]
$(Q)rm -f admin/iprange/iprange admin/iprange/ip6range admin/halog/halog
$(Q)rm -f dev/flags/flags dev/poll/poll dev/tcploop/tcploop
$(Q)rm -f dev/hpack/decode dev/hpack/gen-enc dev/hpack/gen-rht