Live data from Hacker News

Upptime – GitHub-powered open-source uptime monitor and status page

upptime.js.org

61–70 of 86 posts

Re: Upptime – GitHub-powered open-source uptime monitor and status page

#61
post #51
post #50

Earlier quoted context omitted.

Although if github is down it is also possible you'll be able to do little to fix your site anyway :D

This is the reason why there should always be break-glass options to deploy to production for emergency circumstances, and well known protocols to follow when something like this is required.

Yep. All my deployments I set up so they can be run from anywhere (with the right deps and auth), even though I rarely need to use it. Makes it easier to test deployment processes too.

Re: Upptime – GitHub-powered open-source uptime monitor and status page

#62
post #37

As a proof of concept this is fascinating, and I'm thankful the author chose to share it. It's got me thinking of how I might otherwise leverage Github Actions in unconventional ways. Acknowledging the potential abuse implications that others have mentioned in the comments, it's still a mind-expanding PoC that's going to make me think about things a little different in the future.

> It's got me thinking of how I might otherwise leverage Github Actions in unconventional ways.

I'm glad! I've been using GitHub Actions for many interesting things apart from building Upptime, like:

  - COVID-19 nonprofit work: https://github.blog/2020-08-13-github-actions-karuna/
  - Open-sourcing all my life data: https://github.com/AnandChowdhary/life
  - Open-sourcing my GitHub notifications: https://github.com/AnandChowdhary/backlog
  - Converting all Twitter "following" to lists: https://github.com/AnandChowdhary/twitter-list-sync
  - Writing notes and generating a summary: https://github.com/AnandChowdhary/notes

Re: Upptime – GitHub-powered open-source uptime monitor and status page

#63

Maker here, I made Upptime as a way to scratch my own itch... I wanted a nice status page for Koj ( https://status.koj.co ) and was previously using Uptime Robot which didn't allow much customization to the website. It started with the idea of using GitHub issues for incident reports and using the GitHub API to populate the status page. The obvious next step was opening the issues automatically, so the uptime monitor…

Interesting project and great docs!

Can you point out the code responsible for executing the http connection? If it at all modularized, I'd like to plugin code for a different kind of check.

(Are you thinking of supporting customized checks through plugins?)

Re: Upptime – GitHub-powered open-source uptime monitor and status page

#64

Maker here, I made Upptime as a way to scratch my own itch... I wanted a nice status page for Koj ( https://status.koj.co ) and was previously using Uptime Robot which didn't allow much customization to the website. It started with the idea of using GitHub issues for incident reports and using the GitHub API to populate the status page. The obvious next step was opening the issues automatically, so the uptime monitor…

Interesting project and great docs! Can you point out the code responsible for executing the http connection? If it at all modularized, I'd like to plugin code for a different kind of check. (Are you thinking of supporting customized checks through plugins?)

This is where the `curl` happens: https://github.com/upptime/uptime-monitor/blob/master/src/he...

It is utilized by this function here: https://github.com/upptime/uptime-monitor/blob/master/src/up...

If you're thinking about different checks, perhaps you can explore this too? I have no idea where to start... https://github.com/upptime/upptime/discussions/73

Re: Upptime – GitHub-powered open-source uptime monitor and status page

#65

Maker here, I made Upptime as a way to scratch my own itch... I wanted a nice status page for Koj ( https://status.koj.co ) and was previously using Uptime Robot which didn't allow much customization to the website. It started with the idea of using GitHub issues for incident reports and using the GitHub API to populate the status page. The obvious next step was opening the issues automatically, so the uptime monitor…

https://news.ycombinator.com/item?id=25557032 mentions "~3000 minutes per month". GitLab's new pricing structure: [(runner_minutes, usd_per_month), (400, $0), (2_000, $4), (10_000, $19), (50_000, $99)]

You can run a self-hosted GitHub or GitLab Runner with your own resources: https://docs.github.com/en/free-pro-team@latest/actions/host...

GitLab [Runner] also runs tasks on cron schedules.

The process invocation overhead for CI is greater than for a typical metrics collection process like a nagios check or a memory-resident daemon like collectd with the curl plugin and the "Write HTTP" plugin (if you're not into using a space and time efficient timeseries database for metrics storage)

An open source project with a $5/mo VPS could run collectd in a container with a config file far far more energy efficiently than this approach.

Collectd curl statistics: https://collectd.org/documentation/manpages/collectd.conf.5....

Collect list of plugins: https://collectd.org/wiki/index.php/Table_of_Plugins

Is there a good way to do {DNS, curl HTTP, curl JSON} stats with Prometheus (instead of e.g. collectd as a minimal approach)?

Re: Upptime – GitHub-powered open-source uptime monitor and status page

#66

Maker here, I made Upptime as a way to scratch my own itch... I wanted a nice status page for Koj ( https://status.koj.co ) and was previously using Uptime Robot which didn't allow much customization to the website. It started with the idea of using GitHub issues for incident reports and using the GitHub API to populate the status page. The obvious next step was opening the issues automatically, so the uptime monitor…

Interesting idea, and props for well-executed landing page at Koj!

Personally I’m way of relying on GHA too much (I have a suspicion they might start introducing restrictions), but if it works it works.

I see you’re also using TypeScript, so I’m definitely taking a long look at your github-actions-starter (thanks for sharing).

Re: Upptime – GitHub-powered open-source uptime monitor and status page

#67
post #40

Earlier quoted context omitted.

They will for this too. Github actions aren't free. They just have a generous free tier.

No. Actions is 100% free for public repos. Full stop.

Currently, of course. Travis used to be free for oss-projects too.

I suspect Microsoft is less interested in making a profit on every single part of the github ecosystem, and less likely to change the pricing/limits for actions. But of course only time will tell.

Re: Upptime – GitHub-powered open-source uptime monitor and status page

#68

Maker here, I made Upptime as a way to scratch my own itch... I wanted a nice status page for Koj ( https://status.koj.co ) and was previously using Uptime Robot which didn't allow much customization to the website. It started with the idea of using GitHub issues for incident reports and using the GitHub API to populate the status page. The obvious next step was opening the issues automatically, so the uptime monitor…

Interesting idea, and props for well-executed landing page at Koj! Personally I’m way of relying on GHA too much (I have a suspicion they might start introducing restrictions), but if it works it works. I see you’re also using TypeScript, so I’m definitely taking a long look at your github-actions-starter (thanks for sharing).

> Interesting idea, and props for well-executed landing page at Koj!

Thanks so much! This isn't Koj's "Show HN" (expect that soon!), but we're doing some interesting stuff, both tech- and "home and living"-wise. Happy to hear any additional feedback for koj.co as well!

> I have a suspicion they might start introducing restrictions

I definitely think so, unlimited minutes for all public repos can only be sustainable with many many paid orgs buying expensive minutes. If restrictions kick in, I think I'll keep the "GitHub issues to status page" part of Upptime and have some integrations with self-hosted monitors or third-party services that then open those GitHub issues automatically.

> I see you’re also using TypeScript, so I’m definitely taking a long look at your github-actions-starter (thanks for sharing).

Enjoy! We're using Svelte and TypeScript everywhere at Koj, we also have some other starters here if you're interested: https://github.com/koj-co.

Re: Upptime – GitHub-powered open-source uptime monitor and status page

#70
Might be a little off-topic, but I don't understand why monitoring solutions are both so expensive and simultaneously tend to offer such a low resolution. HTTPS-calls aren't particularly computationally expensive, why does 10s or lower poll intervals not exist for cheap? I expect that for most of these monitoring services, redundancy and fixed development costs are much more expensive than the actual underlying infra, so the marginal cost of extra HTTP calls is probably low. Why not offer high resolution as an offering to set you apart from the competition?
Post reply on HN