Check apps in US East through the status canary
A small ntfy app ("Status canary" on Cottage's own account) now runs on the
Virginia servers, so the apps monitor checks its health endpoint: the whole
path a customer's app takes.
This commit is contained in:
1 parent
e9de6c5b69
commit
26e2548dd5
1 file changed
+14
-15
+14
-15
@@ -14,7 +14,7 @@ const pageConfig: PageConfig = {
|
||||
// Sections, in order. Every monitor below should appear in exactly one.
|
||||
group: {
|
||||
Cottage: ['website', 'dashboard'],
|
||||
// 'Apps by region': ['apps-us-east'], // add back with the monitor below
|
||||
'Apps by region': ['apps-us-east'],
|
||||
},
|
||||
}
|
||||
|
||||
@@ -42,20 +42,19 @@ const workerConfig: WorkerConfig = {
|
||||
timeout: 10000,
|
||||
headers: { 'User-Agent': 'cottage-status (+https://status.cottage.host)' },
|
||||
},
|
||||
// Not checked yet: no canary app runs on the node. Deploy one, then uncomment this
|
||||
// and the 'Apps by region' group above.
|
||||
// {
|
||||
// // A small app Cottage runs for itself on the region's servers, so this checks the
|
||||
// // whole path a customer's app takes: Cloudflare, the node's proxy and a running app.
|
||||
// // TODO at launch: deploy the canary app and put its address here.
|
||||
// id: 'apps-us-east',
|
||||
// name: 'Apps in US East',
|
||||
// tooltip: 'Customer apps hosted in Virginia',
|
||||
// method: 'GET',
|
||||
// target: 'https://status-canary-vin1.cottagehost.com/',
|
||||
// timeout: 10000,
|
||||
// headers: { 'User-Agent': 'cottage-status (+https://status.cottage.host)' },
|
||||
// },
|
||||
{
|
||||
// A small app Cottage runs for itself on the region's servers (ntfy, "Status canary" on
|
||||
// Cottage's own internal account), so this checks the whole path a customer's app takes:
|
||||
// Cloudflare, the node's proxy, Harbor and a running container.
|
||||
id: 'apps-us-east',
|
||||
name: 'Apps in US East',
|
||||
tooltip: 'Customer apps hosted in Virginia',
|
||||
method: 'GET',
|
||||
target: 'https://status-canary-m7ec.cottagehost.com/v1/health',
|
||||
expectedCodes: [200],
|
||||
timeout: 10000,
|
||||
headers: { 'User-Agent': 'cottage-status (+https://status.cottage.host)' },
|
||||
},
|
||||
],
|
||||
// Alerts come from Grafana Cloud (hearth infra/monitoring). A webhook here could page too.
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user