Skip to content

Prometheus topk and sort_desc provides additional metrics #6561

@HammaBamma

Description

@HammaBamma

I'm submitting a : Bug Report
Grafana Version: 3.1.1
DataSource: Prometheus (v. 1.3.1)
OS: Ubuntu 16.04 LTS
Query: sort_desc(topk(5, bsnAPIfNoOfUsers))
Expected Result: Top 5 Access Points by Stations Associated, Sorted from Top to Bottom
Result: Pie Chart visualizes anywhere from 5 - 13 Access Points in the list, Table Lists All APs

Query Returns Valid results in Prometheus.
image

Result in Grafana Pie Chart:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more infoIssue needs more information, like query results, dashboard or panel json, grafana version etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions