feat(OFF-178): Grafana synthetic health check probes#385
Open
noahwhite wants to merge 1 commit into
Open
Conversation
…ites Establishes Grafana Synthetic Monitoring infrastructure to probe tenant health check endpoints. Creates an SM installation on the Grafana Cloud stack, configures HTTP checks that authenticate with X-Health-Check-Token from 3 US probe locations (Atlanta, New York, San Francisco), and routes alerts through a dedicated PagerDuty service. - grafana_synthetic_monitoring_installation enables SM on the stack - grafana_synthetic_monitoring_check probes https://<domain>/ every 2min - PagerDuty service + contact point + notification policy routing - CI workflows and infra-shell pass HEALTH_CHECK_TOKEN as TF_VAR - OpenTofu tests cover all new resources (14/14 passing)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
grafana_synthetic_monitoring_installationgrafana_synthetic_monitoring_check) that authenticates withX-Health-Check-Tokenheader againsthttps://<tenant_domain>/ghost-stack-dev-01-health-check) with Events API V2 integration and service dependenciesPagerDuty - Ghost Stack Health Checkcontact point withservice=health-checklabel matching in the notification policyHEALTH_CHECK_TOKENthrough CI workflows andinfra-shell.shasTF_VAR_health_check_tokenFiles changed
opentofu/modules/grafana-cloud/main.tofuopentofu/modules/grafana-cloud/variables.tofumetrics_publisher_key,pagerduty_health_check_integration_key,health_check_token,tenant_domainopentofu/modules/pagerduty/main.tofuopentofu/envs/dev/main.tofuopentofu/envs/dev/variables.tofuhealth_check_tokenvariableopentofu/envs/dev/tests/grafana-cloud.tofutest.hcl.github/workflows/deploy-dev.ymlHEALTH_CHECK_TOKENandTF_VAR_health_check_tokenthrough all steps.github/workflows/pr-tofu-plan-develop.ymldocker/scripts/infra-shell.shTF_VAR_health_check_tokenPrerequisites
The
GC_ACCESS_TOKcloud access policy token needs these scopes for Synthetic Monitoring installation:stacks:read,metrics:write,logs:write,traces:write. Verify the existing token has these scopes before applying.Test plan
tofu fmt -check -recursivepassestofu testpasses (14/14)tofu planshows expected new resources (SM installation, check, PD service, contact point, notification policy update)tofu applycreates SM infrastructure successfullyCloses OFF-178