Skip to content

TPT-3596: Project CloudPulse Metrics Integration for Core Compute - #897

Open
yec-akamai wants to merge 3 commits into
devfrom
proj/aclp-linode-alerts
Open

yec-akamai wants to merge 3 commits into
devfrom
proj/aclp-linode-alerts

Conversation

@yec-akamai

Copy link
Copy Markdown
Contributor

📝 Description

Merge the cloud pulse metrics project into dev.

✔️ How to Test

make test-int TEST_SUITE=instance_alerts

yec-akamai and others added 3 commits April 7, 2026 16:24
* init

* update test

* fix update

* update list system alerts

* address comments; update docs

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* address comments

* improve test

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
# Conflicts:
#	requirements.txt
@yec-akamai yec-akamai added the project for new projects in the changelog. label Oct 30, 2026
@yec-akamai
yec-akamai requested review from a team as code owners October 30, 2026 16:19
@yec-akamai
yec-akamai requested review from jriddle-linode and psnoch-akamai and a balanced review from Copilot and removed request for a team October 30, 2026 16:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The integration test exposes an instance with a hard-coded root password and no firewall, while alert updates can silently drop requested lists.

6 open issues
What changed in this PR

This PR extends the linode.cloud instance module with CloudPulse alert configuration for core compute, alongside legacy alert threshold updates.

Changes:

  • Adds system and user alert options, with validation restricting legacy thresholds to updates.
  • Adds integration tests for system alert creation, disabling alerts, and legacy threshold updates.
  • Documents the new options and raises the minimum linode_api4 version to 5.49.0.
File Description
tests/​integration/​targets/​instance_basic/​tasks/​main.yaml Removes a trailing blank line; no behavioral change.
tests/​integration/​targets/​instance_alerts/​tasks/​main.yaml Adds alert lifecycle tests and instance cleanup.
requirements.txt Raises the minimum SDK version.
plugins/​modules/​instance.py Adds alert options, update support, and creation validation.
docs/​modules/​instance.md Documents alert fields and beta availability restrictions.

Review effort: Balanced

region: "{{ aclp_region }}"
type: g6-standard-1
image: linode/ubuntu22.04
root_pass: My@Root_passhere

# Fields that can be updated on an existing instance
MUTABLE_FIELDS = {"group", "tags", "maintenance_policy"}
MUTABLE_FIELDS = {"group", "tags", "maintenance_policy", "alerts"}

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"Note: v4beta only and may not currently be available to all users."
],
),
"user_alerts": SpecField(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

project for new projects in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants