diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index d4395cf0..e00e94a7 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -89,6 +89,12 @@ jobs: - name: Install binutils run: | cargo install cargo-binutils + - name: Install netcat-openbsd + run: | + sudo apt-get install netcat-openbsd + - name: Listen StatsD port + run: | + nc -u -l -k 127.0.0.1 8125 >/dev/null & - name: Install fluent-bit run: | sudo curl https://raw.githubusercontent.com/fluent/fluent-bit/master/install.sh | sh diff --git a/scripts/coverage/g3proxy/0000_all_resolver/g3proxy.yaml b/scripts/coverage/g3proxy/0000_all_resolver/g3proxy.yaml index 192c81e4..d4639828 100644 --- a/scripts/coverage/g3proxy/0000_all_resolver/g3proxy.yaml +++ b/scripts/coverage/g3proxy/0000_all_resolver/g3proxy.yaml @@ -2,6 +2,10 @@ log: discard +stat: + target: + udp: 127.0.0.1:8125 + resolver: - name: cares1 type: c-ares diff --git a/scripts/coverage/g3proxy/0001_base_http_proxy/g3proxy.yaml b/scripts/coverage/g3proxy/0001_base_http_proxy/g3proxy.yaml index 21d5c742..232af60b 100644 --- a/scripts/coverage/g3proxy/0001_base_http_proxy/g3proxy.yaml +++ b/scripts/coverage/g3proxy/0001_base_http_proxy/g3proxy.yaml @@ -2,6 +2,10 @@ log: fluentd +stat: + target: + udp: 127.0.0.1:8125 + resolver: - name: default type: c-ares diff --git a/scripts/coverage/g3proxy/0002_base_socks_proxy/g3proxy.yaml b/scripts/coverage/g3proxy/0002_base_socks_proxy/g3proxy.yaml index 642584e5..899502c9 100644 --- a/scripts/coverage/g3proxy/0002_base_socks_proxy/g3proxy.yaml +++ b/scripts/coverage/g3proxy/0002_base_socks_proxy/g3proxy.yaml @@ -2,6 +2,10 @@ log: syslog +stat: + target: + udp: 127.0.0.1:8125 + resolver: - name: default type: c-ares diff --git a/scripts/coverage/g3proxy/0003_base_tcp_stream/g3proxy.yaml b/scripts/coverage/g3proxy/0003_base_tcp_stream/g3proxy.yaml index db5ed85d..f1ccd29a 100644 --- a/scripts/coverage/g3proxy/0003_base_tcp_stream/g3proxy.yaml +++ b/scripts/coverage/g3proxy/0003_base_tcp_stream/g3proxy.yaml @@ -2,6 +2,10 @@ log: stdout +stat: + target: + udp: 127.0.0.1:8125 + resolver: - name: default type: c-ares diff --git a/scripts/coverage/g3proxy/0004_base_http_gateway/g3proxy.yaml b/scripts/coverage/g3proxy/0004_base_http_gateway/g3proxy.yaml index 7d0ff23a..84521b55 100644 --- a/scripts/coverage/g3proxy/0004_base_http_gateway/g3proxy.yaml +++ b/scripts/coverage/g3proxy/0004_base_http_gateway/g3proxy.yaml @@ -2,6 +2,10 @@ log: journal +stat: + target: + udp: 127.0.0.1:8125 + resolver: - name: default type: c-ares diff --git a/scripts/coverage/g3proxy/0005_transparent_proxy/g3proxy.yaml b/scripts/coverage/g3proxy/0005_transparent_proxy/g3proxy.yaml index e6240f30..e32e186b 100644 --- a/scripts/coverage/g3proxy/0005_transparent_proxy/g3proxy.yaml +++ b/scripts/coverage/g3proxy/0005_transparent_proxy/g3proxy.yaml @@ -2,6 +2,10 @@ log: journal +stat: + target: + udp: 127.0.0.1:8125 + resolver: - name: default type: c-ares diff --git a/scripts/coverage/g3proxy/0006_chain_http_proxy/g3proxy.yaml b/scripts/coverage/g3proxy/0006_chain_http_proxy/g3proxy.yaml index 80169d7d..67cb41a8 100644 --- a/scripts/coverage/g3proxy/0006_chain_http_proxy/g3proxy.yaml +++ b/scripts/coverage/g3proxy/0006_chain_http_proxy/g3proxy.yaml @@ -2,6 +2,10 @@ log: journal +stat: + target: + udp: 127.0.0.1:8125 + resolver: - name: cares1 type: c-ares diff --git a/scripts/coverage/g3proxy/0007_chain_socks_proxy/g3proxy.yaml b/scripts/coverage/g3proxy/0007_chain_socks_proxy/g3proxy.yaml index 8df6e7ae..526de0f9 100644 --- a/scripts/coverage/g3proxy/0007_chain_socks_proxy/g3proxy.yaml +++ b/scripts/coverage/g3proxy/0007_chain_socks_proxy/g3proxy.yaml @@ -2,6 +2,10 @@ log: syslog +stat: + target: + udp: 127.0.0.1:8125 + resolver: - name: cares1 type: c-ares diff --git a/scripts/coverage/g3proxy/0008_base_user_auth/g3proxy.yaml b/scripts/coverage/g3proxy/0008_base_user_auth/g3proxy.yaml index af02690f..244c8e72 100644 --- a/scripts/coverage/g3proxy/0008_base_user_auth/g3proxy.yaml +++ b/scripts/coverage/g3proxy/0008_base_user_auth/g3proxy.yaml @@ -2,6 +2,10 @@ log: journal +stat: + target: + udp: 127.0.0.1:8125 + resolver: - name: default type: c-ares diff --git a/scripts/coverage/g3proxy/0009_anonymous_user/g3proxy.yaml b/scripts/coverage/g3proxy/0009_anonymous_user/g3proxy.yaml index 54938064..dfa1dc4b 100644 --- a/scripts/coverage/g3proxy/0009_anonymous_user/g3proxy.yaml +++ b/scripts/coverage/g3proxy/0009_anonymous_user/g3proxy.yaml @@ -2,6 +2,10 @@ log: journal +stat: + target: + udp: 127.0.0.1:8125 + resolver: - name: default type: c-ares diff --git a/scripts/coverage/g3proxy/0010_escaper_direct_float/g3proxy.yaml b/scripts/coverage/g3proxy/0010_escaper_direct_float/g3proxy.yaml index c29ce050..928787d2 100644 --- a/scripts/coverage/g3proxy/0010_escaper_direct_float/g3proxy.yaml +++ b/scripts/coverage/g3proxy/0010_escaper_direct_float/g3proxy.yaml @@ -2,6 +2,10 @@ log: journal +stat: + target: + udp: 127.0.0.1:8125 + resolver: - name: default type: c-ares diff --git a/scripts/coverage/g3proxy/0011_escaper_proxy_float/g3proxy.yaml b/scripts/coverage/g3proxy/0011_escaper_proxy_float/g3proxy.yaml index c50ff726..4f7353a2 100644 --- a/scripts/coverage/g3proxy/0011_escaper_proxy_float/g3proxy.yaml +++ b/scripts/coverage/g3proxy/0011_escaper_proxy_float/g3proxy.yaml @@ -2,6 +2,10 @@ log: journal +stat: + target: + udp: 127.0.0.1:8125 + resolver: - name: default type: c-ares diff --git a/scripts/coverage/g3proxy/0012_intelli_proxy/g3proxy.yaml b/scripts/coverage/g3proxy/0012_intelli_proxy/g3proxy.yaml index 06ef999b..0fd84fc0 100644 --- a/scripts/coverage/g3proxy/0012_intelli_proxy/g3proxy.yaml +++ b/scripts/coverage/g3proxy/0012_intelli_proxy/g3proxy.yaml @@ -2,6 +2,10 @@ log: syslog +stat: + target: + udp: 127.0.0.1:8125 + resolver: - name: hickory type: hickory diff --git a/scripts/coverage/g3proxy/0013_dynamic_user/g3proxy.yaml b/scripts/coverage/g3proxy/0013_dynamic_user/g3proxy.yaml index 89e4706c..bd54c87a 100644 --- a/scripts/coverage/g3proxy/0013_dynamic_user/g3proxy.yaml +++ b/scripts/coverage/g3proxy/0013_dynamic_user/g3proxy.yaml @@ -2,6 +2,10 @@ log: journal +stat: + target: + udp: 127.0.0.1:8125 + resolver: - name: default type: c-ares