Keep the metric points tinyobserve currently sets aside

Open
#86 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

Start in the telemetry-otlp metrics decoder, where set-aside points are counted and logged; identify how it handles unsupported metric types and how metrics are stored and queried. The issue leaves the source metric and type unknown, so first reproduce or inspect the VM telemetry to determine whether it is a summary or exponential histogram. Done means the type and metric are identifiable in logs, the identified type can be stored and queried or charted with supported aggregations documented, and the collector no longer reports partial success for it.

Written by the indexing model from the issue text.

Description

area:ingest feature priority:medium

As a homelab operator,
I want every metric my collector sends to be kept,
so that no data point is silently lost and my collector stops warning about partial success.

What happens

On the VM (v0.2.0), the collector logs a warning on every metrics export:

warn otlphttpexporter Partial success response {"otelcol.signal": "metrics", "message": "set aside 1 data points: exponential histograms and summaries are not supported", "dropped_data_points": 1}

tinyobserve sets these points aside by design (#13), because timonier sends neither type. Another source on the VM does: likely the collector's own telemetry or a scraped Prometheus summary.

Acceptance criteria

  • Given a metric point is set aside, when tinyobserve logs it, then the log names the metric and its type, so the source can be identified.
  • Given the type found on the VM (summary or exponential histogram), when the collector sends it, then it is stored and the collector no longer reports partial success for it.
  • Given a stored point of that type, when I query it (#14) or chart it (#15), then it gives sensible values, or the API says clearly which aggregations it supports.

Success signal: The collector on the VM logs no partial-success warnings.
Out of scope: Converting between histogram types.
Open questions: none. Answered on the VM 2026-12-03: summary crowdsec.go_gc_duration_seconds.

Technical notes

  • Set-aside counting lives in the OTLP metrics decoder (telemetry-otlp), and points are logged as set aside N data points today.
  • Summaries carry quantiles directly; exponential histograms need their own bucket encoding and percentile logic (ADR 0005 layout applies).
  • Workaround on the collector side: a filter processor dropping that metric, at the cost of losing it.

Reported by the operator from the VM, 2026-11-30.

Plan (2026-12-03)

The maintainer decided tinyobserve supports every OTLP metric type. Split into #238 (keep summaries), #239 (any quantile, Histograms and summaries) and #240 (keep exponential histograms). The remaining criteria above are met through them.

Dominant language
Rust
Stars
0
Forks
0
Avg merge
40m
Merged PRs (30d)
91

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jdrouet/tinyobserve

All issues in jdrouet/tinyobserve

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.