Skip to content

About

Uptime monitor and status page for Source Cooperative (Upptime)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

174 Commits

Folders and files

Repository files navigation

Source Cooperative Status

External uptime monitoring and the public status page for Source Cooperative, at status.source.coop. Built with Upptime.

URL Status History Response Time Uptime
Website 🟩 Up website.yml
Response time graph 351ms
Response time 466
24-hour response time 293
7-day response time 351
30-day response time 466
1-year response time 466
100.00%All-time uptime 100.00%
24-hour uptime 100.00%
7-day uptime 100.00%
30-day uptime 100.00%
1-year uptime 100.00%
Data proxy 🟩 Up data-proxy.yml
Response time graph 142ms
Response time 211
24-hour response time 129
7-day response time 142
30-day response time 211
1-year response time 211
100.00%All-time uptime 100.00%
24-hour uptime 100.00%
7-day uptime 100.00%
30-day uptime 100.00%
1-year uptime 100.00%
Data reads 🟩 Up data-reads.yml
Response time graph 913ms
Response time 1094
24-hour response time 1142
7-day response time 913
30-day response time 1094
1-year response time 1094
100.00%All-time uptime 100.00%
24-hour uptime 100.00%
7-day uptime 100.00%
30-day uptime 100.00%
1-year uptime 100.00%
Credential exchange 🟩 Up credential-exchange.yml
Response time graph 49ms
Response time 116
24-hour response time 70
7-day response time 49
30-day response time 116
1-year response time 116
100.00%All-time uptime 100.00%
24-hour uptime 100.00%
7-day uptime 100.00%
30-day uptime 100.00%
1-year uptime 100.00%
Sign-in 🟩 Up sign-in.yml
Response time graph 312ms
Response time 379
24-hour response time 378
7-day response time 312
30-day response time 379
1-year response time 379
100.00%All-time uptime 100.00%
24-hour uptime 100.00%
7-day uptime 100.00%
30-day uptime 100.00%
1-year uptime 100.00%

What we check

Every check runs every 5 minutes from GitHub Actions, outside Cloudflare, Vercel and AWS, so it keeps working when any of them is down. A check is down if the request fails, returns a non-2xx status, or the body lacks the expected text. It is degraded if it answers but takes longer than 5 seconds.

Check URL Expects What a failure means
Website https://source.coop/ 2xx The web app on Vercel isn't serving.
Data proxy https://data.source.coop/ Source Cooperative Data Proxy The data proxy Worker isn't running. This path makes no upstream calls, so a failure means Cloudflare or the Worker itself is down.
Data reads https://data.source.coop/radiantearth/landcovernet/README.md LandCoverNet Public data can't be read. This exercises the whole read path: a Source API lookup, AWS credentials, then S3. If Data proxy is up but this is down, look downstream of the Worker.
Credential exchange https://data.source.coop/.well-known/openid-configuration "issuer" S3 clients and the CLI can't discover the proxy's credential exchange (/.sts), so signed-in access fails.
Sign-in https://auth.source.coop/.well-known/openid-configuration "issuer" The identity provider (Ory) isn't answering, so users can't sign in or get credentials.

The data-read check uses a Radiant Earth object because Source controls it; a third party deleting data can't cause a false outage.

Together, the checks narrow down where a problem is:

  • Everything down: GitHub or the network between it and us. Check githubstatus.com before paging anyone.
  • Data proxy down: Cloudflare or the Worker.
  • Only data reads down: the Source API, AWS credentials or S3.
  • Only sign-in down: Ory.

How it works

Upptime runs entirely on GitHub; there is no server.

  • Checks run in the Uptime CI workflow every 5 minutes, from the sites listed in .upptimerc.yml.
  • Incidents are issues. When a check goes down, Upptime opens an issue in this repository; when it recovers, Upptime closes it. Comments on the issue appear on the status page as incident updates.
  • Notifications go to Slack: one message when a check goes down or degrades, and one when it recovers. Nothing repeats while an incident stays open.
  • History is commits. Response times and status are committed to history/. The api/ and graphs/ folders hold the badges and charts, regenerated daily.
  • The status page is a static site that the Static Site CI workflow builds and publishes to the gh-pages branch, served by GitHub Pages at status.source.coop.

This is the outside uptime check (M4) in data.source.coop ADR-015. Cloudflare's own alerts cover failures inside the data proxy; this repository covers the case where Cloudflare itself, or everything, is unreachable.

Changing what we check

Edit sites in .upptimerc.yml and open a pull request; the next scheduled run picks up the change after merge. Prefer checks that need no credentials and touch objects Source controls. Use __dangerous__body_down_if_text_missing to assert on the response body, not only the status code.

Put [skip ci] in the message of every branch commit that changes .upptimerc.yml. Upptime's Setup CI runs on any push that changes that file, on any branch. Without [skip ci] it runs every check on the branch, commits the results there, and deploys that branch to the live site. The merge commit on master has no [skip ci], so the change still deploys once merged. Upptime regenerates its workflow files daily, so restricting the workflow to master wouldn't stick.

To post an update during an incident, comment on its open issue.

Styling

The page is styled from the Source Cooperative brand (ops-source brand/brand.json). Upptime copies everything in assets/ to the site root:

  • theme.css: colours. Ink on Bone, with Grass only for up status.
  • brand.css: fonts. IBM Plex Sans for body text; Berkeley Mono, loaded from the Radiant Earth CDN, for headings and labels.
  • The logomark, favicon, touch icon and share image, copied from the private ops-source repository.

Berkeley Mono is licensed, so never commit its font files here.

Setup

These are repository settings, not files:

Setting Value
Secret GH_PAT A token for this repository with the scopes in Upptime's guide
Secret NOTIFICATION_SLACK true
Secret NOTIFICATION_SLACK_WEBHOOK_URL The alerts channel's Slack incoming webhook
DNS (Route 53, source.coop) CNAME status → source-cooperative.github.io
Pages Deploy from gh-pages, custom domain status.source.coop, HTTPS enforced

License

Upptime is MIT-licensed.

About

Uptime monitor and status page for Source Cooperative (Upptime)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

Generated from upptime/upptime