Skip to content

Conversation

@eguzki
Copy link
Member

@eguzki eguzki commented Jun 10, 2021

https://issues.redhat.com/browse/THREESCALE-7137

  • Updated doc with new APImanager CRD info and feature explanation
  • Upgrade procedure not implemented as not needed. Just one new optional parameter added.
  • PrometheusRule serialization CLI command implemented to auto-generate published prometheus rules
  • CI testing to validate autogenerated content is not updated manually

@eguzki eguzki requested a review from miguelsorianod June 10, 2021 13:49
@eguzki eguzki force-pushed the prometheus-rule-optin branch from b4cb968 to 445d051 Compare June 10, 2021 13:58
Copy link
Contributor

@miguelsorianod miguelsorianod left a comment

Choose a reason for hiding this comment

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

Looks good to me. Can we have some doc about the generated rules part ?
In that doc we should mention that users should locally modify all prometheus rules yaml to replace the __NAMESPACE__ placeholder everywhere for the namespace where they want to deploy them.

An alternative instead of committing the rules would be being able to provide the namespace in the CLI command. That means they would need to run that command to generate them

@eguzki eguzki force-pushed the prometheus-rule-optin branch from 445d051 to 78fda50 Compare June 11, 2021 13:36
@eguzki
Copy link
Member Author

eguzki commented Jun 11, 2021

An alternative instead of committing the rules would be being able to provide the namespace in the CLI command. That means they would need to run that command to generate them

If the customer wants custom prometheus rules (because the expressions, duration or severity does not fit for their infra), it does not make sense to generate them using CLI with namespace parameter. The CLI command would have to provide too many flags.

@eguzki
Copy link
Member Author

eguzki commented Jun 11, 2021

added the readme with more doc

@miguelsorianod
Copy link
Contributor

miguelsorianod commented Jun 11, 2021

An alternative instead of committing the rules would be being able to provide the namespace in the CLI command. That means they would need to run that command to generate them

If the customer wants custom prometheus rules (because the expressions, duration or severity does not fit for their infra), it does not make sense to generate them using CLI with namespace parameter. The CLI command would have to provide too many flags.

I was not proposing custom prometheus rules. I was commenting an alternative way of adding a way to generate them with the namespace they want. In the commited rules I see multiple references to __NAMESPACE__ which I understand is a placeholder and the user will have to do a find and replace of all the occurrences to their desired namespace. In that way they would avoid having to do that

@miguelsorianod
Copy link
Contributor

The doc looks good to me 👍

@eguzki
Copy link
Member Author

eguzki commented Jun 14, 2021

added --namespace flag

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit f973655 and detected 43 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1
Duplication 7
Style 35

View more on Code Climate.

Copy link
Contributor

@miguelsorianod miguelsorianod left a comment

Choose a reason for hiding this comment

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

👍 great work

@eguzki eguzki merged commit c22dfc7 into master Jun 14, 2021
@eguzki eguzki deleted the prometheus-rule-optin branch June 14, 2021 13:11
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