-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for appinsights in the metricbeat azure module (#18940)
* app * changelog * update * Revert "update" This reverts commit 06db76b. * avoid winio * fix text
- Loading branch information
Showing
24 changed files
with
725 additions
and
13 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
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,23 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
|
||
[[metricbeat-metricset-azure-app_insights]] | ||
=== Azure app_insights metricset | ||
|
||
beta[] | ||
|
||
include::../../../../x-pack/metricbeat/module/azure/app_insights/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-azure,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../../x-pack/metricbeat/module/azure/app_insights/_meta/data.json[] | ||
---- |
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
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
31 changes: 31 additions & 0 deletions
31
x-pack/metricbeat/module/azure/app_insights/_meta/data.json
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,31 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"azure" : { | ||
"app_insights" : { | ||
"metrics" : { | ||
"requests_failed" : { | ||
"sum" : 182 | ||
}, | ||
"request_name" : "GET /favicon.ico" | ||
}, | ||
"start_date" : "2020-07-12T10:52:11.831Z", | ||
"end_date" : "2020-07-12T12:52:11.831Z", | ||
"application_id" : "42cb59a9-d5be-400b-a5c4-69b0a0026ac6" | ||
} | ||
}, | ||
"cloud": { | ||
"provider": "azure" | ||
}, | ||
"event": { | ||
"dataset": "azure.app_insights", | ||
"duration": 115000, | ||
"module": "azure" | ||
}, | ||
"metricset": { | ||
"name": "app_insights", | ||
"period": 10000 | ||
}, | ||
"service": { | ||
"type": "azure" | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
x-pack/metricbeat/module/azure/app_insights/_meta/docs.asciidoc
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,61 @@ | ||
This is the app_insights metricset. | ||
|
||
This metricset allows users to retrieve application insights metrics from specified applications. | ||
|
||
[float] | ||
==== Config options to identify resources | ||
|
||
`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. | ||
|
||
[float] | ||
==== App insights metric configurations | ||
|
||
`metrics`:: List of different metrics to collect information | ||
|
||
`id`:: (_[]string_) IDs of the metrics that's being reported. Usually, the id is descriptive enough to help identify what's measured. | ||
A list of metric names can be entered as well. | ||
Default metricsets include: `requests/count` `requests/duration` `requests/failed` `users/count``users/authenticated` | ||
`pageViews/count` `pageViews/duration` `customEvents/count` | ||
`browserTimings/processingDuration` `browserTimings/receiveDuration` `browserTimings/networkDuration` `browserTimings/sendDuration` | ||
`browserTimings/totalDuration` `dependencies/count` `dependencies/duration` `dependencies/failed` | ||
`exceptions/count` `exceptions/browser` `exceptions/server` `sessions/count` `performanceCounters/requestExecutionTime` `performanceCounters/requestsPerSecond` | ||
`performanceCounters/requestsInQueue` `performanceCounters/memoryAvailableBytes` `performanceCounters/exceptionsPerSecond` `performanceCounters/processCpuPercentage` | ||
`performanceCounters/processIOBytesPerSecond` `performanceCounters/processPrivateBytes` `performanceCounters/processorCpuPercentage` `availabilityResults/count` | ||
`availabilityResults/availabilityPercentage` `availabilityResults/duration` | ||
|
||
`interval`:: (_string_) The time interval to use when retrieving metric values. This is an ISO8601 duration. | ||
If interval is omitted, the metric value is aggregated across the entire timespan. | ||
If interval is supplied, the result may adjust the interval to a more appropriate size based on the timespan used for the query. | ||
|
||
`aggregation`:: (_[]string_) The aggregation to use when computing the metric values. | ||
To retrieve more than one aggregation at a time, separate them with a comma. | ||
If no aggregation is specified, then the default aggregation for the metric is used. | ||
|
||
`segment`:: (_[]string_) The name of the dimension to segment the metric values by. | ||
This dimension must be applicable to the metric you are retrieving. | ||
In this case, the metric data will be segmented in the order the dimensions are listed in the parameter. | ||
|
||
`top`:: (_int_) The number of segments to return. This value is only valid when segment is specified. | ||
|
||
`order_by`:: (_string_) The aggregation function and direction to sort the segments by. | ||
This value is only valid when segment is specified. | ||
|
||
`filter`:: (_string_) An expression used to filter the results. | ||
This value should be a valid OData filter expression where the keys of each clause should be applicable dimensions for the metric you are retrieving. | ||
|
||
Users can select the options to retrieve all metrics from a specific namespace using the following: | ||
|
||
["source","yaml"] | ||
---- | ||
metrics: | ||
- id: ["*"] | ||
timespan: "Microsoft.Storage/storageAccounts" | ||
---- | ||
|
||
|
||
|
||
A default non configurable timegrain of 5 min is set so users are advised to configure an interval of 300s or a multiply of it. | ||
|
||
|
24 changes: 24 additions & 0 deletions
24
x-pack/metricbeat/module/azure/app_insights/_meta/fields.yml
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,24 @@ | ||
- name: app_insights | ||
type: group | ||
release: beta | ||
description: > | ||
application insights | ||
fields: | ||
- name: application_id | ||
type: keyword | ||
description: > | ||
The application ID | ||
- name: start_date | ||
type: date | ||
description: > | ||
The start date | ||
- name: end_date | ||
type: date | ||
description: > | ||
The end date | ||
- name: metrics.*.* | ||
type: object | ||
object_type: float | ||
object_type_mapping_type: "*" | ||
description: > | ||
The metrics |
Oops, something went wrong.