Skip to content

feat(alerting): allow extra labels on PrometheusRules alerts#859

Open
MagicRR wants to merge 1 commit into
cloudnative-pg:mainfrom
MagicRR:feat-858
Open

feat(alerting): allow extra labels on PrometheusRules alerts#859
MagicRR wants to merge 1 commit into
cloudnative-pg:mainfrom
MagicRR:feat-858

Conversation

@MagicRR

@MagicRR MagicRR commented Apr 28, 2026

Copy link
Copy Markdown

Hello,

This feature allows declaring extra labels on PrometheusRule alerts generated by the chart when enabling the monitoring.

Linked to issue : #858

@MagicRR MagicRR requested a review from itay-grudev as a code owner April 28, 2026 14:10
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. chart( cluster ) Related to the cluster chart labels Apr 28, 2026
@MagicRR

MagicRR commented Jun 3, 2026

Copy link
Copy Markdown
Author

Hello @itay-grudev, thank you for the review.
What is missing to fix the pipeline and proceed with the merge ?

@wanix

wanix commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Hello @MagicRR , I have the same need than you for extra-labels. May you fix the conflicts please ?

@wanix

wanix commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

My 2 cents for the var naming, as we have already "additionalLabels" var naming for subLabelling, maybe keeping consistency there renaming prometheusRule.addAlertExtraLabels to prometheusRule.additionalLabels.
WDYT ?

@MagicRR

MagicRR commented Jul 9, 2026

Copy link
Copy Markdown
Author

Sounds good to me, I'll make the changes

@MagicRR MagicRR force-pushed the feat-858 branch 2 times, most recently from 0192cf7 to 74f9de7 Compare July 9, 2026 10:02
@wanix

wanix commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@MagicRR, thanks for the changes. Can you enhance the monitoring test and verify that one prometheusRule in the ones generated have the additionnal label included ?

@wanix

wanix commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@MagicRR , I proposed the change for your branch: MagicRR#1

@wanix

wanix commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Sorry @MagicRR, I did too fast and you were fast also, this change is needed to pass monitoring test: MagicRR#2

Signed-off-by: MagicRR <r.richard.94@orange.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chart( cluster ) Related to the cluster chart size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants