Skip to content

Commit ec9ed29

Browse files
committed
remove defunct metric
1 parent 26dbc3a commit ec9ed29

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

agent/metrics.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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

2625
func 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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy