How to Track and Analyze Usage Growth for LLM Services: Metrics, Methods, and Pitfalls
This article explains how to define, measure, and interpret usage growth for large language model (LLM) services. It covers the need for unified metric definitions, a three-layer metric hierarchy, growth rate vs. absolute increment, period and baseline effects, structural change detection, data pipeline implementation, common misjudgments, and practical steps for building a reliable monitoring framework.
Why Unified Metric Definitions Come First
Usage data for LLM services typically comes from multiple channels: web pages, API calls, client applications, and internal tasks. Each channel measures activity differently, so the same term “visits” may refer to completely different things in different reports. Some track page views, some track unique users after deduplication, and others count API requests. Comparing these numbers directly often leads to invalid conclusions.
The first step in any analysis is therefore to define the metrics precisely. Teams should document where each metric is collected, how deduplication is applied, the time window, and which conditions are excluded before comparing trends or making cross-channel judgments.
A Three‑Layer Metric Framework
Usage metrics can be grouped into three layers.
Entry layer: Page views (PV), unique visitors (UV), and session starts. These reflect reach and are most sensitive to marketing and channel changes.
Invocation layer: API request counts, request success rates, and token consumption. These reflect real usage intensity from developers or enterprise systems and are closely tied to billing and capacity planning.
Function layer: Execution counts for specific capabilities (e.g., code generation, image processing, agent tasks). These show which features are actually used and are useful for product iteration.
The layers are related, but the relationship is not fixed. Higher page views do not guarantee higher API calls. Higher API calls may not indicate more users, because a single user can issue many requests in a short period.
Growth Rate vs. Absolute Increment
Growth rate measures the relative change between consecutive periods:
Growth rate = (current value – previous value) / previous value × 100%
Absolute increment is simply current – previous. The two answer different questions: the rate shows how fast something changed, while the increment shows how much it actually grew.
They often diverge. A service with a small base can show high growth even if the added volume is small. A large service may show only a few percent growth while adding a huge absolute number. Reporting only one of the two can mislead. The standard practice is to present both, along with the previous baseline.
The following Python code demonstrates the calculation (sample data is fictional and only for illustrating the logic):
def growth_metrics(current: float, previous: float):"""Returns the period-over-period growth rate (%) and absolute increment.Returns (None, delta) when previous is 0."""delta = current - previousif previous == 0:return None, deltarate = delta / previous * 100return rate, deltasample = {"Page views": (1200, 1100),"API calls": (560, 480),}for name, (cur, prev) in sample.items():rate, delta = growth_metrics(cur, prev)print(f"{name}: growth rate {rate:.2f}%, increment {delta}")
Output: Page views grow 9.09% (increment 100), API calls grow 16.67% (increment 80). The API calls grow faster, while page views have a larger absolute increase. Both conclusions are valid, depending on the purpose of the analysis.
Baseline Effects and Period Selection
Besides the baseline, the time period also matters. Months contain 28 to 31 days, so comparing monthly totals directly can be misleading. In such cases, daily averages should be computed as well. Holidays, version releases, and promotional activities can cause short‑term fluctuations.
Recommended practices:
- Report both daily averages and period totals, and note the number of days in each period.
- Compare year‑over‑year data to remove seasonality.
- Mark release or event dates on charts to explain sudden spikes or drops.
Identifying Structural Changes
Aggregate growth can hide internal shifts. For instance, overall usage may stay flat, but one channel drops while another rises, indicating that users are migrating. Detecting such shifts requires two types of breakdown.
Dimension breakdown: Split by channel, geography, device type, customer size, etc.
Behavior breakdown: Track the share of new vs. retained users, and the change in average calls per user.
After splitting, check whether the sum of subset increments equals the total increment. If not, there is likely duplicate counting or inconsistent definitions. Correct the data before drawing conclusions.
Data Collection and Engineering Implementation
Reliable usage analysis depends on the data pipeline. A typical setup includes:
- Instrumentation and logs: Record request timestamps, service type, anonymized user identifiers, and response status at the gateway or service entry.
- Storage and computation: Store raw logs in object storage, partitioned by day. Use batch or stream processing to generate aggregated metric tables.
- Monitoring and alerting: Set thresholds and fluctuation alerts on key metrics, e.g., notify an owner when the period‑over‑period drop exceeds a configured ratio.
- Visualization: Dashboards display entry, invocation, and function metrics in layers, with metric definitions kept accessible.
An example aggregation query:
SELECTDATE_TRUNC('month', event_time) AS stat_month,service_type,COUNT(DISTINCT user_id) AS unique_users,COUNT(*) AS request_countFROM service_access_logWHERE event_time >= '2026-01-01'GROUP BY 1, 2ORDER BY 1, 2;
In this query, user_id should be a hash value after anonymization. Logs should not retain personally identifiable information, and access permissions should follow the principle of least privilege.
If you use a cloud platform such as Baidu AI Cloud, you can leverage its general object storage, log service, and monitoring/alerting features to build the pipeline described above. These are common cloud computing capabilities. Choose the components based on data volume, retention period, and cost requirements.
Common Misinterpretations and How to Avoid Them
- Only looking at growth rate, ignoring absolute increment. Show both, and note the baseline.
- Directly comparing numbers from different sources. Unify definitions first, and state the definitions in the report.
- Treating correlation as causation. Two metrics rising together does not mean one causes the other. Use layered analysis or controlled experiments to verify.
- Ignoring data delay. Recent data may not be fully ingested. Wait until the data is stable before publishing conclusions.
- Sample bias. Counting only logged‑in users excludes anonymous visitors.
Practical Recommendations
To build a usage analysis framework, proceed in this order:
- Define metric definitions clearly.
- Set up the collection and aggregation pipeline.
- Design layered dashboards (entry, invocation, function).
- Regularly review anomalous fluctuations.
Document every step so new team members can understand the historical data.
The goal of analysis is to support decisions. Every conclusion should address a specific question, such as whether capacity is sufficient, which features need more investment, or why a channel dropped.
