News for hackers. Stuff that matters.
Re:Show HN: Automated Health Dashboard by akeck on Thursday September 03, 2020 @12:55PM (#24366028)
The dashboard abbreviates "minutes" with "ms", but to me that reads "milliseconds". I think it should probably use "min".
Re:Show HN: Automated Health Dashboard by TwinProduction on Thursday September 03, 2020 @01:51PM (#24366632)
I don't remember abbreviating minutes with ms, could you please tell me where you're seeing this so that I can fix it?
Re:Show HN: Automated Health Dashboard by ShakataGaNai on Thursday September 03, 2020 @05:52PM (#24369287)
I don't see ms in place of min either. Maybe the OP was confused by the response time range. Ex: 2-12ms. There is no explanation or other text other than the numbers.

That being said. Maybe that can be a more detailed popup as well. Avg response, mean, median, min/max.

Re:Show HN: Automated Health Dashboard by akeck on Friday September 04, 2020 @01:02PM (#24376738)
https://status.twinnation.org/

The time ranges use "ms", but the actual timestamps indicate the gap is minutes.

Re:Show HN: Automated Health Dashboard by TwinProduction on Sunday September 06, 2020 @12:17AM (#24388932)
Ah, the range that you're seeing on the top right corner of each service is the minimum and maximum response time.

The time on the bottom left is how long ago the oldest status is, while the one on the right is how long ago the latest status is from.

Re:Show HN: Automated Health Dashboard by ilyas121 on Thursday September 03, 2020 @02:53PM (#24367392)
I got really excited that this was an nice open source way to track my physical human health metrics over time. Oh well, I guess this just means I have to make one now.
Re:Show HN: Automated Health Dashboard by zhs on Thursday September 03, 2020 @04:07PM (#24368278)
Same! If you haven't already come across it https://gyrosco.pe/ might be worth a look.
Re:Show HN: Automated Health Dashboard by ilyas121 on Thursday September 03, 2020 @08:02PM (#24370274)
Love this, just wish I could run it locally offline :(
Re:Show HN: Automated Health Dashboard by O_H_E on Thursday September 03, 2020 @10:44PM (#24371233)
Oh damn, same.
Re:Show HN: Automated Health Dashboard by EE84M3i on Thursday September 03, 2020 @11:43AM (#24365121)
I think it would be helpful if this said at the top of the readme what it's checking the health of. Looks like HTTP services maybe? HTTPS? TCP?
Re:Show HN: Automated Health Dashboard by mqus on Thursday September 03, 2020 @12:08PM (#24365474)
Yeah, I first thought it was about monitoring my health, aka fitness, pulse measurement etc. :D

But that particular line of thought is cleared up in the second sentence.

Re:Show HN: Automated Health Dashboard by TwinProduction on Thursday September 03, 2020 @12:31PM (#24365734)
Who knows, maybe in the next version, you'll be able to link up your heart rate monitor.

(I'm joking, of course, unless this somehow becomes a serious use case at some point xD)

Re:Show HN: Automated Health Dashboard by monkeydust on Thursday September 03, 2020 @10:32AM (#24364448)
interesting - I deployed https://healthchecks.io/ to a few boxes this morning which pings me in case of downtime based on heartbeat curl calls to designated URL. Works well.
Re:Show HN: Automated Health Dashboard by dewey on Thursday September 03, 2020 @08:49AM (#24363491)
Maybe I'm misunderstanding it but what's the difference to using Grafana / Prometheus / Alertmanager?

I see the tool itself exposes the Prometheus metrics endpoint so I guess Prometheus already exists in your stack.

Re:Show HN: Automated Health Dashboard by TwinProduction on Thursday September 03, 2020 @08:56AM (#24363544)
While Grafana allows you to monitor metrics provided by Prometheus and Alertmanager allows you to configure alerts also based on these metrics, Gatus allows you to directly monitor your service(s) by sending requests to them at interval and evaluating the conditions that make your service(s) "healthy".

As mentioned in the README, Gatus can double as automated user acceptance tests to check if, for instance, an endpoint that you expect to return X has Y instead.

Let me know if that's not clear enough, I can provide more a in-depth example :)

Re:Show HN: Automated Health Dashboard by rurounijones on Thursday September 03, 2020 @09:16AM (#24363718)
I think the keyword you might want to add to your README is "Canary".

This can refer to a deployment tactic or a system that actively tests systems in the manner that this system does. So that you can be notified of client-side facing issues that might not be visible server-side without relying on actual clients to beat down the door and shout at you.

Re:Show HN: Automated Health Dashboard by tomaaron on Thursday September 03, 2020 @09:08AM (#24363643)
I like the simple UI and visualization of the timeline! It kinda reminds me of the Prometheus Blackbox exporter. I think you can achieve similar acceptance tests. See https://github.com/prometheus/blackbox_exporter
Re:Show HN: Automated Health Dashboard by oauea on Thursday September 03, 2020 @09:19AM (#24363739)
Isn't that similar to using https://github.com/prometheus/blackbox_exporter with prometheus, alertmanager and grafana?
Re:Show HN: Automated Health Dashboard by TwinProduction on Thursday September 03, 2020 @09:30AM (#24363837)
I honestly didn't even know that was a thing. That said, it looks like it doesn't support JSONPath out of the box, though I was able to find a plugin that should allow you to parse JSON. I'm not sure how that would work out, but the point is that this is all-in-one.

Beyond just that, the resource usage of Gatus is significantly lower than running Grafana, Prometheus and alertmanager individually - much less running all of them at the same time.

My personal Kubernetes cluster is quite limited in resources after all, and running Prometheus does make that resource pool even smaller than it already is :p

That said, even for clusters that don't have similar resource restrictions, I find that having all of this together in a single application makes it a lot easier to manage, though I guess that's up to the individual :)

Re:Show HN: Automated Health Dashboard by rid on Thursday September 03, 2020 @08:46AM (#24363464)
This is great! Nice work. I would add one feature request which is the ability to monitor from multiple locations. Otherwise it's a SPOF and you'll never receive a notification if your whole cluster is down.
Re:Show HN: Automated Health Dashboard by s09dfhks on Thursday September 03, 2020 @05:06PM (#24368907)
docker run -p 8080:8080 --name gatus gatus

Unable to find image 'gatus:latest' locally

docker: Error response from daemon: pull access denied for gatus, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. See 'docker run --help'.

Re:Show HN: Automated Health Dashboard by ShakataGaNai on Thursday September 03, 2020 @05:53PM (#24369301)
You have to build it, for it to run with that name. To skip the build step you probably want:

docker run -p 8080:8080 --name gatus twinproduction/gatus

So it'll pull from docker hub.

Re:Show HN: Automated Health Dashboard by TheCowboy on Thursday September 03, 2020 @03:33PM (#24367845)
Do any general purpose dashboard libraries/frameworks exist that people like/recommend?
Re:Show HN: Automated Health Dashboard by Reelin on Thursday September 03, 2020 @05:05PM (#24368892)
It would be nice if I didn't have to allow third party scripts (from bootstrapcdn and googleapis in this case) in order to view the dashboard. Is there some technical reason the health page can't be entirely first party? (This comment is based on the example status page you linked.)
Re:Show HN: Automated Health Dashboard by TwinProduction on Sunday September 06, 2020 @01:04AM (#24389109)
I originally wanted to serve as little content as possible to reduce the resource usage as much as possible, but tbh, it's probably not necessary.

I just took care of it: https://github.com/TwinProduction/gatus/commit/e31c017a007fe...

This change will be available from v0.1.3

Re:Show HN: Automated Health Dashboard by colsandurz on Thursday September 03, 2020 @02:05PM (#24366807)
Does this work with Apple Health?? Is there an easy way to get data out of Apple Health?
Re:Show HN: Automated Health Dashboard by dewey on Thursday September 03, 2020 @02:22PM (#24367044)
If you export the health data (It's possible), expose it through some http service and then scrape it with that tool it'll work.

If it's the right tool for the job is the more important question.