Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugins: Surface more decision log errors via status API #5797

Merged

Conversation

ashutosh-narkar
Copy link
Member

Previously in #5732 we updated the decision log plugin to surface errors via the Status API. However in that change certain events like encoder errors and log drops due to buffer size limits had no metrics associated with them. This change adds more metrics for these events so that they can be surfaced via the Status API.

Fixes: #5637

Previously in open-policy-agent#5732 we updated the decision log plugin to
surface errors via the Status API. However in that change
certain events like encoder errors and log drops due to
buffer size limits had no metrics associated with them.
This change adds more metrics for these events so that they
can be surfaced via the Status API.

Fixes: open-policy-agent#5637

Signed-off-by: Ashutosh Narkar <[email protected]>
Comment on lines -781 to -784
if p.metrics != nil {
p.status.Metrics = p.metrics
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we were adding the global metric registry under the decision log status update. This should not be needed as the status plugin already reports those.

@ashutosh-narkar ashutosh-narkar merged commit c858397 into open-policy-agent:main Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Surface decision log errors via status API
2 participants