Skip to content

How can I define a metric that shows List of Expensive Queries executed in MSSQL like this query: https://blog.sqlauthority.com/2021/03/17/sql-server-list-expensive-queries-updated-march-2021/ #121

Description

@javad87

How can I define a metric that shows List of Expensive Queries executed in MSSQL like this query: https://blog.sqlauthority.com/2021/03/17/sql-server-list-expensive-queries-updated-march-2021/

I want to show result of T-SQL query as a table inside Grafana dashboard... That data is not changing instantly with time like time series data model that prometheus supports (e.g. like cpu usage), and I guess using counter , gague or summary metric type is not suitable for showing result as a Grafana table, I'm wondering how can I do it with sql_exporter....
BTW, I know how to add query to *.collector.yaml file but what type of metric should I use for prometheus so that it can recognize it as a table?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions