caicloud / event_exporter

Exporter for kubernetes events

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exporting specific events (filter by specific Event Reasons)

EliMutchnik opened this issue · comments

/kind feature

Is there a way today to specify a filter of Event reasons to the collector and generate only those metrics?
For example: I want this tool to export metrics only for Reason="OOMKilled" events.

Is it possible? what code changed need to be done to achieve this?
Thanks!

filtering metrics data is usually done on the Prometheus side, using relabeling with drop or keep action. This doc has more details.

/close