Skip to content

ui: Chart unit "Duration" improperly processes metrics measured in seconds #26590

@sploiselle

Description

@sploiselle

Is this a question, feature request, or bug report?

Bug report

Please describe the issue you observed

  • What did you do?

    Added both build.timestamp and lastupdatenanos to a Custom Chart with the Unit set to Duration.

  • What did you expect to see?

    The build.timestamp metric should be 10 positive integer digits, representing a Unix timestamp, e.g. 1528682075––which is the behavior of lastupdatenanos.

  • What did you see instead?

    build.timestamp is measured in seconds, but is processed as if it were measured in nanoseconds, so it's divided by 1E9, resulting in it displaying only 1 positive integer digit, e.g. 1.5

screen shot 2018-06-11 at 10 35 40 am

This issue applies to all metrics that are collected in seconds:

  • build.timestamp
  • gcbytesage
  • intentage
  • security.certificate.expiration.ca
  • security.certificate.expiration.node
  • sys.uptime

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-webui-timeseriesC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.S-3-wrong-metadataIssues causing erroneous metadata or monitoring stats to be returned.X-staleno-issue-activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions