Skip to content

Start time metric adjuster should deal with cumulative resets #37717

Closed
@ridwanmsharif

Description

@ridwanmsharif

Component(s)

receiver/prometheus

What happened?

When the Start time metric adjuster is used - all points used the same start timestamp. Even after a reset, which makes no
sense for a counter which is not supposed to go down.

Instead when a reset is detected, the adjuster should use the reset timestamp for all next points for the metric.

Collector version

all

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

Log output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions