dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.91k stars 475 forks source link

PromQL Dashboard Definitions #6679

Closed braydonk closed 3 days ago

braydonk commented 1 week ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe the problem.

The standalone dashboard tool is awesome for traces and logs! What I would really like to see is a level of customization for the metrics dashboards. Currently, the raw values of the metrics are graphed, which works for some metrics. But there may be metrics like monotonic sums where what we actually want to graph is the rate of change over time (the derivative), and there isn't a way currently to represent some more complex aggregations in a metric dashboard.

Describe the solution you'd like

Ideally, I would love to see an interface that would allow me to specify dashboards through PromQL.

Additional context

PromQL was chosen here primarily because it seems to be (?) the most popular metric query language at this time. I am open to any better options as well (or perhaps even an extensible query engine interface, but maybe that's thinking too far ahead).

davidfowl commented 5 days ago

We're not going to implement PromQL in the dashboard, at that point just use the grafana stack. This dashboard is optimized for minimal configurability and showing as much raw data as possible. That's why makes it easy to use for local development (you don't need to think about building projections or queries). This is not meant to be grafana, Kusto or, power BI (those are truly full query engines + visualizations).

braydonk commented 3 days ago

Okay that's fine. Thanks!