mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 14:54:19 +01:00
runtime: fix static check errors
It turns out we have managed to break the static checker in many difference places with the absence of static checker in github action. Let's fix them while enabling static checker in github actions... Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
@@ -62,7 +62,7 @@ var (
|
||||
Help: "Open FDs for hypervisor.",
|
||||
})
|
||||
|
||||
agentRpcDurationsHistogram = prometheus.NewHistogramVec(prometheus.HistogramOpts{
|
||||
agentRPCDurationsHistogram = prometheus.NewHistogramVec(prometheus.HistogramOpts{
|
||||
Namespace: namespaceKatashim,
|
||||
Name: "agent_rpc_durations_histogram_milliseconds",
|
||||
Help: "RPC latency distributions.",
|
||||
@@ -79,7 +79,7 @@ func RegisterMetrics() {
|
||||
prometheus.MustRegister(hypervisorNetdev)
|
||||
prometheus.MustRegister(hypervisorIOStat)
|
||||
prometheus.MustRegister(hypervisorOpenFDs)
|
||||
prometheus.MustRegister(agentRpcDurationsHistogram)
|
||||
prometheus.MustRegister(agentRPCDurationsHistogram)
|
||||
}
|
||||
|
||||
// UpdateRuntimeMetrics update shim/hypervisor's metrics
|
||||
|
||||
Reference in New Issue
Block a user