Skip to content

Commit

Permalink
Add .total to network flow bytes metric in OTEL (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomac authored Apr 22, 2024
1 parent 2d5da72 commit f51c530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/internal/netolly/export/otel/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func MetricsExporterProvider(cfg *MetricsConfig) (pipe.FinalFunc[[]*ebpf.Record]
ebpfEvents := provider.Meter("network_ebpf_events")

_, err = ebpfEvents.Int64ObservableCounter(
"beyla.network.flow.bytes",
"beyla.network.flow.bytes.total",
metric2.WithDescription("total bytes_sent value of network flows observed by probe since its launch"),
metric2.WithUnit("{bytes}"),
metric2.WithInt64Callback(expirer.Collect),
Expand Down

0 comments on commit f51c530

Please sign in to comment.