Skip to content

Commit

Permalink
Add label for priority class in kube_pod_info #712
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkang committed Apr 4, 2019
1 parent aed9485 commit 457821b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/collector/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ var (

m := metric.Metric{

LabelKeys: []string{"host_ip", "pod_ip", "uid", "node", "created_by_kind", "created_by_name"},
LabelValues: []string{p.Status.HostIP, p.Status.PodIP, string(p.UID), p.Spec.NodeName, createdByKind, createdByName},
LabelKeys: []string{"host_ip", "pod_ip", "uid", "node", "created_by_kind", "created_by_name", "priority_class"},
LabelValues: []string{p.Status.HostIP, p.Status.PodIP, string(p.UID), p.Spec.NodeName, createdByKind, createdByName, p.Spec.PriorityClassName},
Value: 1,
}

Expand Down

0 comments on commit 457821b

Please sign in to comment.