File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ type agentMetrics struct {
2020 // took to run. This is reported once per agent.
2121 startupScriptSeconds * prometheus.GaugeVec
2222 currentConnections * 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" })
5655 registerer .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-
6657 return & agentMetrics {
6758 connectionsTotal : connectionsTotal ,
6859 reconnectingPTYErrors : reconnectingPTYErrors ,
6960 startupScriptSeconds : startupScriptSeconds ,
7061 currentConnections : currentConnections ,
71- manifestsReceived : manifestsReceived ,
7262 }
7363}
7464
You can’t perform that action at this time.
0 commit comments