Closed richm closed 4 years ago
/assign @johnSchnake
@richm Looks good as far as I can tell; do you have a way to reproduce this that I can run through?
Also, be sure to sign your commit.
@richm Looks good as far as I can tell; do you have a way to reproduce this that I can run through?
The test starts here: https://github.com/openshift/origin-aggregated-logging/blob/master/test/eventrouter.sh#L129
Basically, create an event with "type": "Info"
, and see if the eventrouter will process it correctly (in our case, that also means passing through Fluentd and Elasticsearch, but obviously you won't need to do that for just eventrouter verification). You might also want to create an event with some other type, to see if it is correctly processed and counted by Prometheus as an "unknown" type.
Also, be sure to sign your commit.
Done.
Looking forward to this PR getting released soon. Thanks @richm
I pushed one of the other fixes; can you rebase accordingly? The registration lines go in the NewEventRouter method now to ensure their values are ready for use.
I pushed one of the other fixes; can you rebase accordingly? The registration lines go in the NewEventRouter method now to ensure their values are ready for use.
Done
Add support for prometheus counters for types Info and Unknown