Skip to content

Commit 52d4cae

Browse files
committed
lint
1 parent 83d7965 commit 52d4cae

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

internal/constants/containerinsights.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package constants
66
const (
77
ClusterNameKey = "ClusterName"
88
NodeNameKey = "NodeName" // Attribute names
9-
InstanceIdKey = "InstanceId"
9+
InstanceIDKey = "InstanceId"
1010
InstanceTypeKey = "InstanceType"
1111
AutoScalingGroupNameKey = "AutoScalingGroupName"
1212
VersionKey = "Version"
@@ -26,7 +26,7 @@ const (
2626
GpuMemTotal = "gpu_memory_total"
2727
GpuTemperature = "gpu_temperature"
2828
GpuPowerDraw = "gpu_power_draw"
29-
GpuUniqueId = "UUID"
29+
GpuUniqueID = "UUID"
3030

3131
NeuronCoreUtilization = "neuroncore_utilization"
3232
NeuronCoreMemoryUtilizationTotal = "neuroncore_memory_usage_total"
@@ -72,7 +72,7 @@ const (
7272

7373
Kubernetes = "kubernetes"
7474
K8sNamespace = "Namespace"
75-
PodIdKey = "PodId"
75+
PodIDKey = "PodId"
7676
FullPodNameKey = "FullPodName"
7777
PodNameKey = "PodName"
7878
K8sPodNameKey = "K8sPodName"

plugins/processors/gpuattributes/internal/metricFilters/gpumetricfilters.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ const (
2222

2323
var ContainerGpuLabelFilter = map[string]map[string]interface{}{
2424
constants.ClusterNameKey: nil,
25-
constants.InstanceIdKey: nil,
25+
constants.InstanceIDKey: nil,
2626
constants.GpuDeviceKey: nil,
2727
constants.MetricType: nil,
2828
constants.NodeNameKey: nil,
2929
constants.K8sNamespace: nil,
3030
constants.FullPodNameKey: nil,
3131
constants.PodNameKey: nil,
3232
constants.TypeService: nil,
33-
constants.GpuUniqueId: nil,
33+
constants.GpuUniqueID: nil,
3434
constants.ContainerNamekey: nil,
3535
constants.InstanceTypeKey: nil,
3636
constants.VersionKey: nil,
@@ -49,15 +49,15 @@ var ContainerGpuLabelFilter = map[string]map[string]interface{}{
4949
}
5050
var PodGpuLabelFilter = map[string]map[string]interface{}{
5151
constants.ClusterNameKey: nil,
52-
constants.InstanceIdKey: nil,
52+
constants.InstanceIDKey: nil,
5353
constants.GpuDeviceKey: nil,
5454
constants.MetricType: nil,
5555
constants.NodeNameKey: nil,
5656
constants.K8sNamespace: nil,
5757
constants.FullPodNameKey: nil,
5858
constants.PodNameKey: nil,
5959
constants.TypeService: nil,
60-
constants.GpuUniqueId: nil,
60+
constants.GpuUniqueID: nil,
6161
constants.InstanceTypeKey: nil,
6262
constants.VersionKey: nil,
6363
constants.SourcesKey: nil,
@@ -73,7 +73,7 @@ var PodGpuLabelFilter = map[string]map[string]interface{}{
7373
}
7474
var NodeGpuLabelFilter = map[string]map[string]interface{}{
7575
constants.ClusterNameKey: nil,
76-
constants.InstanceIdKey: nil,
76+
constants.InstanceIDKey: nil,
7777
constants.GpuDeviceKey: nil,
7878
constants.MetricType: nil,
7979
constants.NodeNameKey: nil,
@@ -89,7 +89,7 @@ var NodeGpuLabelFilter = map[string]map[string]interface{}{
8989
var PodNeuronLabelFilter = map[string]map[string]interface{}{
9090
constants.ClusterNameKey: nil,
9191
constants.FullPodNameKey: nil,
92-
constants.InstanceIdKey: nil,
92+
constants.InstanceIDKey: nil,
9393
constants.InstanceTypeKey: nil,
9494
constants.K8sPodNameKey: nil,
9595
constants.K8sNamespace: nil,
@@ -114,7 +114,7 @@ var ContainerNeuronLabelFilter = map[string]map[string]interface{}{
114114
constants.ClusterNameKey: nil,
115115
constants.ContainerNamekey: nil,
116116
constants.FullPodNameKey: nil,
117-
constants.InstanceIdKey: nil,
117+
constants.InstanceIDKey: nil,
118118
constants.InstanceTypeKey: nil,
119119
constants.K8sPodNameKey: nil,
120120
constants.K8sNamespace: nil,
@@ -138,7 +138,7 @@ var ContainerNeuronLabelFilter = map[string]map[string]interface{}{
138138

139139
var NodeNeuronLabelFilter = map[string]map[string]interface{}{
140140
constants.ClusterNameKey: nil,
141-
constants.InstanceIdKey: nil,
141+
constants.InstanceIDKey: nil,
142142
constants.InstanceTypeKey: nil,
143143
constants.K8sNamespace: nil,
144144
internal.NeuronDevice: nil,

plugins/processors/gpuattributes/processor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ const (
4242
//
4343
// - Node
4444
// - ClusterName
45-
// - ClusterName, InstanceIdKey, NodeName
46-
// - ClusterName, InstanceIdKey, NodeName, GpuDevice
45+
// - ClusterName, InstanceIDKey, NodeName
46+
// - ClusterName, InstanceIDKey, NodeName, GpuDevice
4747
type gpuAttributesProcessor struct {
4848
*Config
4949
logger *zap.Logger

translator/tocwconfig/totomlconfig/tomlConfigTemplate/tomlConfig.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type (
3636
Disk []diskConfig
3737
DiskIo []diskioConfig
3838
Ethtool []ethtoolConfig
39-
K8sapiserver []k8sApiServerConfig
39+
K8sapiserver []k8sAPIServerConfig
4040
Logfile []logFileConfig
4141
Mem []memConfig
4242
Net []netConfig
@@ -100,7 +100,7 @@ type (
100100
Interval string
101101
}
102102

103-
k8sApiServerConfig struct {
103+
k8sAPIServerConfig struct {
104104
Interval string
105105
Tags map[string]string
106106
}

0 commit comments

Comments
 (0)