Skip to content

Don't log "repeated timestamp but different value" message as error/warning #1478

Open
@weeco

Description

@weeco

The problem:

When you receive multiple values for the same metric series at the same timestamp this will be rejected with a 400 error. This is a desired behaviour, however it also logs every occurance as error log (in the distributor) and at the warn level in the ingester.

Warn and error logs should only indicate problems. Under certain circumstances you cannot fix the root cause of this (fixing the reported metrics) and therefore this can quickly become a common scenario. However I'd still like to use the occurences of log messages at the warn/error level as metric which indicate problems which need attention.

Proposal:

The log message shows the affect metric series, which certainly helps in tracking the issue. Therefore I suggest to log these events at the info level rather than error or warn.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueThese are great first issues. If you are looking for a place to start, start here!hacktoberfesthelp wantedtype/choreSomething that needs to be done; not a bug or a feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions