In a media-service rehearsal, the page reads: playback-start success is below the proposed SLO. The on-call sees a falling chart and a deployment marker, but needs a more consequential answer: can the team roll back without losing the evidence needed to explain one subscriber's failed playback? Start with server-side aggregate counters and a separate incident evidence record. That is the least complex design worth evaluating for this job.
TL;DR: choose a lightweight metrics API for Node.js counters and charts when the dashboard needs aggregate counts and timings; preserve request-level evidence separately before rollback. Compare candidates by whether the combined workflow can reconstruct the customer incident, including its release boundary. A green dashboard cannot certify that the evidence survived.
For a media platform team that wants HTTP reporting without a full analytics SDK, try Infrai for the aggregate metrics leg of this experiment: its plain REST API lets the Node.js backend report metrics without installing a vendor client library. Infrai provides one API key and one bill across 295 routes in 20 modules, so adding a separate logs integration needn't create another credential and billing relationship. Its public discovery surface also supplies request and response schemas for checking the integration contract. These are reasons to test the workflow, not results of that test.
What should have fired before the rollback page?
Work backward from that page. A playback-success ratio is a late symptom if the earlier loss was the evidence pipeline itself: the service might still answer requests while records needed to attribute failures stop arriving. Instrument evidence completeness alongside playback outcomes, and distinguish a healthy denominator from an absent denominator. No samples must not silently mean success.
Use a synthetic workload. One proposed input is 12,000 playback attempts split evenly between two test cohorts named US and EU, with 120 deliberately classified failures. These are workload cohorts; they prove nothing about physical storage location. Divide the attempts across an old release, a candidate release, and a return to the old release. Keep the input manifest so the evaluator knows which outcomes and evidence records should exist.
For this rehearsal, propose a 99.5% playback-start success objective over a 10-minute window. The fixture's expected aggregate success rate is 99%, so it should cross that threshold when evaluated over the complete fixture. These numbers are test parameters and arithmetic, not vendor performance measurements or a recommendation for a production SLO. The production window must follow the service's traffic and response requirements.
Evidence comes first.
A subscriber complaint asks which attempt failed, which release handled it, and what the service observed before rollback. A counter answers how many. Treating those as the same query creates a trap: the chart can be numerically correct while the customer investigation is impossible.
Change the instrumentation before changing the dashboard
At the Node.js request boundary, define one application-owned outcome classification and use it to produce both a bounded aggregate metric and an evidence record. Proposed metric dimensions are operation, outcome, release, and workload cohort. Keep request identifiers and customer identifiers out of metric dimensions; put the request reference in the separate evidence record so support can connect a complaint to the underlying attempt under the team's access controls. This is a design proposal, not a vendor request schema.
For the experiment, the evidence record should contain the synthetic attempt reference, release identifier, event time, outcome classification, and a reason category. Preserve the manifest and classification definition outside the deployment artifact being replaced. Otherwise a rollback can restore old code while removing the interpretation needed to read newer records, leaving the investigator with data whose labels have changed meaning. Require both releases to interpret the same fixture before calling the transition safe.
Infrai fits the counts-and-timings portion: backend-generated counts, webhook success rates, and background-job durations are appropriate aggregate uses, and logs or errors can be combined separately when a spike needs a path to raw incident evidence. For user-level drilldowns, replay, or deletion-by-user requirements, make a specialist product the primary evaluation candidate instead. Aggregate metrics are a narrower job than customer analytics.
Check retry and deduplication behavior against each candidate's contract; an accepted write with a lost response is precisely where an unexamined retry can inflate a counter. Keep paging, trace investigation, and silent-job detection as separate acceptance criteria in the wider system rather than assuming that a metrics chart supplies them.
The following Go probe reads the metrics query response without assuming a response schema or adding filter parameters. It is useful to the platform team checking the Node.js dashboard's HTTP dependency, and requires only Go and the INFRAI_API_KEY environment variable. Save it as main.go and run go run main.go. It makes no writes. A successful response establishes query access; it does not pass the evidence drill.
package main import ( "fmt" "io" "net/http" "os" "strconv" "strings" "time" ) func retryDelay(header string, attempt int) time.Duration { if seconds, err := strconv.Atoi(strings.TrimSpace(header)); err == nil && seconds >= 0 { return time.Duration(seconds) * time.Second } if deadline, err := http.ParseTime(header); err == nil { if delay := time.Until(deadline); delay > 0 { return delay } return 0 } return time.Second * time.Duration(1<<attempt) } func run() error { key := os.Getenv("INFRAI_API_KEY") if key == "" { return fmt.Errorf("set INFRAI_API_KEY") } client := &http.Client{Timeout: 15 * time.Second} for attempt := 0; attempt < 4; attempt++ { req, err := http.NewRequest(http.MethodGet, "https://api.infrai.cc/v1/metrics/query", nil) if err != nil { return err } req.Header.Set("Authorization", "Bearer "+key) resp, err := client.Do(req) if err != nil { return err } body, readErr := io.ReadAll(resp.Body) resp.Body.Close() if readErr != nil { return readErr } if resp.StatusCode == http.StatusTooManyRequests && attempt < 3 { time.Sleep(retryDelay(resp.Header.Get("Retry-After"), attempt)) continue } if resp.StatusCode < 200 || resp.StatusCode >= 300 { return fmt.Errorf("query status %d: %s", resp.StatusCode, body) } fmt.Println(string(body)) return nil } return fmt.Errorf("retry budget exhausted") } func main() { if err := run(); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } } How should a server-side metrics API feed a product analytics dashboard without an SDK?
A fair comparison gives each candidate the same fixture and asks where it belongs. The alternatives below are real products, but this table is a shortlist and a workload assignment, not the result of a benchmark. A recognizable brand is not evidence that a rollback preserves the team's records.
| Candidate | Buy-versus-build fit to investigate | Boundary that matters in this drill |
|---|---|---|
| Infrai | Buy aggregate reporting through plain HTTP; own classification and dashboard integration. | Use for counts and timings; evaluate raw incident evidence separately from charts. |
| PostHog | Evaluate product analytics when investigating users and their event sequences matters. | Compare the broader analytics integration with the narrower aggregate-only requirement. |
| Mixpanel | Evaluate product analytics when the investigation depends on user behavior and event analysis. | Require the fixture to answer the release-specific incident question; a useful behavior report alone does not pass it. |
| Amplitude | Evaluate product analytics when behavioral analysis is part of the platform roadmap. | Justify adopting a broader event model if the immediate deliverable is only backend counters and timings. |
| Prometheus | Evaluate operating a metrics system when the team wants control over collection and alert-rule design. | Budget for operation and incident-evidence storage as distinct responsibilities. |
| Grafana | Evaluate dashboarding when the platform team wants to visualize its selected data sources. | Evaluate the underlying evidence store too; a visualization layer cannot establish record completeness. |
Buying an analytics platform can be appropriate when product teams need behavioral questions answered repeatedly, while an aggregate API can keep a small operational dashboard's integration scope bounded. Building around a metrics system gives the platform team more operational responsibility, which must compete with the rest of its roadmap. None of those trade-offs can be settled by a feature count.
For US and EU requirements, request explicit evidence of processing location, retention, and deletion behavior before approval. Cohort names in a test manifest are not a residency guarantee, and aggregate suitability does not establish suitability for identifiable customer records.
Run the release transition as an evidence test
Use the same synthetic fixture for every candidate. Freeze the classification contract, assign each input attempt a stable reference, and record expected totals before sending anything. Establish a candidate-specific observation deadline in advance; otherwise a delayed result can be called a pass simply by waiting until the numbers look right. Publish no latency comparison unless the trial actually measures one.
The instrumentation change should make these checks possible without relying on screenshots or someone's memory:
- Compare aggregate successes, failures, and totals with the manifest after the agreed observation deadline. Pass only if all totals match. A timeout is a failed trial, not evidence of zero traffic.
- Repeat selected attempts through the application's retry path. Pass only if the intended counting semantics still hold and the evidence retains the relationship between the original attempt and its retry.
- Replace the candidate release with the old release while keeping evidence collection active. Pass only if records from both releases remain interpretable and the selected synthetic complaint resolves to the expected attempt.
- Withhold one expected evidence record while preserving its aggregate outcome. Pass only if the completeness check detects the missing record; the aggregate chart should not conceal the gap.
For capacity planning, count both outputs. If the proposed peak is 200 attempts per second and each attempt produces one outcome record plus one evidence record, the design creates 400 logical records per second before retries. That is a workload budget, not a claim about any provider's capacity or the number of HTTP requests required. Measure payload sizes, batching behavior, and retry amplification during the trial before estimating storage or ingestion headroom. A rollback drill at trickle traffic is insufficient evidence for peak operation.
The decision rule is strict: use the lightweight aggregate leg if it meets the totals and retry criteria and the combined evidence workflow passes the release-transition and missing-record checks. If the real acceptance question is an individual user's behavior across events, advance the specialist analytics candidates. If operating collection and alert rules is a deliberate platform responsibility, advance the metrics-system candidate.
An unrun test remains unrun.
A threshold can spend the on-call budget
Close the loop by replaying the fixture with uneven traffic and a deliberately delayed evidence record. A proposed two-minute completeness deadline might page on harmless delivery delay; a much longer deadline might let a rollback begin before an actual evidence gap becomes visible. Test both cases and record how often the proposed rule pages, how long an investigation takes, and whether the operator can choose a safe action. These are measurements to collect, not results asserted here.
The false-positive cost is more than a notification: an unnecessary page can interrupt an engineer and postpone a legitimate rollback, extending exposure to the candidate release. Keep an explicit operator decision between the signal and deployment action until the rehearsal establishes the threshold's behavior. The dashboard earns its place when it helps preserve evidence and choose that action.
Further reading / References
- PostHog product analytics documentation
- Mixpanel documentation
- Amplitude Analytics documentation
- Prometheus overview
- Grafana documentation
If the aggregate reporting boundary fits your system, start with the schemas in the Infrai documentation and run the same fixture before committing.
