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

NETOBSERV-674 : Added management of prometheus rule #250

Merged
merged 4 commits into from
Feb 10, 2023

Conversation

OlivierCazade
Copy link
Contributor

This PR add support for PrometheusRule to configure different alerts.

I also added change detection to service monitor which for now, once created, is not checked.

@OlivierCazade OlivierCazade changed the title Added management of prometheus rule NETOBSERV-674 : Added management of prometheus rule Jan 16, 2023
@jotak
Copy link
Member

jotak commented Jan 30, 2023

I would prefer to make it more configurable. It could be annoying if for X reason the alert is triggered as a false positive - this can always happen - we want in this case that the users is able to turn them off, and avoiding the operator to keep creating them.
For metrics, we implemented an ignore list, we could have something similar for alerts

{
Alert: "NetobservNoFlows",
Annotations: map[string]string{
"description": "Netobserv flowlogs-pipeline is not receiving any flow, this is either a connection issue with the agent, or an agent issue",
Copy link
Member

Choose a reason for hiding this comment

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

Can you replace Netobserv with NetObserv (capital O) ? There's the occurrence in several places in this file

@OlivierCazade
Copy link
Contributor Author

@jotak since we are still testing how changes in the CRD will be handle, do you mind if I create a following task to add an ignore list entry in the CRD?

@openshift-ci openshift-ci bot added the lgtm label Feb 9, 2023
@jotak
Copy link
Member

jotak commented Feb 9, 2023

@OlivierCazade can you create that follow-up task?

@OlivierCazade
Copy link
Contributor Author

@OlivierCazade
Copy link
Contributor Author

/approve

@openshift-ci
Copy link

openshift-ci bot commented Feb 10, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: OlivierCazade

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit ebf2fb5 into netobserv:main Feb 10, 2023
KalmanMeth pushed a commit to KalmanMeth/network-observability-operator that referenced this pull request Feb 13, 2023
memodi pushed a commit to memodi/network-observability-operator that referenced this pull request Feb 16, 2023
* Added management of prometheus rule

* Fix tests after rebase

* Added bundle modifications

* Fixed NetObserv case in created alerts
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.

3 participants