Skip to content

Commit

Permalink
fix: telemetry host metrics logical mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfooI committed Nov 3, 2023
1 parent b26401c commit 9163999
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/telemetry/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ func getK8sNodes() ([]corev1.Node, error) {
}

func getHostMetrics() *hostMetrics {
telemetryEnvMetrics = &hostMetrics{
IPHashes: []string{},
K8sNodes: []models.K8sNode{},
}
telemetryEnvMetricsOnce.Do(func() {
telemetryEnvMetrics = &hostMetrics{
IPHashes: []string{},
K8sNodes: []models.K8sNode{},
}
ips, err := getLocalIPs()
if err == nil {
for _, ip := range ips {
Expand Down

0 comments on commit 9163999

Please sign in to comment.