Ask HN: Hosting on Digital Ocean, any advice for monitoring and deployments?

15 points by hershyb_ 2 days ago

I'm moving over from Lambda to Digital Ocean since I found it much easier to test locally and iterate. Unfortunately, I'm not too savvy with setting up monitoring so I can see how often failures are happening and how to smoothly deploy changes on DO. I currently have a setup where I pull each individual change into my instance and re-run docker-compose build etc. Would love to learn more about what tools have helped you for logging/monitoring/deployments

babyent 3 hours ago

I use DO as well and I use GitHub actions.

My backend is node-ts and a couple Go programs.

Via actions I can restart pm2, build Go, restart those services, and it works great.

As for monitoring, I’m just relying on the DO resource alerts. They’re fine for my needs.

Sorry if it’s too basic. Your needs may very well be different.

I’m trying to keep my setup as simple as possible since I’m solo right now. I used to be a platform engineer before and I don’t think I need anything fancier until I have a few hundred plus customers (b2b) and a dozen employees. Could be wrong, but it’s a full time job doing anything more imo.

Hammad_khaan 2 days ago

Think of your app like a video game—tools like Prometheus and Grafana are your scoreboard and stats screen, showing what's up with your game. For smoother moves (deployments), try GitHub Actions or Jenkins; they’re like power-ups for easy leveling!

_jsdp 2 days ago

If your app is instrumented with OpenTelemetry, I'd really recommend something like SigNoz (https://signoz.io/) or Axum (https://axiom.co/) (or even https://baselime.io but their application is a mess to work with)

1. Axiom has a generous free plan (not sure if it's self-hostable) 2. SigNoz has an easy to work with self-hosting setup but also cloud solution.

If it's just logging, you can still forward your logs to these platforms but having OTel really goes a long way (from debugging and vendor selection POV).

lazypenguin 2 days ago

Grafana cloud, install agents, pretty dashboard. Can add custom prom ingestor to load application logs. Sleep good. Feel confident, look at grafana alerts. Cry much. Finally learn promql, pro dashboards, sleep good again.

Seriously though grafana cloud with their agents is pretty easy and affordable. Grafana family of products kind of have a learning curve but they work very well.

  • raihansaputra 2 days ago

    Agents are being deprecated and now moving to Grafana Alloy

    but agree. a bit steep, but easy to start with. Grafana cloud can take you really far. (you don't really need all metrics for all running services do you?)

    I wish they have built in ping scraper instead of having to run yet another service to do it.

raihansaputra 2 days ago

On deployment side, Portainer seems to fit your needs. Can run arbitrary containers and docker-compose stacks, but unsure whether it can do image builds on the server.

satvikpendem 2 days ago

For deployment, you could look at Coolify or Dokploy.

sgdh 2 days ago

[dead]