Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy