• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stillya / wg-relay / 19409146590

16 Nov 2025 05:11PM UTC coverage: 13.028% (+0.09%) from 12.934%
19409146590

push

github

stillya
fix: align prometheus metrics with naming conventions

- Add _total suffix to counter metrics (wg_relay_packets_total, wg_relay_bytes_total)

0 of 17 new or added lines in 5 files covered. (0.0%)

108 of 829 relevant lines covered (13.03%)

0.14 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/pkg/dataplane/maps/maps.go
1
package maps
2

3
import (
4
        "github.com/cilium/ebpf"
5
)
6

7
// MapInfo represents information about an eBPF map
8
type MapInfo struct {
9
        Name string
10
        Map  *ebpf.Map
11
}
12

13
// Maps holds collections of different types of eBPF maps
14
type Maps struct {
15
        Metrics *ebpf.Map // Metrics map
16
        Other   []MapInfo // Other maps (conntrack, etc.)
17
}
18

19
// NewMaps creates a new Maps collection
NEW
20
func NewMaps(metricsMap *ebpf.Map) *Maps {
×
21
        return &Maps{
×
NEW
22
                Metrics: metricsMap,
×
NEW
23
                Other:   make([]MapInfo, 0),
×
24
        }
×
25
}
×
26

27
// AddOtherMap adds other types of maps
28
func (m *Maps) AddOtherMap(name string, ebpfMap *ebpf.Map) {
×
29
        m.Other = append(m.Other, MapInfo{
×
30
                Name: name,
×
31
                Map:  ebpfMap,
×
32
        })
×
33
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc