Skip to content

Conversation

@h3adex
Copy link
Contributor

@h3adex h3adex commented Oct 28, 2025

Description

This PR introduces http and cert_check Terraform support. Once an HTTP or certificate check is created, you can query thanos within the observability stack for metrics (e.g http_response_result_code) and create alerts based on them.

APIs:
https://docs.api.stackit.cloud/documentation/argus/version/v1#tag/http-check
https://docs.api.stackit.cloud/documentation/argus/version/v1#tag/cert-check

E2E Tests

resource "stackit_observability_instance" "example" {
  project_id = var.stackit_project_id
  name       = "example-instance"
  plan_name  = "Observability-Medium-EU01"
  alert_config = null
}

resource "stackit_observability_http_check" "http_check" {
  project_id = var.stackit_project_id
  instance_id = stackit_observability_instance.example.instance_id
  url = "https://www.example.de"
}

data "stackit_observability_http_check" "test" {
  project_id = var.stackit_project_id
  instance_id = stackit_observability_instance.example.instance_id
  http_check_id = stackit_observability_http_check.http_check.http_check_id
}

resource "stackit_observability_http_check" "http_check_2" {
  project_id = var.stackit_project_id
  instance_id = stackit_observability_instance.example.instance_id
  url = "https://www.stackit.de"
}

resource "stackit_observability_cert_check" "cert_check" {
  project_id = var.stackit_project_id
  instance_id = stackit_observability_instance.example.instance_id
  source = "tcp://stackit.de:443"
}

data "stackit_observability_cert_check" "test" {
  project_id = var.stackit_project_id
  instance_id = stackit_observability_instance.example.instance_id
  cert_check_id = stackit_observability_cert_check.cert_check.cert_check_id
}

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)

@h3adex h3adex requested a review from a team as a code owner October 28, 2025 14:28
@h3adex h3adex force-pushed the feature/implement-observability-checks branch 12 times, most recently from 2b6d07a to 9f696f3 Compare October 28, 2025 17:30
@h3adex h3adex marked this pull request as draft October 28, 2025 17:30
@h3adex h3adex force-pushed the feature/implement-observability-checks branch from 9f696f3 to 4365b5a Compare October 29, 2025 08:02
@h3adex h3adex force-pushed the feature/implement-observability-checks branch from 4365b5a to e2b7fa2 Compare October 29, 2025 08:20
@h3adex h3adex marked this pull request as ready for review October 29, 2025 08:20
cdnCustomDomain.NewCustomDomainDataSource,
dnsZone.NewZoneDataSource,
dnsRecordSet.NewRecordSetDataSource,
dnsZone.NewZoneDataSource,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorted them alphabetically

@h3adex
Copy link
Contributor Author

h3adex commented Oct 29, 2025

E2E Test Result:

Screenshot 2025-10-29 at 09 26 02 Screenshot 2025-10-29 at 09 28 38

@github-actions
Copy link

github-actions bot commented Nov 6, 2025

This PR was marked as stale after 7 days of inactivity and will be closed after another 7 days of further inactivity. If this PR should be kept open, just add a comment, remove the stale label or push new commits to it.

@github-actions github-actions bot added the Stale PR is marked as stale due to inactivity. label Nov 6, 2025
@marceljk marceljk removed the Stale PR is marked as stale due to inactivity. label Nov 6, 2025
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.

3 participants