vmware-archive / eventrouter

A simple introspective kubernetes service that forwards events to a specified sink.
Apache License 2.0
886 stars 252 forks source link

Event container/fieldPath prometheus label #88

Closed janzantinge closed 5 years ago

janzantinge commented 5 years ago

I have a need to identify metrics involving init containers and am wondering whether it makes sense to add the event.InvolvedObject.FieldPath as a label in the prometheus counter metrics.

This would allow me to match the label value against a regex (eg. heptio_eventrouter_warnings_total{involved_object_fieldpath=~".*init.*")

If this makes sense, I can easily PR it.

janzantinge commented 5 years ago

kube-state-metrics seems to provide what I need.