-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make Metrics configurable through appsettings.json and move endpoint to separate port * add missing trailing linebreaks
- Loading branch information
Showing
5 changed files
with
68 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace Altinn.App.Api.Configuration; | ||
|
||
/// <summary> | ||
/// Metric settings for Altinn Apps | ||
/// </summary> | ||
public class MetricsSettings | ||
{ | ||
/// <summary> | ||
/// Gets or sets a value indicating whether metrics is enabled or not | ||
/// </summary> | ||
public bool Enabled { get; set; } = true; | ||
/// <summary> | ||
/// Gets or sets the port for the metrics server is exposed | ||
/// </summary> | ||
public ushort Port { get; set; } = 5006; | ||
} |
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