Skip to content

fix(om2.0): MUST timestamp exemptions#2860

Open
krajorama wants to merge 1 commit intomainfrom
krajo/om2.0-consistency3
Open

fix(om2.0): MUST timestamp exemptions#2860
krajorama wants to merge 1 commit intomainfrom
krajo/om2.0-consistency3

Conversation

@krajorama
Copy link
Member

Due to classic and native buckets we now have a special case for the timestamps rule.

Due to classic and native buckets we now have a special case for
the timestamps rule.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
* Two Histogram MetricPoints where one has Classic Buckets and the other has Native Buckets.
* Two GaugeHistogram MetricPoints where one has Classic Buckets and the other has Native Buckets.

Note: these exemptions allow exposing both Classic and Native Buckets for the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry if this is a can of worms...

Did we already discuss having classic + native on the same line?

If we keep them on separate lines, I think we need more updates to the spec. E.g.

MetricFamily
A MetricFamily MAY have zero or more Metrics. A MetricFamily MUST have a name, HELP, TYPE, and UNIT metadata. Every Metric within a MetricFamily MUST have a unique LabelSet.

We need to carve out an exception from "MUST have a unique LabelSet" for this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry if this is a can of worms...

Did we already discuss having classic + native on the same line?

No, we have not. I think the fallout from that would be worse than having two lines.

  • Readability would be worse.
  • Native and classic bucketing has different exemplars so where do you put those?
  • One composite value per line no longer true.
  • probably more...

If we keep them on separate lines, I think we need more updates to the spec. E.g.

MetricFamily
A MetricFamily MAY have zero or more Metrics. A MetricFamily MUST have a name, HELP, TYPE, and UNIT metadata. Every Metric within a MetricFamily MUST have a unique LabelSet.

We need to carve out an exception from "MUST have a unique LabelSet" for this.

True.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants