auth0-simple-exporter icon indicating copy to clipboard operation
auth0-simple-exporter copied to clipboard

Add reason label for failed events

Open hobbsh opened this issue 1 year ago • 3 comments

Checklist

Describe the problem you'd like to have solved

It would be great if we could see the reason as a label in these series. I realize it could dramatically increase cardinality but it would be nice to at least have the option to include it.

Describe the ideal solution

There is a flag that enables the reason field being collected from the log and added to the failed series.

Alternatives and current workarounds

No response

Additional context

No response

hobbsh avatar Jun 20 '24 16:06 hobbsh

I'll give this a look, having it as a flag option might be the simpler way to avoid disrupting others. Do you mind describing how this feature might improve usability?

tfadeyi avatar Jun 22 '24 13:06 tfadeyi

Thanks! As for improving usability, it would just allow people to filter events by specific failures and also uncover the underlying reason for failures. I am not sure how many reasons Auth0 has, but it's probably not just a handful, so it could have a negative impact in other ways than just high cardinality. It would be good to know how feasible this is though.

hobbsh avatar Jun 24 '24 14:06 hobbsh

It seems feasible looking a the Auth0 API, each log item seems to have a description, https://auth0.com/docs/deploy-monitor/logs/log-event-type-codes. Is this the info you were hoping to have under a reason label?

tfadeyi avatar Jul 09 '24 16:07 tfadeyi