Skip to content

Commit

Permalink
chore(go.d/vernemq): remove unused file (netdata#18835)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyam8 authored Oct 21, 2024
1 parent c22ad52 commit fdbee44
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 134 deletions.
22 changes: 11 additions & 11 deletions src/go/plugin/go.d/modules/vernemq/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,6 @@ func (v *VerneMQ) getNodesStats(mfs prometheus.MetricFamilies) map[string]*nodeS
}

for _, m := range mf.Metrics() {
node := m.Labels().Get("node")
if node == "" {
continue
}

if _, ok := nodes[node]; !ok {
nodes[node] = newNodeStats()
}

nst := nodes[node]

var value float64

switch mf.Type() {
Expand All @@ -100,6 +89,17 @@ func (v *VerneMQ) getNodesStats(mfs prometheus.MetricFamilies) map[string]*nodeS
continue
}

node := m.Labels().Get("node")
if node == "" {
continue
}

if _, ok := nodes[node]; !ok {
nodes[node] = newNodeStats()
}

nst := nodes[node]

if len(m.Labels()) == 1 {
nst.stats[name] += int64(value)
continue
Expand Down
123 changes: 0 additions & 123 deletions src/go/plugin/go.d/modules/vernemq/node_stats.go

This file was deleted.

0 comments on commit fdbee44

Please sign in to comment.