SShortSingh.
Back to feed

A single order ID label crashed a metrics server and killed payment monitoring

0
·1 views

A developer added an order ID as a label to a metrics counter on a Friday to track individual customer orders through a queue. Because order IDs are unique — around 60,000 generated daily across four services — the change caused active time series to explode from 1.1 million to 14 million within three days. The metrics server began crashing in a restart loop by Sunday evening, and by Monday morning the team had no monitoring during a live payments incident. Engineers stopped the bleeding by dropping the label at the scrape layer before redeploying the application, then introduced series budgets, CI checks blocking high-cardinality label names, and a dashboard showing series counts per metric. The incident highlighted that unique identifiers belong on traces or exemplars, not on metric label dimensions where they multiply storage costs across every existing label combination.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Dantiva Creator Shares Hard Lessons From Building an AI Video App for Russian Users

A solo developer built Dantiva, an AI-powered tool that converts photos into short video clips using Google's Veo and Gemini models, accessible via a website, Telegram bot, and Telegram Mini App. The product targets Russian-speaking users who face barriers accessing Western creative tools, offering ruble payments and receipts through a familiar Telegram interface. While the core AI integration was straightforward, the developer says the bulk of the effort went into building surrounding infrastructure — accounts, token ledgers, templates, legal pages, and an admin panel. A key technical challenge was unifying identity and token balances across three separate entry points, a problem that took roughly a month to solve and still surfaced a UI bug on September 19 that incorrectly showed unlimited-access users a paid balance. Paid subscriptions launched on September 18, and the developer notes that actual purchase data over the coming weeks will be the real test of whether the market hypothesis holds.

0
ProgrammingDEV Community ·

Claude Code Silently Compacts Context at 160K Tokens, Dropping Critical Session Memory

Claude Code, Anthropic's AI coding agent, automatically triggers context summarization when a session reaches approximately 160,000 tokens — about 80% of its 200,000-token limit. During this process, the middle portion of the conversation is condensed into a prose summary and original messages are discarded without any visible warning to the developer. The summarization preserves recent exchanges and the system prompt but loses detailed reasoning chains, rejected approaches, and edge cases discovered earlier in the session. This silent compaction can cause the agent to produce code that violates constraints it had previously acknowledged, leading to subtle but costly errors in production. Developers are advised to externalize critical constraints and decisions into persistent artifacts — such as decision logs or constraint manifests — to maintain continuity across compaction boundaries.

0
ProgrammingDEV Community ·

Developer Builds Offline AI Tool That Converts Static HTML Sites Into WordPress Themes

A developer has created a local AI-powered tool that automatically converts static HTML websites into installable WordPress themes without requiring cloud services, API keys, or paid subscriptions. The tool uses Gemma 2B, a lightweight local language model, combined with Retrieval-Augmented Generation (RAG) to detect and map HTML components such as headers, footers, and navigation into standard WordPress template files. DOM parsing and heuristics work alongside the AI to handle varied HTML structures, while the original CSS is preserved to maintain responsive layouts across devices. Users point the tool at a folder of HTML files, and it outputs a ready-to-install ZIP containing all necessary WordPress theme files including functions.php, header.php, and style.css. The tool runs entirely on the user's machine after a one-time model download, making it a cost-free alternative to manual theme conversion or cloud-based solutions.

0
ProgrammingDEV Community ·

10 Essential Linux Terminal Commands Every Beginner Should Know

A beginner-focused guide published on DEV Community outlines ten fundamental Linux terminal commands for new users. The list covers file navigation and management tools such as ls, pwd, and cp, which help users browse directories and copy files. Utility commands like df -h, cat, and clear allow users to check disk space, view file contents, and tidy the terminal screen. Additional commands including whoami and history let users identify the active account and review past terminal activity. Together, these commands form a practical foundation for anyone starting out with the Linux command line.

A single order ID label crashed a metrics server and killed payment monitoring · ShortSingh