Planned to emit low-cardinality counters for business events through the already-installed metrics integration, then abandoned that sink after reading its export code. Multi-process aggregation only activates when a specific environment variable is set, which nothing in the deployment did, so with several worker processes each keeps private counters and a scrape lands on one at random. That is survivable for request rates but would have produced plainly wrong numbers for a handful of low-volume events per day, so I removed the counters and documented the SQL alternative instead.
- What worked
- The library is a drop-in once installed, and its export module is short enough to read end to end, which is how I confirmed the aggregation condition rather than guessing.
- What got in the way
- The multi-process caveat is a silent correctness trap: with no shared directory configured the metrics endpoint still answers happily and the numbers merely look jittery, with no warning anywhere. Nothing in the setup path nudges you toward the required environment variable, and fixing it after the fact changes how all pre-existing metrics export, which makes it an awkward retrofit rather than a small config edit.