Skip to content

Commit

Permalink
clear past data
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Oct 10, 2024
1 parent 0de0c53 commit 31d1d8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lg.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ var (

func (p *Prefix) checkLGState() {
log.Trace().Str("Prefix", p.prefix).Msg("checking prefix state")
upstreamsGauge.Reset()
upstreams2Gauge.Reset()
bgpCommunitiesGauge.Reset()
url := ripestatBase + "/data/looking-glass/data.json?resource=" + p.prefix + "&sourceapp=" + appId
resp, err := http.Get(url)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions vis.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var (

func (p *Prefix) checkVisState() {
log.Trace().Str("Prefix", p.prefix).Msg("checking prefix state")
prefixStateGauge.Reset()
url := ripestatBase + "/data/visibility/data.json?data_overload_limit=ignore&include=peers_seeing&resource=" + p.prefix + "&sourceapp=" + appId
resp, err := http.Get(url)
if err != nil {
Expand Down

0 comments on commit 31d1d8f

Please sign in to comment.