Skip to content

Conversation

@lucian-ioan
Copy link
Contributor

@lucian-ioan lucian-ioan commented May 22, 2024

Proposed commit message

Update metric types from gauge to counter for Azure OpenAI integration.

The metric type "gauge" is used for values that can go up or down such as memory usage or current active requests. It represents the current value at a specific point in time.

For metrics that represent cumulative counts, such as the total number of requests or tokens over time, the "counter" metric type is more appropriate. Counters only increase (or reset), making them suitable for cumulative data.

Changes to metric types:

  • provisioned_managed_utilization_v2.avg -> kept as gauge, since it represents a percentage that can vary.
  • active_tokens.total -> kept as gauge, (total tokens - cached tokens) over a period of time, this can decrease if the number of cached tokens increases.
    Rest of the fields are updated to metric_type: counter

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

@lucian-ioan lucian-ioan added the Integration:azure Azure Logs label May 22, 2024
@lucian-ioan lucian-ioan self-assigned this May 22, 2024
@elasticmachine
Copy link

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@elasticmachine
Copy link

💚 Build Succeeded

cc @lucian-ioan

@elastic-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@muthu-mps muthu-mps marked this pull request as ready for review May 23, 2024 03:38
@muthu-mps muthu-mps requested a review from a team as a code owner May 23, 2024 03:38
Copy link
Contributor

@muthu-mps muthu-mps left a comment

Choose a reason for hiding this comment

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

Looks good!

@muthu-mps muthu-mps merged commit 35102d0 into elastic:main May 23, 2024
@elasticmachine
Copy link

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

@andrewkroh andrewkroh added Integration:azure_openai Azure OpenAI and removed Integration:azure Azure Logs labels Jul 22, 2024
@lucian-ioan lucian-ioan deleted the update_azure_openai_fields_type branch February 6, 2025 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4 participants