#dev 2024-12-21

2024-12-21 UTC
gRegor, jimw, CRISPR and grufwub joined the channel
#
[Joe_Crawford]
New toy: bookmarklet to expose CSS custom properties and play with them. https://lab.artlung.com/root-color-properties-editor/
Kupietz joined the channel
#
Kupietz
[Joe_Crawford]++ Very nice!
#
Loqi
[Joe_Crawford] has 16 karma in this channel over the last year (114 in all channels)
jjuran and gRegor joined the channel
#
[snarfed]
capjamesg ooh you're getting into devops and SRE. fun! I love that stuff
#
[snarfed]
the big answer is observability, monitoring, log collectors and aggregators and metrics, etc
#
[snarfed]
...but if you're still on a single server, you can skip at least some of that
#
[snarfed]
what's your goal? are the log lines getting mixed up in your file, and you want to be able to see logs for a single request, or a single user, etc, at a time? or...
MyNetAz joined the channel
#
capjamesg[d]
I currently have to ssh into the server to get to my logs then grep / tail, etc.
#
capjamesg[d]
I'm using the logging library to print various pieces of debug information when downloading and parsing feeds.
#
capjamesg[d]
grep is technically fine but it also means that I need to work from my terminal and I would prefer a UI for this.
#
capjamesg[d]
Also: I haven't thought about grouping logs by user. Is there a best practice for that?
#
[snarfed]
yeah, you eventually want a more structured log aggregator
#
[snarfed]
remind me where you're hosting?
#
[snarfed]
if you want to dive in and learn a lot, the big established independent players in this space are eg Datadog, New Relic, Splunk, etc. and the big cloud providers all also have their own products
#
[snarfed]
if you want to go the more self hosted open source route, check out OpenTelemetry, Prometheus, etc
#
[snarfed]
(oh and Honeycomb)
#
[snarfed]
...but those are all pretty big. I don't have a small lightweight alternative to suggest, but you'd search for structured logging, distributed traces, log aggregator/browser, etc
#
capjamesg[d]
[snarfed] I'm hosting on Hetzner.
#
capjamesg[d]
My big reservation about cloud platforms is I am always worried I accidentally rack up a big bill.
#
superkuh
I like to look at my log files on my computers file system with a text editor and my flesh eyeballs.
#
superkuh
KISS.
#
[snarfed]
superkuh for projects where that works, I love it!
#
[snarfed]
...but of course it doesn't scale. eg Bridgy Fed logs ~600-800KB/s (~400-600 entries/s) right now. not manageable with text editor and eyes alone 🤷
#
superkuh
Yes. I rarely get over 5k hits/day. Above that it might become a bit too time consuming.
#
carrvo[d]
[snarfed] would Grafana (https://grafana.com/) be one too? Would it be lightweight?
#
carrvo[d]
[edit] [snarfed] would Grafana (https://grafana.com/) be one too? Would it be lightweight?
barnaby joined the channel
#
[snarfed]
Grafana is great! but no, probably not lightweight, it's another big observability platform
#
[snarfed]
maybe check if Hetzner has anything built in or recommended?
#
capjamesg[d]
[snarfed]++ for all of the suggestions.
#
Loqi
[snarfed] has 53 karma in this channel over the last year (99 in all channels)
#
capjamesg[d]
It's kinda cool to be running an app that others use!
#
capjamesg[d]
The app polls feeds once per day for each user.
#
[snarfed]
capjamesg++
#
Loqi
capjamesg has 41 karma in this channel over the last year (222 in all channels)
#
capjamesg[d]
This leads to an interesting situation wherein demand spikes in a select few timezones.
#
capjamesg[d]
The Americas and Europe comprise most users presently.
#
[snarfed]
common pattern for consumer apps!
#
capjamesg[d]
I have just sped up polling by like minutes too!
#
doesnm
btw where tokens.indieauth.com/quill/monocles are hosting?
#
aaronpk
i host those on linode