@@ -20,7 +20,6 @@ type agentMetrics struct {
20
20
// took to run. This is reported once per agent.
21
21
startupScriptSeconds * prometheus.GaugeVec
22
22
currentConnections * prometheus.GaugeVec
23
- manifestsReceived prometheus.Counter
24
23
}
25
24
26
25
func newAgentMetrics (registerer prometheus.Registerer )* agentMetrics {
@@ -55,20 +54,11 @@ func newAgentMetrics(registerer prometheus.Registerer) *agentMetrics {
55
54
}, []string {"connection_type" })
56
55
registerer .MustRegister (currentConnections )
57
56
58
- manifestsReceived := prometheus .NewCounter (prometheus.CounterOpts {
59
- Namespace :"coderd" ,
60
- Subsystem :"agentstats" ,
61
- Name :"manifests_received" ,
62
- Help :"The number of manifests this agent has received from the control plane." ,
63
- })
64
- registerer .MustRegister (manifestsReceived )
65
-
66
57
return & agentMetrics {
67
58
connectionsTotal :connectionsTotal ,
68
59
reconnectingPTYErrors :reconnectingPTYErrors ,
69
60
startupScriptSeconds :startupScriptSeconds ,
70
61
currentConnections :currentConnections ,
71
- manifestsReceived :manifestsReceived ,
72
62
}
73
63
}
74
64