Skip to content

Commit

Permalink
fix: metric EaseProbe_ping_loss Add by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
fangpsh committed Jun 4, 2024
1 parent bb3b734 commit 5460418
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions probe/ping/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ func (p *Ping) ExportMetrics(stats *ping.Statistics) {
p.metrics.PacketLoss.With(metric.AddConstLabels(prometheus.Labels{
"name": p.ProbeName,
"endpoint": p.ProbeResult.Endpoint,
}, p.Labels)).Add(stats.PacketLoss)
}, p.Labels)).Set(stats.PacketLoss)

p.metrics.AvgRtt.With(metric.AddConstLabels(prometheus.Labels{
p.metrics.MaxRtt.With(metric.AddConstLabels(prometheus.Labels{
"name": p.ProbeName,
"endpoint": p.ProbeResult.Endpoint,
}, p.Labels)).Add(float64(stats.MaxRtt.Milliseconds()))
}, p.Labels)).Set(float64(stats.MaxRtt.Milliseconds()))

p.metrics.MinRtt.With(metric.AddConstLabels(prometheus.Labels{
"name": p.ProbeName,
Expand Down

0 comments on commit 5460418

Please sign in to comment.