summaryrefslogtreecommitdiffstats
path: root/notes
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-10 16:09:50 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-10 16:09:50 -0800
commit60d39b2f9923bf1b9d659f2f4dad223ec565466a (patch)
treeb992730fe230bec74744db4babd3f1eff83f180b /notes
parent5a31f1181e9a86aa91e95be87ac386731ce219cd (diff)
downloadfatcat-60d39b2f9923bf1b9d659f2f4dad223ec565466a.tar.gz
fatcat-60d39b2f9923bf1b9d659f2f4dad223ec565466a.zip
crude metrics integration (only a handful for now)
Diffstat (limited to 'notes')
-rw-r--r--notes/rust_libraries.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/notes/rust_libraries.txt b/notes/rust_libraries.txt
index 7e6f33eb..d5c8c18a 100644
--- a/notes/rust_libraries.txt
+++ b/notes/rust_libraries.txt
@@ -8,6 +8,28 @@ libs:
- cadence (emits statsd)
- frank_jwt and JWT for (simple?) auth
+metrics:
+- best would be something with a configurable back-end, like 'log' for logging,
+ but supporing tags/labels. the prometheus model probably makes most sense by
+ default (really nice to be able to grab metrics with 'curl'/browser for
+ individual instances), but statsd seems to be what we run in production. not
+ spewing out lots of UDP by default seems like a good idea.
+- dipstick: has all the good features, and popular, but code quality has smells
+ ("a32dlkjhw"-style commit messages), and API doesn't seem very clean. Also
+ prometheus stuff not actually implemented
+- cadence: seems stable, somewhat popular, clean API. statsd-only for now, but
+ has custom backends that could be hooked on to. *super* few dependencies,
+ nice.
+- tic: many deps; doesn't seem stable or under development
+- rust-prometheus: developed by pingcap (large company). has push and pull
+ features. medum-sized deps; has feature flags
+
+A nice feature of a statsd solution is that collectd is usually running
+locally (on linux dev, or in production), and metrics can be sent there by
+default, like journald for logging.
+
+Seems like a decision between cadence (statsd) and rust-prometheus.
+
similar:
- https://github.com/DavidBM/templic-backend
- https://github.com/alexanderbanks/rust-api