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

Add oauth metrics into the jmx_metrics_config.yaml #718

Merged
merged 2 commits into from
Nov 28, 2022

Conversation

im-konge
Copy link
Member

Signed-off-by: Lukas Kral lukywill16@gmail.com

In Oauth 0.11.0, the oauth metrics were introduced.
But, to scrape these Oauth metrics from Bridge, we need to add the correct patterns into the jmx_metrics_config.yaml.

This PR does it.

Signed-off-by: Lukas Kral <lukywill16@gmail.com>
@im-konge im-konge added this to the 0.23.0 milestone Nov 28, 2022
@im-konge im-konge self-assigned this Nov 28, 2022
Copy link
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

What happens when OAuth is not used?

@im-konge
Copy link
Member Author

@scholzj good question, I will try it

@im-konge
Copy link
Member Author

@scholzj I tested this with just enabled metrics, without Oauth, and it just prints metrics, that are available. There are no Oauth metrics at all (there is no NaN or nulls etc.)

Signed-off-by: Lukas Kral <lukywill16@gmail.com>
Copy link
Member

@ppatierno ppatierno left a comment

Choose a reason for hiding this comment

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

LGTM. I don't know all the OAuth metrics, so I would assume all these rules for them are necessary and we have them in the operator as well I guess?

@im-konge
Copy link
Member Author

Those metrics, which I'm adding to the Bridge, I found in Oauth repository from @mstruk , so I assumed that's all needed.
We don't have it in operators repository, it should be introduced in Strimzi#7694

@ppatierno ppatierno merged commit 211a6da into strimzi:main Nov 28, 2022
@im-konge im-konge deleted the oauth-metrics branch November 28, 2022 14:07
@mstruk
Copy link

mstruk commented Nov 28, 2022

Sorry for late chiming-in. It looks good yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants