-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure Add loadbalancer healthprobe status detector (#527)
* Create detector * Improve backend_unhealthy_host_ratio detector * Improve backend_unhealthy_host_ratio detector * Add conf file for healthprobe * Add notes for LB SKU and healthprobe * Add note in readme for Healthprobe detector * typo * Update modules/integration_azure-load-balancer/conf/01-healthprobe.yaml Co-authored-by: Spi <BzSpi@users.noreply.github.com> * Change backend_unhealthy_host_ratio_aggregation_function to max * update module * integration_azure-load-balancer: Fix generated code --------- Co-authored-by: Spi <BzSpi@users.noreply.github.com> Co-authored-by: Jean-Baptiste Simillon <jb.simillon@fr.clara.net> Co-authored-by: Laurent Piroelle <laurent.piroelle@fr.clara.net>
- Loading branch information
1 parent
2376314
commit a9ebcc0
Showing
7 changed files
with
176 additions
and
0 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
21 changes: 21 additions & 0 deletions
21
modules/integration_azure-load-balancer/conf/01-healthprobe.yaml
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,21 @@ | ||
--- | ||
module: "Azure Load Balancer" | ||
name: backend unhealthy host ratio | ||
filtering: "filter('resource_type', 'Microsoft.Network/loadBalancers') and filter('primary_aggregation_type', 'true')" | ||
aggregation: ".max(by=['BackendIPAddress', 'azure_resource_name', 'azure_resource_group_name', 'azure_region'])" | ||
value_unit: "%" | ||
transformation: true | ||
signals: | ||
signal: | ||
metric: "DipAvailability" | ||
rules: | ||
critical: | ||
threshold: 50 | ||
comparator: "<" | ||
lasting_duration: '10m' | ||
major: | ||
threshold: 100 | ||
comparator: "<" | ||
lasting_duration: '10m' | ||
dependency: critical | ||
... |
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
documentations: | ||
- name: Azure Monitor metrics | ||
url: 'https://learn.microsoft.com/en-us/azure/azure-monitor/reference/supported-metrics/microsoft-network-loadbalancers-metrics' | ||
|
||
notes: | | ||
### About Healthprobe detector | ||
Healthprobe detector is only available for loadbalancer with a standard SKU. See [documentation](https://learn.microsoft.com/en-us/azure/load-balancer/skus). |
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