Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ The Application Insights Integration allows users to retrieve application insigh

`Application ID`:: (_[]string_) ID of the application. This is Application ID from the API Access settings blade in the Azure portal.

`Api Key`:: (_[]string_) The API key which will be generated. See [Azure Monitor Log Analytics API Overview](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/api/overview) for more information.
`Authentication Type`:: (_string_) Optional. The authentication method to use. Accepted values: `api_key` or `client_secret`. Defaults to `api_key` if not set.

`Api Key`:: (_string_) Optional. The API key used for authentication when `auth_type` is set to `api_key`. See [Azure Monitor Log Analytics API Overview](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/api/overview) for more information.

`Client ID`:: (_string_) Optional. The client (application) ID of the Azure AD application. Required when `auth_type` is `client_secret`.

`Client Secret`:: (_string_) Optional. The client secret of the Azure AD application. Required when `auth_type` is `client_secret`.

`Tenant ID`:: (_string_) Optional. The tenant (directory) ID of the Azure AD tenant. Required when `auth_type` is `client_secret`.


The integration contains the following data streams:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ The Application Insights Integration allows users to retrieve application insigh

`Application ID`:: (_[]string_) ID of the application. This is Application ID from the API Access settings blade in the Azure portal.

`Api Key`:: (_[]string_) The API key which will be generated, more on the steps here https://dev.applicationinsights.io/documentation/Authorization/API-key-and-App-ID.
`Authentication Type`:: (_string_) Optional. The authentication method to use. Accepted values: `api_key` or `client_secret`. Defaults to `api_key` if not set.

`Api Key`:: (_string_) Optional. The API key used for authentication when `auth_type` is set to `api_key`. More on the steps here https://dev.applicationinsights.io/documentation/Authorization/API-key-and-App-ID.

`Client ID`:: (_string_) Optional. The client (application) ID of the Azure AD application. Required when `auth_type` is `client_secret`.

`Client Secret`:: (_string_) Optional. The client secret of the Azure AD application. Required when `auth_type` is `client_secret`.

`Tenant ID`:: (_string_) Optional. The tenant (directory) ID of the Azure AD tenant. Required when `auth_type` is `client_secret`.


#### Configuration options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ The Application State Integration allows users to retrieve application insights

`Application ID`:: (_[]string_) ID of the application. This is Application ID from the API Access settings blade in the Azure portal.

`Api Key`:: (_[]string_) The API key which will be generated, more on the steps here https://dev.applicationinsights.io/documentation/Authorization/API-key-and-App-ID.
`Authentication Type`:: (_string_) Optional. The authentication method to use. Accepted values: `api_key` or `client_secret`. Defaults to `api_key` if not set.

`Api Key`:: (_string_) Optional. The API key used for authentication when `auth_type` is set to `api_key`. More on the steps here https://dev.applicationinsights.io/documentation/Authorization/API-key-and-App-ID.

`Client ID`:: (_string_) Optional. The client (application) ID of the Azure AD application. Required when `auth_type` is `client_secret`.

`Client Secret`:: (_string_) Optional. The client secret of the Azure AD application. Required when `auth_type` is `client_secret`.

`Tenant ID`:: (_string_) Optional. The tenant (directory) ID of the Azure AD tenant. Required when `auth_type` is `client_secret`.


## Additional notes about metrics and costs
Expand Down
5 changes: 5 additions & 0 deletions packages/azure_application_insights/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
- version: "1.10.0"
changes:
- description: Add support for Azure AD client secret authentication. New optional parameters `auth_type`, `client_id`, `client_secret`, and `tenant_id` have been added. `api_key` is now optional.
type: enhancement
link: https://github.com/elastic/integrations/pull/17899
- version: "1.9.1"
changes:
- description: Fix the H1 for SEO purpose.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,30 @@ period: {{period}}
{{#if application_id}}
application_id: {{application_id}}
{{/if}}
{{#if auth_type}}
auth_type: {{auth_type}}
{{/if}}
{{#unless auth_type}}
{{#if api_key}}
api_key: {{api_key}}
{{/if}}
{{/unless}}
{{#contains "api_key" auth_type}}
{{#if api_key}}
api_key: {{api_key}}
{{/if}}
{{/contains}}
{{#contains "client_secret" auth_type}}
{{#if client_id}}
client_id: {{client_id}}
{{/if}}
{{#if client_secret}}
client_secret: {{client_secret}}
{{/if}}
{{#if tenant_id}}
tenant_id: {{tenant_id}}
{{/if}}
{{/contains}}
{{#if metrics}}
metrics: {{metrics}}
{{/if}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,30 @@ period: {{period}}
{{#if application_id}}
application_id: {{application_id}}
{{/if}}
{{#if auth_type}}
auth_type: {{auth_type}}
{{/if}}
{{#unless auth_type}}
{{#if api_key}}
api_key: {{api_key}}
{{/if}}
{{/unless}}
{{#contains "api_key" auth_type}}
{{#if api_key}}
api_key: {{api_key}}
{{/if}}
{{/contains}}
{{#contains "client_secret" auth_type}}
{{#if client_id}}
client_id: {{client_id}}
{{/if}}
{{#if client_secret}}
client_secret: {{client_secret}}
{{/if}}
{{#if tenant_id}}
tenant_id: {{tenant_id}}
{{/if}}
{{/contains}}
{{#if processors}}
processors:
{{processors}}
Expand Down
10 changes: 9 additions & 1 deletion packages/azure_application_insights/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ The Application Insights Integration allows users to retrieve application insigh

`Application ID`:: (_[]string_) ID of the application. This is Application ID from the API Access settings blade in the Azure portal.

`Api Key`:: (_[]string_) The API key which will be generated. See [Azure Monitor Log Analytics API Overview](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/api/overview) for more information.
`Authentication Type`:: (_string_) Optional. The authentication method to use. Accepted values: `api_key` or `client_secret`. Defaults to `api_key` if not set.

`Api Key`:: (_string_) Optional. The API key used for authentication when `auth_type` is set to `api_key`. See [Azure Monitor Log Analytics API Overview](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/api/overview) for more information.

`Client ID`:: (_string_) Optional. The client (application) ID of the Azure AD application. Required when `auth_type` is `client_secret`.

`Client Secret`:: (_string_) Optional. The client secret of the Azure AD application. Required when `auth_type` is `client_secret`.

`Tenant ID`:: (_string_) Optional. The tenant (directory) ID of the Azure AD tenant. Required when `auth_type` is `client_secret`.


The integration contains the following data streams:
Expand Down
10 changes: 9 additions & 1 deletion packages/azure_application_insights/docs/app_insights.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ The Application Insights Integration allows users to retrieve application insigh

`Application ID`:: (_[]string_) ID of the application. This is Application ID from the API Access settings blade in the Azure portal.

`Api Key`:: (_[]string_) The API key which will be generated, more on the steps here https://dev.applicationinsights.io/documentation/Authorization/API-key-and-App-ID.
`Authentication Type`:: (_string_) Optional. The authentication method to use. Accepted values: `api_key` or `client_secret`. Defaults to `api_key` if not set.

`Api Key`:: (_string_) Optional. The API key used for authentication when `auth_type` is set to `api_key`. More on the steps here https://dev.applicationinsights.io/documentation/Authorization/API-key-and-App-ID.

`Client ID`:: (_string_) Optional. The client (application) ID of the Azure AD application. Required when `auth_type` is `client_secret`.

`Client Secret`:: (_string_) Optional. The client secret of the Azure AD application. Required when `auth_type` is `client_secret`.

`Tenant ID`:: (_string_) Optional. The tenant (directory) ID of the Azure AD tenant. Required when `auth_type` is `client_secret`.


#### Configuration options
Expand Down
10 changes: 9 additions & 1 deletion packages/azure_application_insights/docs/app_state.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ The Application State Integration allows users to retrieve application insights

`Application ID`:: (_[]string_) ID of the application. This is Application ID from the API Access settings blade in the Azure portal.

`Api Key`:: (_[]string_) The API key which will be generated, more on the steps here https://dev.applicationinsights.io/documentation/Authorization/API-key-and-App-ID.
`Authentication Type`:: (_string_) Optional. The authentication method to use. Accepted values: `api_key` or `client_secret`. Defaults to `api_key` if not set.

`Api Key`:: (_string_) Optional. The API key used for authentication when `auth_type` is set to `api_key`. More on the steps here https://dev.applicationinsights.io/documentation/Authorization/API-key-and-App-ID.

`Client ID`:: (_string_) Optional. The client (application) ID of the Azure AD application. Required when `auth_type` is `client_secret`.

`Client Secret`:: (_string_) Optional. The client secret of the Azure AD application. Required when `auth_type` is `client_secret`.

`Tenant ID`:: (_string_) Optional. The tenant (directory) ID of the Azure AD tenant. Required when `auth_type` is `client_secret`.


## Additional notes about metrics and costs
Expand Down
38 changes: 36 additions & 2 deletions packages/azure_application_insights/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: azure_application_insights
title: Azure Application Insights Metrics Overview
version: "1.9.1"
version: "1.10.0"
description: Collect application insights metrics from Azure Monitor with Elastic Agent.
type: integration
icons:
Expand Down Expand Up @@ -30,12 +30,46 @@ vars:
multi: false
required: true
show_user: true
- name: auth_type
type: select
title: Authentication Type
description: The authentication type to use. Either "api_key" or "client_secret".
options:
- value: api_key
text: API Key
- value: client_secret
text: Client Secret
multi: false
required: false
show_user: true
- name: api_key
type: password
title: Api Key
secret: true
multi: false
required: true
required: false
show_user: true
- name: client_id
type: text
title: Client ID
description: The client ID for Azure AD authentication.
multi: false
required: false
show_user: true
- name: client_secret
type: password
title: Client Secret
description: The client secret for Azure AD authentication.
secret: true
multi: false
required: false
show_user: true
- name: tenant_id
type: text
title: Tenant ID
description: The tenant ID for Azure AD authentication.
multi: false
required: false
show_user: true
policy_templates:
- name: app_insights
Expand Down
Loading