Skip to content

fix alert expressions using used_bytes instead of capacity_bytes - #136

Merged
ArnobKumarSaha merged 7 commits into
masterfrom
neo-alerts
Jul 30, 2026
Merged

ArnobKumarSaha merged 7 commits into
masterfrom
neo-alerts

Conversation

@fr-sarker

@fr-sarker fr-sarker commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

…acity bytes in denominator


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

…acity bytes in denominator

Signed-off-by: Fazle Rabbi Sarker <fazlerabbi@appscode.com>
Copilot AI review requested due to automatic review settings July 15, 2026 12:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the Neo4j Helm chart’s disk-usage alert PromQL to use kubelet_volume_stats_capacity_bytes as the denominator (instead of the previous used_bytes), and applies minor Go formatting changes in API tests and scheme registration.

Changes:

  • Update Neo4j disk usage alert expressions to use kubelet_volume_stats_capacity_bytes in the denominator.
  • Reformat sc.New(...) invocation in types_test.go for readability/gofmt consistency.
  • Reformat scheme.AddKnownTypes(...) calls in register.go for readability/gofmt consistency.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
charts/neo4j-alerts/templates/alert.yaml Updates PromQL expressions for Neo4j disk usage alerts to use capacity-based denominator.
apis/alerts/v1alpha1/types_test.go Formatting-only change to multi-line constructor call.
apis/alerts/v1alpha1/register.go Formatting-only change to multi-line AddKnownTypes calls.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread charts/neo4j-alerts/templates/alert.yaml
Comment thread charts/neo4j-alerts/templates/alert.yaml
Comment thread charts/neo4j-alerts/templates/alert.yaml
fr-sarker and others added 6 commits July 15, 2026 18:46
Signed-off-by: Fazle Rabbi Sarker <fazlerabbi@appscode.com>
Signed-off-by: Fazle Rabbi Sarker <fazlerabbi@appscode.com>
…s in denominator

Signed-off-by: Fazle Rabbi Sarker <fazlerabbi@appscode.com>
The previous disk-alert fix (dd07db8) left one unmatched ')' in each
DiskUsageHigh/DiskAlmostFull expression across 12 charts (used_bytes →
capacity_bytes rewrite dropped an opening paren but kept its match),
failing PrometheusRule validation at helm install. Removes the stray
paren so expressions are byte-identical to the working mysql reference.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Fazle Rabbi Sarker <fazlerabbi@appscode.com>
@ArnobKumarSaha
ArnobKumarSaha merged commit 7c9476a into master Jul 30, 2026
24 checks passed
@ArnobKumarSaha
ArnobKumarSaha deleted the neo-alerts branch July 30, 2026 04:17
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