Generic Dashboards
Out-of-box, App.Metrics includes generic Grafana web application dashboards that are built to monitor metrics reported by application's that are using App.Metrics.Extensions.Middleware.
Generic Web Dashboard Features
- Metrics measured by the App Metrics ASP.NET Core Middleware are pre-configured in the Grafana dashboard.
- Supports filtering graphs by environment allow the same dashbaord to be re-used across environments.
- Supports filtering graphs by application. The idea is to tag metrics by your application's name allow you to re-use the same dashboard instance for all web applications using App Metrics.
- Graphs are configured to use a
datasource
template variable so that you don't need to update all charts with the datasource you configured in Grafana. - Display a health overview showing passed, degraded and failed checks as well as an overall health status, color coded by the status value.
Generic OAuth2 Web Dashboard Features
- OAUth2 Metrics measured by the App Metrics ASP.NET Core Middleware are pre-configured in the Grafana dashboard.
- Supports filtering graphs by environment, application and datasource as explained above.
- Supports filtering graphs by
client_id
so that we can visualize request rates for example on each API endpoint, useful for example to determine client rate limits or what versions clients are using. - Supports filtering graphs by
route
, allowing us to clearly visualize a specific endpoint.
How to setup the dashboards
- Configure your application to use App Metrics ASP.NET Core Middleware and Reporting targetting your desired TSDB.
- Run your application to report some metrics
- Download and install Grafana, then create a new datasource specifying the reporter's details configured as part of your application setup.
- Import the desired Grafana dashboard(s) by copying and pasting the dasboard ID into the Import Dashboard window in Grafana
Warning
All generic App Metrics Grafana dashboards expect app
, env
and server
global tags to be set, see here for example.
Get the Grafana dashboards
Generic Web
Generic OAuth2 Web
Tip
All the sample apps have sample Grafana dashboards that can also be downloaded and imported into Grafana for testing.