-
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change metrics configuration structure - Configuration Documentation …
…- General improvements (#41) * Change metrics model * Provide better documentation on the configuration * Change environment variable name for scraping endpoint * Provide better support for endpoint with '/' * Add link to more information for Azure Monitor RBAC roles
- Loading branch information
1 parent
7906484
commit befc08d
Showing
10 changed files
with
49 additions
and
37 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
17 changes: 17 additions & 0 deletions
17
src/Promitor.Scraper/Model/Configuration/AzureMetricConfiguration.cs
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,17 @@ | ||
using Microsoft.Azure.Management.Monitor.Models; | ||
|
||
namespace Promitor.Scraper.Model.Configuration | ||
{ | ||
public class AzureMetricConfiguration | ||
{ | ||
/// <summary> | ||
/// Type of aggregation to query the Azure Monitor metric | ||
/// </summary> | ||
public AggregationType Aggregation { get; set; } | ||
|
||
/// <summary> | ||
/// Name of the Azure Monitor metric to query | ||
/// </summary> | ||
public string MetricName { get; set; } | ||
} | ||
} |
13 changes: 3 additions & 10 deletions
13
src/Promitor.Scraper/Model/Configuration/Metrics/MetricDefinition.cs
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