Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: integrate Instatus in check script #342

Merged
merged 3 commits into from
Nov 19, 2024
Merged

Conversation

matifali
Copy link
Member

Add Instatus API support to monitor module status.

- Improve monitoring by implementing Instatus API to update component
  status based on module check results.
- Automate incident reports for module failures to enable efficient
  troubleshooting.
@matifali matifali force-pushed the atif/modules-health branch from 19f05e1 to 33e4ba8 Compare November 18, 2024 17:01
Comment on lines +19 to +26
update_component_status() {
local component_status=$1
# see https://instatus.com/help/api/components
(curl -X PUT "https://api.instatus.com/v1/$INSTATUS_PAGE_ID/components/$INSTATUS_COMPONENT_ID" \
-H "Authorization: Bearer $INSTATUS_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"status\": \"$component_status\"}")
}
Copy link
Member

Choose a reason for hiding this comment

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

Can we check for the required InStatus environment variables being set upfront and exit with a non-zero exit status if not provided? Right now we will exit with

./.github/scripts/check.sh: line 22: INSTATUS_PAGE_ID: unbound variable

@matifali matifali requested a review from johnstcn November 19, 2024 07:12
@matifali matifali merged commit 5101c27 into main Nov 19, 2024
2 checks passed
@matifali matifali deleted the atif/modules-health branch November 19, 2024 09:22
matifali added a commit that referenced this pull request Nov 20, 2024
- Introduce Amazon DCV for remote desktop on Windows workspaces.
- Script to install and configure DCV components.
- Terraform setup for configuring resources like coder_app.
- Ensure secure management with sensitive variable handling.

chore: add health check badge (#341)

chore: integrate Instatus in check script (#342)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants