Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec9ed29

Browse files
committed
remove defunct metric
1 parent26dbc3a commitec9ed29

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
funcnewAgentMetrics(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)

[8]ページ先頭

©2009-2025 Movatter.jp