Skip to content

Commit

Permalink
g3proxy: enable metrics in CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq-b committed Nov 21, 2024
1 parent d49f743 commit 0f6bcd9
Show file tree
Hide file tree
Showing 15 changed files with 62 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions scripts/coverage/g3proxy/0000_all_resolver/g3proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

log: discard

stat:
target:
udp: 127.0.0.1:8125

resolver:
- name: cares1
type: c-ares
Expand Down
4 changes: 4 additions & 0 deletions scripts/coverage/g3proxy/0001_base_http_proxy/g3proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

log: fluentd

stat:
target:
udp: 127.0.0.1:8125

resolver:
- name: default
type: c-ares
Expand Down
4 changes: 4 additions & 0 deletions scripts/coverage/g3proxy/0002_base_socks_proxy/g3proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

log: syslog

stat:
target:
udp: 127.0.0.1:8125

resolver:
- name: default
type: c-ares
Expand Down
4 changes: 4 additions & 0 deletions scripts/coverage/g3proxy/0003_base_tcp_stream/g3proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

log: stdout

stat:
target:
udp: 127.0.0.1:8125

resolver:
- name: default
type: c-ares
Expand Down
4 changes: 4 additions & 0 deletions scripts/coverage/g3proxy/0004_base_http_gateway/g3proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

log: journal

stat:
target:
udp: 127.0.0.1:8125

resolver:
- name: default
type: c-ares
Expand Down
4 changes: 4 additions & 0 deletions scripts/coverage/g3proxy/0005_transparent_proxy/g3proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

log: journal

stat:
target:
udp: 127.0.0.1:8125

resolver:
- name: default
type: c-ares
Expand Down
4 changes: 4 additions & 0 deletions scripts/coverage/g3proxy/0006_chain_http_proxy/g3proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

log: journal

stat:
target:
udp: 127.0.0.1:8125

resolver:
- name: cares1
type: c-ares
Expand Down
4 changes: 4 additions & 0 deletions scripts/coverage/g3proxy/0007_chain_socks_proxy/g3proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

log: syslog

stat:
target:
udp: 127.0.0.1:8125

resolver:
- name: cares1
type: c-ares
Expand Down
4 changes: 4 additions & 0 deletions scripts/coverage/g3proxy/0008_base_user_auth/g3proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

log: journal

stat:
target:
udp: 127.0.0.1:8125

resolver:
- name: default
type: c-ares
Expand Down
4 changes: 4 additions & 0 deletions scripts/coverage/g3proxy/0009_anonymous_user/g3proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

log: journal

stat:
target:
udp: 127.0.0.1:8125

resolver:
- name: default
type: c-ares
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

log: journal

stat:
target:
udp: 127.0.0.1:8125

resolver:
- name: default
type: c-ares
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

log: journal

stat:
target:
udp: 127.0.0.1:8125

resolver:
- name: default
type: c-ares
Expand Down
4 changes: 4 additions & 0 deletions scripts/coverage/g3proxy/0012_intelli_proxy/g3proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

log: syslog

stat:
target:
udp: 127.0.0.1:8125

resolver:
- name: hickory
type: hickory
Expand Down
4 changes: 4 additions & 0 deletions scripts/coverage/g3proxy/0013_dynamic_user/g3proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

log: journal

stat:
target:
udp: 127.0.0.1:8125

resolver:
- name: default
type: c-ares
Expand Down

0 comments on commit 0f6bcd9

Please sign in to comment.