Hi there,
I will add the following implementation to rule.go.
type Rule struct {
Labels map[string]string
Annotations map[string]string
Message string
APIVersion string `yaml:"apiVersion"`
Kind string
Namespace string
Reason string
Type string
MinCount int32 `yaml:"minCount"`
Component string
Host string
Name string // ← add
Receiver string
}
rules := [][2]string{
{r.Message, ev.Message},
{r.APIVersion, ev.InvolvedObject.APIVersion},
{r.Kind, ev.InvolvedObject.Kind},
{r.Namespace, ev.Namespace},
{r.Reason, ev.Reason},
{r.Type, ev.Type},
{r.Component, ev.Source.Component},
{r.Host, ev.Source.Host},
{r.Name, ev.InvolvedObject.Name}, // ← add
}
See: https://github.com/resmoio/kubernetes-event-exporter/blob/master/pkg/exporter/rule.go
Hi there,
I will add the following implementation to rule.go.
See: https://github.com/resmoio/kubernetes-event-exporter/blob/master/pkg/exporter/rule.go