Skip to content

Commit

Permalink
collectd receiver added type & type_instance
Browse files Browse the repository at this point in the history
  • Loading branch information
mfyuce committed Jan 18, 2024
1 parent a260b46 commit 9e575cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions receiver/collectdreceiver/collectd.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ func (cdr *collectDRecord) appendToMetrics(logger *zap.Logger, scopeMetrics pmet
}

addIfNotNullOrEmpty(labels, "plugin", cdr.Plugin)
addIfNotNullOrEmpty(labels, "type", cdr.TypeS)
addIfNotNullOrEmpty(labels, "type_instance", cdr.TypeInstance)
parseAndAddLabels(labels, cdr.PluginInstance, cdr.Host)
if !usedDsName {
addIfNotNullOrEmpty(labels, "dsname", dsName)
Expand Down

0 comments on commit 9e575cf

Please sign in to comment.