Skip to content

Commit

Permalink
refactor(sysadvisor): add metric tag
Browse files Browse the repository at this point in the history
Signed-off-by: linzhecheng <linzhecheng@bytedance.com>
  • Loading branch information
cheney-lin committed Jan 26, 2024
1 parent df34d1e commit 2a96fee
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const (
metricTagKeyPolicyName = "policy_name"
metricTagKeyRegionType = "region_type"
metricTagKeyRegionName = "region_name"
metricTagKeyRegionNUMAs = "region_numas"
metricTagKeyControlKnobName = "control_knob_name"
metricTagKeyControlKnobAction = "control_knob_action"
)
Expand Down Expand Up @@ -389,7 +390,8 @@ func (r *QoSRegionBase) GetHeadroom() (float64, error) {
}
_ = r.emitter.StoreFloat64(metricRegionHeadroom, headroom, metrics.MetricTypeNameRaw,
metrics.ConvertMapToTags(map[string]string{metricTagKeyRegionType: string(r.regionType),
metricTagKeyRegionName: r.name, metricTagKeyPolicyName: string(internal.name)})...)
metricTagKeyRegionName: r.name, metricTagKeyPolicyName: string(internal.name),
metricTagKeyRegionNUMAs: r.bindingNumas.String()})...)
r.headroomPolicyNameInUse = internal.name
return headroom, nil
}
Expand Down

0 comments on commit 2a96fee

Please sign in to comment.