Skip to content

Commit 098d3b3

Browse files
committed
Add values & labels of fileCache to the Collect method
1 parent 7398b3f commit 098d3b3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

collector/nodes.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2065,5 +2065,16 @@ func (c *Nodes) Collect(ch chan<- prometheus.Metric) {
20652065
}
20662066
}
20672067

2068+
// File cache Stats
2069+
for _, metric := range c.fileCacheMetrics {
2070+
ch <- prometheus.MustNewConstMetric(
2071+
metric.Desc,
2072+
metric.Type,
2073+
metric.Value(node.FileCache),
2074+
metric.Labels(nodeStatsResp.ClusterName, node)...,
2075+
)
2076+
}
2077+
20682078
}
2079+
20692080
}

0 commit comments

Comments
 (0)