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

Floating point issues in expression browser Y-axis labels #3595

Open
snaix opened this Issue Dec 18, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@snaix
Copy link

snaix commented Dec 18, 2017

What did you do?
Just show some float number in prometheus
What did you expect to see?
a correct scale in Graph
What did you see instead? Under which circumstances?
a wrong scale with wrong/duplicated number
Environment
Windows 10

  • System information:
    Microsoft Windows [Version 10.0.16299.98]

  • Prometheus version:
    2.0
    prometheus, version 2.0.0 (branch: HEAD, revision: 0a74f98)
    build user: root@615b82cb36b6
    build date: 20171108-07:19:19
    go version: go1.9.2

  • Prometheus configuration file:

# my global config
global:
  scrape_interval:     15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
  # scrape_timeout is set to the global default (10s).

# Alertmanager configuration
alerting:
  alertmanagers:
  - static_configs:
    - targets:
      # - alertmanager:9093

# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
  # - "first_rules.yml"
  # - "second_rules.yml"

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: 'prometheus'

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
      - targets: ['localhost:9090']
  - job_name: 'consul'
    consul_sd_configs:
      - server: 'test.com:8500'
        services: ['prom_exporter']

the scale in prometheus:
image
the same graph in grafana
image

@brian-brazil brian-brazil changed the title It seams a coordinate bug in prometheus 2.0 Floating point issues in expression browser X-axis labels Feb 15, 2018

@brian-brazil brian-brazil changed the title Floating point issues in expression browser X-axis labels Floating point issues in expression browser Y-axis labels Feb 15, 2018

@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Apr 9, 2019

Could you try with v2.8.1 as some UI components have been updated?

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.