Skip to content

[azure_application_insights] [app_insights] Add dimensions and metric_type for metrics - #7610

Merged
6 commits merged into
mainfrom
unknown repository
Sep 19, 2023
Merged

[azure_application_insights] [app_insights] Add dimensions and metric_type for metrics#7610
6 commits merged into
mainfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Aug 30, 2023

Copy link
Copy Markdown

What does this PR do?

Dimensions added:

  • agent.id
  • azure.dimensions.*
  • azure.namespace
  • cloud.region
  • azure.resource.id
  • azure.timegrain
  • azure.dimensions.fingerprint

Added an ingest pipeline to create a fingerprint of the azure.dimensions field.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@ghost ghost self-assigned this Aug 30, 2023
@elasticmachine

elasticmachine commented Aug 30, 2023

Copy link
Copy Markdown

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-09-19T10:56:32.421+0000

  • Duration: 15 min 55 sec

Test stats 🧪

Test Results
Failed 0
Passed 16
Skipped 0
Total 16

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine

elasticmachine commented Aug 30, 2023

Copy link
Copy Markdown

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (0/0) 💚
Files 100.0% (0/0) 💚 2.574
Classes 100.0% (0/0) 💚 2.574
Methods 57.143% (4/7) 👎 -35.439
Lines 100.0% (0/0) 💚 11.163
Conditionals 100.0% (0/0) 💚
@ghost
ghost marked this pull request as ready for review August 30, 2023 12:03
@ghost
ghost self-requested a review as a code owner August 30, 2023 12:03
@ghost ghost mentioned this pull request Aug 30, 2023
10 tasks
dimension: true
description: |
Autogenerated ID representing the fingerprint of the azure.dimensions object
- name: metrics.*.*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where metrics are actually stored? in this field or in azure.app_insights.metrics.*.* ? I think one of them is redundant and should be removed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to some app insights metrics I collected in June, the app insight metricset stores metrics in the azure.metrics.* fields:

image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gpop63, did you get metrics in these fields as well in your recent tests?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zmoog Yeah, the metrics are stored in azure.metrics so the metrics from fields.yml could be removed.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like metrics collected from azure.monitor also store fields under azure.metrics. Will that be a problem?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhm, this should be okay. All metrics in the azure.monitor field seem fine.

@zmoog zmoog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should double-check in which fields the metricset is storing metrics.

@@ -1,3 +1,8 @@
- version: "1.2.0"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change to 1.1.0 if merged before #7550

@ghost
ghost merged commit d3c73ec into elastic:main Sep 19, 2023
@elasticmachine

Copy link
Copy Markdown

Package azure_application_insights - 1.1.0 containing this change is available at https://epr.elastic.co/search?package=azure_application_insights

@andrewkroh andrewkroh added the Integration:azure_application_insights Azure Application Insights Metrics Overview label Jul 22, 2024
orestisfl pushed a commit to orestisfl/integrations that referenced this pull request May 15, 2026
…_type for metrics (elastic#7610)

* add dimensions

* bump package version

* fix pr id

* bump kibana version

* remove duplicated metrics field

* change version to 1.1.0
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Integration:azure_application_insights Azure Application Insights Metrics Overview

6 participants