Add landscaping-assistant to blackbox uptime monitoring #400
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-platform!400
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "399-add-landscaping-assistant-to-blackbox-up"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds the landscaping-assistant Rails app to the blackbox exporter probe targets so it gets uptime monitoring and EndpointDown alerts alongside all other deployed services.
Changes
terraform/modules/monitoring/main.tf-- added landscaping-assistant entry toserviceMonitor.targetsin the blackbox exporter helm values, using the internal cluster URLhttp://landscaping-assistant.landscaping-assistant.svc.cluster.local:3000/uptofu plan Output
Cannot run
tofu planwithout cluster credentials, but the change is a pure data addition (one new list element in the blackbox exporter helm values).tofu fmt -checkpasses clean.Test Plan
tofu fmt -checkpasses (verified)probe_success{instance=~".*landscaping-assistant.*"}appears in PrometheusReview Checklist
Related Notes
ldraney/pal-e-platform#399-- the Forgejo issue this PR implementsPR Review
Scope: 1 file changed, 5 additions, 0 deletions.
Findings
Correctness -- PASS
http://{service}.{namespace}.svc.cluster.local:{port}{path}matches the kustomization overlay: service namelandscaping-assistant, namespacelandscaping-assistant, port3000, health path/up.service = "landscaping-assistant",tier = "app"-- consistent with basketball-api, westside-app, playme2k entries.playme2kentry and new entry is the final element (no trailing comma) -- valid HCL list syntax.Pattern consistency -- PASS
Security -- PASS
Formatting -- PASS
tofu fmt -checkconfirmed clean per PR body.No issues found.
VERDICT: APPROVE
PR #400 Review
DOMAIN REVIEW
Stack: Terraform / Helm / Kubernetes monitoring infrastructure
This is a 5-line, single-file data addition to
terraform/modules/monitoring/main.tf. It adds one new entry to the blackbox exporter probe targets list.Terraform style: The new block follows the exact same structure as the four existing entries (name, url, labels with service + tier). Formatting is consistent --
tofu fmtcompliance is claimed and the indentation matches.URL correctness: The target URL
http://landscaping-assistant.landscaping-assistant.svc.cluster.local:3000/upis well-formed:{service}.{namespace}.svc.cluster.local:{port}k8s DNS convention used by all other entries/uppath is confirmed to exist --config/routes.rbin the landscaping-assistant repo mapsget "up"torails/health#show(the standard Rails health check)playme2kandwestside-appentriesPattern note: This is the only entry using an explicit health-check path (
/up). The others hit root/or/docs. This is actually better practice -- probing a dedicated health endpoint avoids false positives from redirects or error pages. Not a concern, just an observation.Diff mechanics: The trailing comma is correctly added after the
playme2kblock closing brace, and the new entry is placed as the last element before the closing bracket. Clean HCL.BLOCKERS
None.
This is a pure data addition -- no new logic, no user input, no auth changes, no secrets. The BLOCKER criteria (missing tests for new functionality, unvalidated input, secrets in code, DRY violations in auth) do not apply to declarative infrastructure data additions.
NITS
None. The change is minimal, correctly structured, and follows established patterns.
SOP COMPLIANCE
399-add-landscaping-assistant-to-blackbox-upfollows{issue-number}-{kebab-case-purpose}conventionMinor SOP note: The PR body has "tofu plan Output" instead of the standard "Test Plan" header, and a "Review Checklist" section. The Test Plan content is present and reasonable (cannot run tofu plan without cluster creds, but
tofu fmt -checkpasses and post-apply verification steps are listed). Acceptable for an infra change.PROCESS OBSERVATIONS
/upendpoint is unreachable, the EndpointDown alert (configured at line 483 withprobe_success == 0and 5mforduration) will fire as a warning -- which is the desired behavior.landscaping-assistant#21from thepal-e-platformrepo where the monitoring infra lives. Good cross-repo issue tracking.VERDICT: APPROVED