App Metrics 1.0 Fork me on GitHub
Show / Hide Table of Contents

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.

grafana web demo

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.

grafana web oauth2 demo

How to setup the dashboards

  1. Configure your application to use App Metrics ASP.NET Core Middleware and Reporting targetting your desired TSDB.
  2. Run your application to report some metrics
  3. Download and install Grafana, then create a new datasource specifying the reporter's details configured as part of your application setup.
  4. 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

  • InfluxDB.
  • Elasticsearch.
  • Graphite.
  • Prometheus.

Generic OAuth2 Web

  • InfluxDB.
  • Elasticsearch.
  • Graphite.
Tip

All the sample apps have sample Grafana dashboards that can also be downloaded and imported into Grafana for testing.

  • Edit this Doc
Back to top Copyright © 2017 Allan Hardy
Generated by DocFX