Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prometheus_tsdb_head_max_time and prometheus_tsdb_head_min_time values is milliseconds #4882

Closed
AndorCS opened this Issue Nov 19, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@AndorCS
Copy link

AndorCS commented Nov 19, 2018

Proposal

Use case. Why is this important?
Since prometheus use standard values in seconds, having prometheus_tsdb_head_max_time and prometheus_tsdb_head_min_time in milliseconds is a bit confusing.

Bug Report

What did you do?
Query prometheus_tsdb_head_max_time - prometheus_tsdb_head_min_time
What did you expect to see?
1339.077
What did you see instead? Under which circumstances?
1339077
Environment
any

  • System information:
    any
  • Prometheus version:
prometheus_build_info{branch="HEAD",goversion="go1.11.1",revision="167a4b4e73a8eca8df648d2d2043e21bdb9a7449",version="2.4.3"}
  • Alertmanager version:
    N/A
  • Prometheus configuration file:
    N/A
  • Alertmanager configuration file:
    N/A
  • Logs:
    N/A
@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Nov 19, 2018

The root issue is prometheus/tsdb#395. @krasi-georgiev @gouthamve this isn't the first report we've got about the TSDB metrics not being consistent with the best practices. Personally I'd go with what @SuperQ suggested here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.