Skip to content

Commit

Permalink
feat():add created_by_kind metric
Browse files Browse the repository at this point in the history
  • Loading branch information
XieJCHenry committed Nov 23, 2023
1 parent 9fe8bb4 commit e0ab689
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions metricbeat/module/kubernetes/state_pod/state_pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ var (
"pod": p.KeyLabel("name"),
"namespace": p.KeyLabel(mb.ModuleDataKey + ".namespace"),

"node": p.Label(mb.ModuleDataKey + ".node.name"),
"pod_ip": p.Label("ip"),
"host_ip": p.Label("host_ip"),
"node": p.Label(mb.ModuleDataKey + ".node.name"),
"pod_ip": p.Label("ip"),
"host_ip": p.Label("host_ip"),
"created_by_kind": p.Label("created_by_kind"),
},
}
)
Expand Down

0 comments on commit e0ab689

Please sign in to comment.