Skip to content

Commit

Permalink
remove city from lg
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Jul 29, 2024
1 parent 739a00c commit 26e4707
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lg.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ var (
Name: "direct_upstreams",
Help: "upstreams",
},
[]string{"prefix", "city", "mux", "upstreams", "available", "origin"},
[]string{"prefix", "mux", "upstreams", "available", "origin"},
)
upstreams2Gauge = promauto.NewGaugeVec(prometheus.GaugeOpts{
Name: "indirect_upstreams",
Help: "upstreams",
},
[]string{"prefix", "city", "mux", "upstreams", "available", "origin"},
[]string{"prefix", "mux", "upstreams", "available", "origin"},
)
ripeStatLGErr = promauto.NewCounter(prometheus.CounterOpts{
Name: "ripestatlg_err",
Expand Down Expand Up @@ -144,7 +144,6 @@ func (p *Prefix) checkLGState() {

upstreamsGauge.WithLabelValues(
p.prefix,
rrc.Location,
p.pop,
strings.Join(upstreams, " "),
availableStr,
Expand All @@ -153,7 +152,6 @@ func (p *Prefix) checkLGState() {

upstreams2Gauge.WithLabelValues(
p.prefix,
rrc.Location,
p.pop,
strings.Join(upstreams2, " "),
availableStr,
Expand Down

0 comments on commit 26e4707

Please sign in to comment.