Skip to content

Commit 2e61b03

Browse files
authored
Merge pull request #161 from github/tkjaer/change-bytes-metric-to-count
2 parents 43f8627 + 63388bd commit 2e61b03

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/glb-director-xdp/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ func (app *Application) runStatsCollection(globalCounters *ebpf.Map) {
434434
sum := diffAndSumGlobalStats(lastGlobalValues, globalValues)
435435
app.StatsClient.Count("packets.processed", int64(sum.Processed), nil, 1)
436436
app.StatsClient.Count("packets.encapsulated", int64(sum.Encapsulated), nil, 1)
437-
app.StatsClient.Gauge("packets.encapsulated_bytes", float64(sum.EncapsulatedBytes), nil, 1)
437+
app.StatsClient.Count("packets.encapsulated_bytes", int64(sum.EncapsulatedBytes), nil, 1)
438438

439439
app.StatsClient.Count("packets.results", int64(sum.UnknownFormat), []string{"result:UnknownFormat"}, 1)
440440
app.StatsClient.Count("packets.results", int64(sum.NoMatchingBind), []string{"result:NoMatchingBind"}, 1)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
GLB_DIRECTOR_VERSION="1.0.11"
1+
GLB_DIRECTOR_VERSION="1.0.12"

0 commit comments

Comments
 (0)