Skip to content

Commit f9782a4

Browse files
authored
feat: support region (#23)
1 parent 099a452 commit f9782a4

File tree

6 files changed

+219
-97
lines changed

6 files changed

+219
-97
lines changed

config/config.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ enable = true
66
[plugin.regProxy.prometheus]
77
enable = true
88
path = "/home/www/system/prometheus/conf"
9+
enableRegion = false
10+
region = [] # 用于支持region过滤
911

1012
[plugin.confProxy]
1113
# 配置中心地址
@@ -56,12 +58,12 @@ reqTimeout = 10
5658

5759
# service registry etcd
5860
[jupiter.etcdv3.register]
59-
endpoints = ["127.0.0.1:2379"]
61+
endpoints = ["etcd-naming.dz11.com:2379"]
6062
connectTimeout = "10s"
6163

6264
# default etcd (config-publish / cronjob-dispatch / etc...)
6365
[jupiter.etcdv3.default]
64-
endpoints = ["127.0.0.1:2379"]
66+
endpoints = ["etcd-naming.dz11.com:2379"]
6567
connectTimeout = "10s"
6668

6769
[jupiter.logger.default]

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/douyu/juno-agent
33
go 1.14
44

55
require (
6-
github.com/apache/rocketmq-client-go v0.0.0-20191211114916-85ee94b43cef // indirect
6+
github.com/HdrHistogram/hdrhistogram-go v1.1.0 // indirect
77
github.com/apache/rocketmq-client-go/v2 v2.0.0
88
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e
99
github.com/cenkalti/backoff v2.2.1+incompatible
@@ -24,7 +24,7 @@ require (
2424
github.com/opentracing/opentracing-go v1.2.0 // indirect
2525
github.com/robfig/cron/v3 v3.0.1
2626
github.com/sony/sonyflake v1.0.0
27-
github.com/stretchr/testify v1.6.1
27+
github.com/stretchr/testify v1.7.0
2828
github.com/tidwall/gjson v1.6.0 // indirect
2929
github.com/uber-go/atomic v1.4.0
3030
github.com/uber/jaeger-client-go v2.25.0+incompatible // indirect

0 commit comments

Comments
 (0)