Show the right unit when a metric name has several units

Open
#78 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

Start by reading the chart code that gets the unit from a metric name's descriptor, and trace how it handles names with multiple kinds or units. Update the chart so it reports that the unit is uncertain instead of showing one unit for every line; confirm no chart displays a unit that does not apply to all its lines.

Written by the indexing model from the issue text.

Description

area:ui feature priority:low

As a homelab operator,
I want the chart to show a unit only when it is certain,
so that I never read a wrong unit on an axis.

Acceptance criteria

  • Given a metric name stored with several kinds or units, when I chart it, then the page says so instead of showing one unit for all lines.

Success signal: No chart shows a unit that does not apply to every line.
Out of scope: Converting between units.
Open questions: None.

Technical notes

The unit is taken from the name's descriptor today and is lost or wrong when one name has several.

Follow-up from #15.

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.