github.com/stakater/IngressMonitorController@v1.0.103/docs/appinsights-configuration.md (about)

     1  # Appinsights Configuration
     2  
     3  You can configure Application Insights as a Ingress Monitor by using below configuration:
     4  
     5  | Key               | Description                                                                                   |
     6  | ----------------- | --------------------------------------------------------------------------------------------- |
     7  | name              | Name of the provider (e.g. AppInsights)                                                       |
     8  | appInsightsConfig | `appInsightsConfig` is the configuration specific to Appinsights Instance as mentioned below: |
     9  
    10  ## Appinsights Configuration:
    11  
    12  | Key                      | Description                                                                                                    |
    13  | ------------------------ | -------------------------------------------------------------------------------------------------------------- |
    14  | name                     | Name of the Appinsights Instance                                                                               |
    15  | resourceGroup            | Resource group of Appinsights                                                                                  |
    16  | location                 | The location of the resource group.                                                                            |
    17  | geoLocation              | Location ID for the webtest to run from. For example: `["us-tx-sn1-azr", "us-il-ch1-azr"]`                     |
    18  | emailAction (Optional)   | Email Action is optional, This will enable monitoring alerts for ping test failure.                            |
    19  | webhookAction (Optional) | Webhook Action is also optional, You can use webhooks to route an Azure alert notification for custom actions. |
    20  
    21  **Email Action:**
    22  
    23  - **send_to_service_owners**: send email to all service owners, Possible values: `true, false`
    24  - **custom_emails**: list of email ids, For example: `["abc@microsoft.com", "xyz@microsoft.com"]`
    25  
    26  **Webhook Action:**
    27  
    28  - service_uri: Webhook url, For example: `http://webhook-test.io`
    29  
    30  **Example Configuration:**
    31  
    32  ```yaml
    33  providers:
    34    - name: AppInsights
    35      appInsightsConfig:
    36        name: demo-appinsights
    37        resourceGroup: demoRG
    38        location: "westeurope"
    39        geoLocation:
    40          [
    41            "us-tx-sn1-azr",
    42            "emea-nl-ams-azr",
    43            "us-fl-mia-edge",
    44            "latam-br-gru-edge",
    45          ]
    46        emailAction:
    47          send_to_service_owners: false
    48          custom_emails: ["mail@cizer.dev"]
    49        webhookAction:
    50          service_uri: http://myalert-webhook.io
    51  enableMonitorDeletion: true
    52  ```
    53  
    54  ## Additional Configuration
    55  
    56  Additional Appinsights configurations can be added to each ingress object using annotations, current supported annotations are:
    57  
    58  | Annotations                                  | Description                                                                                                                                      |
    59  | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
    60  | appinsights.monitor.stakater.com/statuscode  | Returned status code that is counted as a success. Possible values: [HTTP Status Codes](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) |
    61  | appinsights.monitor.stakater.com/retryenable | If its `true`, falied test will be retry after a short interval. Possible values: `true, false`                                                  |
    62  | appinsights.monitor.stakater.com/frequency   | Sets how often the test should run from each test location. Possible values: `300,600,900` seconds                                               |