-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Metrics (OpenTelemetry with Prometheus Export endpoint) (#2010)
* add metrics in opentelemetry standard, uses built-in aspnetcore metrics, built-in npgsql metrics, and exports in prometheus format * make metrics enabled by default, but disableable in appsettings * link to metrics on diagnostics page if enabled * use uppercase convention /Metrics instead of /metrics * use a service extension method to follow conventions
- Loading branch information
1 parent
47d7fe3
commit 0329372
Showing
8 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,8 @@ | |
<li><a asp-page="Logging">Logging</a></li> | ||
<li><a asp-page="SendEmail">Send an Email</a></li> | ||
<li><a asp-page="SystemPages">System Wiki Pages</a></li> | ||
<li condition="@Settings.EnableMetrics"><a href="/Metrics">Metrics</a></li> | ||
<li condition="[email protected]">Metrics (disabled)</li> | ||
</ul> | ||
|
||
<standard-table> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,6 @@ | |
"webOptimizer": { | ||
"enableCaching": true, | ||
"enableTagHelperBundling": true | ||
} | ||
}, | ||
"EnableMetrics": true | ||
} |