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

feat: add alert rules for mso #94

Merged
merged 1 commit into from
Dec 14, 2021
Merged

feat: add alert rules for mso #94

merged 1 commit into from
Dec 14, 2021

Conversation

slashpai
Copy link
Member

@slashpai slashpai commented Dec 7, 2021

This commit adds initial rule file for monitoring-stack-operator

Signed-off-by: Jayapriya Pai janantha@redhat.com

Description:

Add alert rules for controller, create service and servicemonitor

@slashpai slashpai requested a review from a team December 7, 2021 10:05
@slashpai
Copy link
Member Author

slashpai commented Dec 7, 2021

@fpetkovski @sthaha PTAL

@slashpai slashpai force-pushed the deploy_mso branch 4 times, most recently from 21e72e6 to 3221958 Compare December 7, 2021 16:00
@fpetkovski
Copy link
Contributor

This looks good so far. Do we want to monitor additional metrics, e.g. queue depth?

@slashpai
Copy link
Member Author

slashpai commented Dec 8, 2021

This looks good so far. Do we want to monitor additional metrics, e.g. queue depth?

Ya I will add other rules as well, created initial PR with only one just to get an idea. Also since we are not using jsonnet how do we want to include other alerts like monitoring prometheus-operator?

@fpetkovski
Copy link
Contributor

Yes, that's a good point. We should include PO alerts as well.

@slashpai
Copy link
Member Author

slashpai commented Dec 8, 2021

@fpetkovski I added couple of alerts as well, PTAL. I can create separate PR for Prometheus Operator

Copy link
Collaborator

@sthaha sthaha left a comment

Choose a reason for hiding this comment

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

Nice patch @slashpai !
Looks good overall. Some minor corrections

@slashpai slashpai force-pushed the deploy_mso branch 2 times, most recently from 1535e2f to 33ad012 Compare December 9, 2021 04:56
@slashpai
Copy link
Member Author

slashpai commented Dec 9, 2021

Nice patch @slashpai ! Looks good overall. Some minor corrections

Thanks Sunil. I updated with changes, PTAL

This commit adds initial rule file for monitoring-stack-operator

Signed-off-by: Jayapriya Pai janantha@redhat.com
Copy link
Collaborator

@sthaha sthaha left a comment

Choose a reason for hiding this comment

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

nice!

@slashpai
Copy link
Member Author

slashpai commented Dec 9, 2021

@fpetkovski are we good to merge? or anymore change is required :)

summary: Monitoring Stack Operator controller - {{ $labels.controller }} reconcilation takes too long to reconcile
expr: |
rate(controller_runtime_reconcile_time_seconds_sum{job="monitoring-stack-operator"}[5m]) /
rate(controller_runtime_reconcile_time_seconds_count{job="monitoring-stack-operator"}[5m])
Copy link
Contributor

Choose a reason for hiding this comment

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

What is a rate of a count in this case?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah ok so this is the average loop time, makes sense 👍

@slashpai slashpai merged commit c13d605 into rhobs:main Dec 14, 2021
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.

3 participants