@@ -20,7 +20,6 @@ type agentMetrics struct {
2020// took to run. This is reported once per agent.
2121startupScriptSeconds * prometheus.GaugeVec
2222currentConnections * prometheus.GaugeVec
23- manifestsReceived prometheus.Counter
2423}
2524
2625func newAgentMetrics (registerer prometheus.Registerer )* agentMetrics {
@@ -55,20 +54,11 @@ func newAgentMetrics(registerer prometheus.Registerer) *agentMetrics {
5554}, []string {"connection_type" })
5655registerer .MustRegister (currentConnections )
5756
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-
6657return & agentMetrics {
6758connectionsTotal :connectionsTotal ,
6859reconnectingPTYErrors :reconnectingPTYErrors ,
6960startupScriptSeconds :startupScriptSeconds ,
7061currentConnections :currentConnections ,
71- manifestsReceived :manifestsReceived ,
7262}
7363}
7464