alpha
Login
or
Join now
willdot.net
/
distributed-pds
forked from
willdot.net/cocoon
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
A fork of the Cocoon PDS but being made more distributed.
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
fix host in relay send metric
author
Hailey
date
5 months ago
(Jan 2, 2026, 2:10 PM -0800)
commit
110228ad
110228ad2e79f798c137e25deae1104bb94c7bad
parent
8c7f03f9
8c7f03f9c80e688fc25a64ab838c78d4e0ef56d2
+2
-2
2 changed files
Expand all
Collapse all
Unified
Split
metrics
metrics.go
server
handle_sync_subscribe_repos.go
+1
-1
metrics/metrics.go
Reviewed
···
20
20
Namespace: NAMESPACE,
21
21
Name: "relay_sends",
22
22
Help: "number of events sent to a relay, by host",
23
23
-
}, []string{"host"})
23
23
+
}, []string{"host", "kind"})
24
24
25
25
RepoOperations = promauto.NewCounterVec(prometheus.CounterOpts{
26
26
Namespace: NAMESPACE,
+1
-1
server/handle_sync_subscribe_repos.go
Reviewed
···
42
42
for evt := range evts {
43
43
func() {
44
44
defer func() {
45
45
-
metrics.RelaySends.WithLabelValues(header.MsgType).Inc()
45
45
+
metrics.RelaySends.WithLabelValues(ident, header.MsgType).Inc()
46
46
}()
47
47
48
48
wc, err := conn.NextWriter(websocket.BinaryMessage)