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

Internal plotting error for area plots within console templates #1837

Closed
StephanErb opened this Issue Jul 20, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@StephanErb
Copy link
Contributor

StephanErb commented Jul 20, 2016

What did you do?

I tried to render the following area graph within a console template:

  <script>
  new PromConsole.Graph({
    node: document.querySelector("#greedy"),
    expr: "topk(5, service:mem_limit_bytes:sum)",
    min: 0,
    renderer: "area",
    yAxisFormatter: PromConsole.NumberFormatter.humanize1024,
    yHoverFormatter: PromConsole.NumberFormatter.humanize1024,
    yTitle: 'RAM',
    yUnits: 'B'
  })
  </script>

What did you expect to see?

My expression rendered as an area plot within a console template.

What did you see instead? Under which circumstances?

  • if plotted as an area plot, the graph does not show any content.
  • the same expression works great:
    • as a line plot within the console templates
    • as a line plot and even as area plot within the interactive graph viewer
  • for every failed rendering attempt, the following log entry can be found within the browser console log:
rickshaw.min.js:1 Uncaught stacked series cannot have differing numbers of points: 43 vs 591; see Rickshaw.Series.fill()

Environment

  • Prometheus version:

    0.20.0

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Jul 20, 2016

Dupe of #586. Topk/bottomk don't work well in graphs.

@StephanErb

This comment has been minimized.

Copy link
Contributor Author

StephanErb commented Jul 20, 2016

This issue seems to be differeng. Plotting doesn't work even if I strip the topk and just try to plot service:mem_limit_bytes:sum as an area plot.

The error message indicates that we might be missing this code in console templates well https://github.com/prometheus/prometheus/pull/800/files?

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

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