Skip to content

feat(observability): add http check resource - #1830

Open
ibrahimyesilay wants to merge 2 commits into
stackitcloud:mainfrom
ibrahimyesilay:feat/observability-http-check
Open

ibrahimyesilay wants to merge 2 commits into
stackitcloud:mainfrom
ibrahimyesilay:feat/observability-http-check

Conversation

@ibrahimyesilay

@ibrahimyesilay ibrahimyesilay commented Oct 16, 2026 •

Copy link
Copy Markdown

Description

relates to #1829

Adds stackit_observability_http_check, based on the HTTP check endpoints of the Observability API (CreateHttpCheck, ListHttpChecks, DeleteHttpCheck).

  • The API has no update and no single-get operation for checks, so url, project_id and instance_id force a replacement, and Read looks the check up by ID in the list response (removed from state if the check or the instance is gone).
  • On create, the ID is taken from httpCheck in the response. If that field is missing, the check is looked up by URL in httpChecks (create fails if it cannot be found unambiguously).
  • Checks are unique per URL: I verified against the API that creating a check for a URL that already exists returns the existing check (same ID) instead of a new one. Two resources with the same url would therefore manage the same check, so this is stated in the resource description.
  • Import is supported with project_id,instance_id,http_check_id.

The certificate check from #1829 will follow in a separate PR.

Testing

  • Unit tests for mapFields, toCreatePayload, the ID lookup on create and the lookup on read.
  • TestAccResourceMin (observability) extended with the HTTP check: create, import, and update (URL change → replacement). Run against a STACKIT project: PASS.
  • make fmt, make lint, make test, make generate-docs pass locally.

Checklist

  • Issue was linked above
  • Code format was applied: make fmt
  • Examples were added / adjusted (see examples/ directory)
  • Docs are up-to-date: make generate-docs (will be checked by CI)
  • Unit tests got implemented or updated
  • Acceptance tests got implemented or updated (see e.g. here)
  • Unit tests are passing: make test (will be checked by CI)
  • No linter issues: make lint (will be checked by CI)

Add `stackit_observability_http_check`, backed by the HTTP check endpoints of
the Observability API (create, list, delete). The API has no update or
single-get operation, so all attributes force a replacement and Read looks
the check up by ID in the list response.

relates to stackitcloud#1829
@ibrahimyesilay
ibrahimyesilay requested a review from a team as a code owner October 16, 2026 19:36
The API returns the existing check when a check for the same URL is created
again, so two resources with the same url manage the same check.

relates to stackitcloud#1829

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant