Skip to content

Commit

Permalink
Add nvidia-smi field as description for metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Utku Ozdemir <uoz@protonmail.com>
  • Loading branch information
utkuozdemir committed Jun 26, 2021
1 parent dadd3e3 commit b92e5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func buildQFieldToMetricInfoMap(prefix string, qFieldtoRFieldMap map[qField]rFie

func buildMetricInfo(prefix string, rField rField) MetricInfo {
fqName, multiplier := buildFQNameAndMultiplier(prefix, rField)
desc := prometheus.NewDesc(fqName, "", QFieldSliceToStringSlice(variableLabels), nil) // todo: add help text
desc := prometheus.NewDesc(fqName, string(rField), QFieldSliceToStringSlice(variableLabels), nil)
return MetricInfo{
desc: desc,
mType: prometheus.GaugeValue,
Expand Down

0 comments on commit b92e5d5

Please sign in to comment.