Logit.io
Which Prometheus label caused the active-series spike?
← Back to blog
11/24/2026 · 12 min read

Which Prometheus label caused the active-series spike?

Logit.io Team
Logit.io Team
Technical Content Team

Last updated 11/24/2026

How To GuidesGetting Started

To find which Prometheus label caused an active-series spike after a rollout, rank series by metric name for one job at two fixed times, then count the distinct values of the suspected label. Check pod replacement and scrape cadence before asking the service owner to change instrumentation.

Start with the daily peak in Infrastructure Metrics Statistics. Open Grafana with Launch Metrics and use Explore to narrow the change to a service. The figures below are example values for a checkout service. They end with a row you can paste into a ticket: the metric, the label, the affected panel and the exact times to compare.

Contents

Read the two numbers that changed

Active metrics and scrape interval

Open Statistics for the Infrastructure Metrics stack that received the checkout metrics. From the daily breakdown, record Active Metrics and Metrics per Minute for the day of the spike and for a comparable baseline day. Active Metrics is the day's maximum number of active time series that received values. Metrics per Minute is the rate at which metrics are sent. Keep the date and scope of those rows with your notes. Infrastructure Metrics Statistics

Take the rollout start and end times from the deployment record, in UTC with the date. Take the scrape interval before and after from the scrape configuration. If discovery or target settings also changed, record which replicas were scraped on each side of the rollout. A new target can create more series and send more samples. A shorter interval can send more samples from the same series. Both can happen at once, so check the deployment and configuration even when both Statistics figures rise together.

A PromQL instant query shows the series that match at one point in time. A query at 14:00 can miss a brief overlap later that afternoon. Statistics reports the day's maximum for the whole Metrics stack, based on series that received values. An instant query can also show a recent sample for a short time after the last scrape, depending on how the store keeps a series visible. Record the daily maximum and the 14:00 results separately. Do not replace the day's figure with a billing period. That changes the window and does not explain the difference in scope.

Logit Metrics stores data in VictoriaMetrics, not a Prometheus server. You still query it with PromQL-compatible MetricsQL in Grafana, and ingest goes to an endpoint such as this one:

https://your-stack-id-vm.logit.io

MetricsQL chooses a lookbehind window from the sample interval, and a latency offset can hide the most recent samples. When a series disappears from an instant query, check how long it remains visible on your own stack rather than assuming Prometheus lookback or stale markers. Infrastructure Metrics Storage

Locate the family in a bounded population

Rank series by metric name

From your Logit.io dashboard, choose Launch Metrics to open Grafana. Open Explore, select the Prometheus-compatible data source, switch to Code mode and choose Instant. Set an absolute time range that ends at the comparison timestamp, then read the table result. Record that evaluation time with the output. Use the same data source and selector at each timestamp. If you need to open Grafana for the first time, follow the first Grafana dashboard walkthrough. Data source and time controls are covered in Grafana Explore for Infrastructure Metrics.

topk(10, count by (__name__) ({job="checkout"}))

The inner count by (__name__) counts one entry per visible label set and groups those counts by metric name. The outer topk returns up to ten of those groups. It ranks by the number of series, not by how large the counters are or how fast they rise. In this example the counter has a single metric name. For a metric exposed under several names, such as a classic histogram, check the related names together. PromQL aggregation operators

Look for the metric whose count increased. A metric near the top can be large on both sides of the rollout and contribute little to the change. If a family appears in only one top-ten result, run a direct count over its selector at both times. It may have fallen below the cutoff in the other result. Keep both values with the family name so the owner can tell a sustained increase from a change in ranking. Use the PromQL cheat sheet to adapt the matchers and grouping.

Test the suspected label

Count distinct route values

count(count by (route) (http_requests_total{job="checkout"}))

The inner count has one row per route group and reports how many series are in each row. The outer count counts those rows, so a route present on both replicas contributes once. Inspect the inner count on its own to see which values appeared. If some series omit route or emit it empty, check those with this selector:

http_requests_total{job="checkout",route=""}

When the question is how many populated route values are present, use route!="" in the distinct-count query, and apply the same matcher at both times.

To inspect the shape of the labels, run a selector for the family on one instance and narrow it to the route or path prefix under investigation. In the checkout example the baseline has this label set:

{instance="checkout-1",route="/cart"}

Two later label sets on that same instance have these route values:

route="/cart/[redacted-a]"
route="/cart/[redacted-b]"

These are redacted fragments. In a handoff, keep the shared path prefix and mask dynamic segments, query strings and identifiers. That is enough for the owner to find the handler and check which value it emits.

The table below uses example values for a checkout service. It shows three independent scenarios with the same baseline. Times are in UTC on 24 November 2026. The rollout or cadence change starts at 14:01. Each listed route pairs with the instance and pod on the same line to make one label set. Every set also includes the metric name http_requests_total and job="checkout".

ScenarioEvaluation (UTC)Instance / pod and route label setsSeries in the familyDistinct routes
Baseline, all three scenarios14:00:00checkout-1 / checkout-old-1 · /cart, /checkout, /pay
checkout-2 / checkout-old-2 · /cart, /checkout, /pay
63
Raw paths replace templates14:07:00checkout-1 / checkout-old-1: /cart/demo-a, /cart/demo-b, /checkout, /pay
checkout-2 / checkout-old-2: /cart/demo-b, /cart/demo-c, /checkout, /pay
85
Old and new pods overlap14:03:00checkout-1 / checkout-old-1 · /cart, /checkout, /pay
checkout-1 / checkout-new-1 · /cart, /checkout, /pay
checkout-2 / checkout-old-2 · /cart, /checkout, /pay
checkout-2 / checkout-new-2 · /cart, /checkout, /pay
123
Old pods no longer visible14:04:00 and 14:07:00checkout-1 / checkout-new-1 · /cart, /checkout, /pay
checkout-2 / checkout-new-2 · /cart, /checkout, /pay
63
Faster scrapes only14:07:00checkout-1 / checkout-old-1 · /cart, /checkout, /pay
checkout-2 / checkout-old-2 · /cart, /checkout, /pay
63

Rule out pod churn and scrape cadence

Check for replaced pods. Run this query at the baseline, overlap and settled times, using the identity labels your collector emits:

count by (instance, pod) (http_requests_total{job="checkout"})

In this example both cohorts still appear at 14:03, so the family reaches 12 visible series. By 14:04 the old cohort is no longer in the instant result and the family returns to six. The route count stays at three at each of those evaluations. A checkout-only daily maximum could still reflect the 14:03 overlap, even though the 14:00 queries returned six series and three routes. If your family count drops back after the rollout and the original route values persist, the overlap is evidence of pod churn.

When a target is removed, an instant query can keep returning its last sample for a short time, then drop it. How long that lasts depends on the store. On Logit Metrics, VictoriaMetrics chooses a lookbehind window from the sample interval, so the overlap you see can include pods that have already stopped as well as pods that are still running. Check target history or sample timestamps before calling both cohorts live.

Check for unbounded paths. In the raw-path case the same pods and scrape interval persist. The two /cart template series drop out when the raw-path series start. The literal paths for /checkout and /pay happen to equal their templates. The family grows from six to eight series and the route count grows from three to five. If the real service behaves this way, confirm with the owner that the label is derived from the request path. A small set of observed suffixes can reveal a label whose possible values grow with traffic. The example uses made-up suffixes. The diagnosis depends on the shape and source of the label.

Check scrape cadence on its own. The cadence case keeps every label set and moves from one scrape every 30 seconds to one every 15 seconds. The settled one-minute windows in the example contain 12 and 24 samples respectively, with six series and three routes in both snapshots. In real data, check whether the interval changed for all the targets in scope and whether scrapes succeeded. Mixed intervals or missed scrapes can weaken the link between cadence and Metrics per Minute. For a job-level cross-check, use this query to count the stored samples from the counter in the preceding minute.

sum(count_over_time(http_requests_total{job="checkout"}[1m]))

Give the owner a safe next step

Panels, alerts and a comparison window

Find consumers of the metric before the owner edits it. Search dashboard queries, template variables, recording rules and alert expressions for the family name. Check for filters on route, grouping clauses and alert annotations that use the label. A panel filtered to /cart can go blank when it only receives the longer paths. A per-route alert can produce different instances if its expression starts returning the raw paths as distinct groups. Follow recording rule names through to any panels or alerts that use their output.

In this example, the affected panel is Checkout requests by route. Its grouping changes from /cart, /checkout and /pay to /cart/demo-a, /cart/demo-b, /cart/demo-c, /checkout and /pay. Both replicas contribute to the same /cart/demo-b group. The panel calculates a rate on each input counter, then adds those rates by route. The one-minute window suits these example scrapes. Keep the existing panel window when you validate the live query.

sum by (route) (rate(http_requests_total{job="checkout"}[1m]))

Send the owner a row like this one. Use your actual dashboard and panel names, keep the UTC timestamps, and include the bounds of any rate window needed to reproduce what you saw.

Job and familyChanging label and evidenceAffected panel and groupingExact comparison timesChange to review
checkout / http_requests_totalroute. Family series 6 → 8, route values 3 → 5, same pods and 30-second scrapes.Checkout requests by route, grouped by route. The /cart group splits into the three raw paths in the example.24 Nov 2026 UTC. Before 14:00:00, after 14:07:00. Panel windows end at these times and start at 13:59:00 and 14:06:00 respectively.Emit the matched /cart template when incrementing the counter.

Ask the owner to set route from the matched handler template at instrumentation time. The application can then increment one counter per intended label set from the start. If you drop route from counters that have already been emitted, every route counter on an instance with the same remaining labels gets the same identity. Rewriting several raw paths to /cart after emission has the same problem for those paths. Samples can collide at the same timestamp, or alternating writes can look like jumps or resets in one counter. The independent counters have already accumulated their own values, so a label edit cannot combine them into a valid cumulative stream. If you need to drop or rewrite labels before the data is stored, ask Logit.io support about filtering on the Metrics stack.

For the fix, agree a comparison window after the new replicas are ready, the old series have dropped out of instant queries, and the panel's rate window contains fresh samples from the new counters. Use baseline and post-deployment windows of the same duration, with comparable replica coverage and enough traffic to exercise the expected handlers. Record both endpoints. Rerun the instant queries at the exact start and end of that window. Check that the expected route groups have samples, compare the request rate with the baseline at similar traffic, and review whether existing alerts still evaluate for the routes they cover. If an alert goes empty, run its expression again and check its route matcher against the template values now emitted. Then compare the daily Statistics row for the next rollout with the baseline day. The daily peak can still include a short overlap earlier in the rollout.

Frequently asked questions

The top-ten query

It gives you metric names ordered by their visible series counts. It does not tell you which label grew. Use the inner route count to see group membership and compare the label values at both times. If the route count is flat while the family grew, check other identity dimensions together. More replicas can serve the same routes, and different combinations of values can produce more series even when individual distinct counts stay flat.

A later drop in the count

Check whether the old targets stopped emitting and their series dropped out of the instant query. Compare the distinct route values and group the family by pod at each timestamp. In the pod example, the 14:03 and 14:07 snapshots capture the overlap and the settled population. The stack's daily peak can still show the earlier activity.

The free trial

Yes. The free trial includes every feature, including a Metrics stack, Grafana and Infrastructure Metrics Statistics. Send metrics to a trial Metrics stack so you have a baseline and a deployment window to query. Getting started with the Logit.io trial.

Next steps

Send the comparison row to the service owner and agree when to check the panel and alerts after their instrumentation change. On the next rollout, use the same job and timestamp selection in Explore, then return to the daily breakdown to compare both usage figures with your baseline. Compare the next rollout in Infrastructure Metrics Statistics.

Start Free Trial

Unlock complete visibility with hosted ELK, Grafana, and Prometheus-backed Observability

Start Free Trial

Get the latest Elastic Stack & logging resources when you subscribe

Want to see this in action?
Start a free trial and connect logs to your alert workflows.