Skip to content

[Azure] [compute_vm_scaleset] List exposed metrics; add dimension and metric_type metadata #7177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

tetianakravchenko
Copy link
Contributor

@tetianakravchenko tetianakravchenko commented Jul 28, 2023

What does this PR do?

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

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
…amespace; add virtual_machine dimension; add changelog record

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
@tetianakravchenko tetianakravchenko requested a review from a team as a code owner July 28, 2023 10:52
@elasticmachine
Copy link

elasticmachine commented Jul 28, 2023

💚 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-08-16T16:18:32.395+0000

  • Duration: 13 min 6 sec

Test stats 🧪

Test Results
Failed 0
Passed 33
Skipped 0
Total 33

🤖 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
Copy link

elasticmachine commented Jul 28, 2023

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (3/3) 💚
Files 100.0% (3/3) 💚
Classes 100.0% (3/3) 💚
Methods 73.333% (22/30) 👍
Lines 100.0% (21/21) 💚
Conditionals 100.0% (0/0) 💚

type: float
metric_type: gauge
description: Bytes/Sec read from a single disk during monitoring period for OS disk
- name: memory_commit_limit.avg
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FYI: I couldn't get this metric
available in UI list:
Screenshot 2023-07-28 at 12 21 52

Copy link
Contributor

@zmoog zmoog left a comment

Choose a reason for hiding this comment

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

The changes look good.

Did you get a chance to collect the missing metric in your tests? I'm not an expert here, but I'm available if you wan to try to get it before merging.

@andrewkroh andrewkroh added the Integration:azure Azure Logs label Aug 1, 2023
@tetianakravchenko
Copy link
Contributor Author

@zmoog

Did you get a chance to collect the missing metric in your tests? I'm not an expert here, but I'm available if you wan to try to get it before merging.

no, I wasn't able to get this one metric Memory\\Commit Limit. The problem is that this metric is not even available on the Azure > VM > Diagnostic settings.

Also I wasn't able to find the full list of metrics, that are supposed to be available in the azure documentation, maybe you know about such documentation?

- name: dimensions
type: group
fields:
- name: "vmname"
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is no such field exposed, list of dimensions is defined in configuration - https://github.com/elastic/integrations/blob/main/packages/azure_metrics/data_stream/compute_vm_scaleset/agent/stream/stream.yml.hbs#L71-L73

from my understanding - in this case metric should be grouped by vmname only, if only this dimension is defined

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added lun azure dimension in this PR - #7314

coult you please have another look on this PR?

@zmoog
Copy link
Contributor

zmoog commented Aug 3, 2023

Also I wasn't able to find the full list of metrics, that are supposed to be available in the azure documentation, maybe you know about such documentation?

I can't find this metric either.

I suppose you already checked at https://learn.microsoft.com/en-us/azure/azure-monitor/reference/supported-metrics/metrics-index; I remember this page in your browser's tabs.

@tetianakravchenko
Copy link
Contributor Author

Also I wasn't able to find the full list of metrics, that are supposed to be available in the azure documentation, maybe you know about such documentation?

I can't find this metric either.

I suppose you already checked at https://learn.microsoft.com/en-us/azure/azure-monitor/reference/supported-metrics/metrics-index; I remember this page in your browser's tabs.

yes, I've seen it, but it does not contain the guest VM metrics there

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Copy link
Contributor

@agithomas agithomas left a comment

Choose a reason for hiding this comment

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

LGTM!

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
@tetianakravchenko tetianakravchenko merged commit 97f2bcf into elastic:main Aug 17, 2023
@elasticmachine
Copy link

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

@andrewkroh andrewkroh added Integration:azure_metrics Azure Resource Metrics and removed Integration:azure Azure Logs labels Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Integration:azure_metrics Azure Resource Metrics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants