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

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/azure_openai/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.0.2"
changes:
- description: Update fields metric type to counter.
type: bugfix
link: https://github.com/elastic/integrations/pull/9944
- version: "0.0.1"
changes:
- description: Initial release of Azure OpenAI Integration.
Expand Down
16 changes: 8 additions & 8 deletions packages/azure_openai/data_stream/metrics/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@
fields:
- name: requests.total
type: float
metric_type: gauge
metric_type: counter
description: Number of calls made to the Azure OpenAI API over a period of time.
- name: generated_tokens.total
type: float
metric_type: gauge
metric_type: counter
description: Number of tokens generated (output) from an OpenAI model.
- name: active_tokens.total
type: float
metric_type: gauge
description: Total tokens minus cached tokens over a period of time.
- name: processed_prompt_tokens.total
type: float
metric_type: gauge
metric_type: counter
description: Number of prompt tokens processed (input) on an OpenAI model.
- name: token_transaction.total
type: float
metric_type: gauge
metric_type: counter
description: Number of inference tokens processed on an OpenAI model.
- name: fine_tuned_training_hours.total
type: float
metric_type: gauge
metric_type: counter
description: Number of Training Hours Processed on an OpenAI FineTuned Model.
- name: provisioned_managed_utilization_v2.avg
type: float
Expand All @@ -32,13 +32,13 @@
description: Utilization % for a provisoned-managed deployment, calculated as (PTUs consumed / PTUs deployed) x 100. When utilization is greater than or equal to 100%, calls are throttled and error code 429 returned.
- name: raiharmful_requests.total
type: float
metric_type: gauge
metric_type: counter
description: ContentSafety - Risks&Safety. Number of calls made to Azure OpenAI API and detected as harmful(both block model and annotate mode) by content filter applied over a period of time.
- name: rairejected_requests.total
type: float
metric_type: gauge
metric_type: counter
description: ContentSafety - Risks&Safety. Number of calls made to Azure OpenAI API and rejected by content filter applied over a period of time.
- name: raitotal_requests.total
type: float
metric_type: gauge
metric_type: counter
description: ContentSafety - Risks&Safety. Number of calls made to Azure OpenAI API and detected by content filter applied over a period of time.
16 changes: 8 additions & 8 deletions packages/azure_openai/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,15 +253,15 @@ An example event for `metrics` looks as following:
| azure.dimensions.fingerprint | Autogenerated ID representing the fingerprint of the azure.dimensions object | keyword | | |
| azure.namespace | The namespace selected | keyword | | |
| azure.open_ai.active_tokens.total | Total tokens minus cached tokens over a period of time. | float | | gauge |
| azure.open_ai.fine_tuned_training_hours.total | Number of Training Hours Processed on an OpenAI FineTuned Model. | float | | gauge |
| azure.open_ai.generated_tokens.total | Number of tokens generated (output) from an OpenAI model. | float | | gauge |
| azure.open_ai.processed_prompt_tokens.total | Number of prompt tokens processed (input) on an OpenAI model. | float | | gauge |
| azure.open_ai.fine_tuned_training_hours.total | Number of Training Hours Processed on an OpenAI FineTuned Model. | float | | counter |
| azure.open_ai.generated_tokens.total | Number of tokens generated (output) from an OpenAI model. | float | | counter |
| azure.open_ai.processed_prompt_tokens.total | Number of prompt tokens processed (input) on an OpenAI model. | float | | counter |
| azure.open_ai.provisioned_managed_utilization_v2.avg | Utilization % for a provisoned-managed deployment, calculated as (PTUs consumed / PTUs deployed) x 100. When utilization is greater than or equal to 100%, calls are throttled and error code 429 returned. | float | percent | gauge |
| azure.open_ai.raiharmful_requests.total | ContentSafety - Risks&Safety. Number of calls made to Azure OpenAI API and detected as harmful(both block model and annotate mode) by content filter applied over a period of time. | float | | gauge |
| azure.open_ai.rairejected_requests.total | ContentSafety - Risks&Safety. Number of calls made to Azure OpenAI API and rejected by content filter applied over a period of time. | float | | gauge |
| azure.open_ai.raitotal_requests.total | ContentSafety - Risks&Safety. Number of calls made to Azure OpenAI API and detected by content filter applied over a period of time. | float | | gauge |
| azure.open_ai.requests.total | Number of calls made to the Azure OpenAI API over a period of time. | float | | gauge |
| azure.open_ai.token_transaction.total | Number of inference tokens processed on an OpenAI model. | float | | gauge |
| azure.open_ai.raiharmful_requests.total | ContentSafety - Risks&Safety. Number of calls made to Azure OpenAI API and detected as harmful(both block model and annotate mode) by content filter applied over a period of time. | float | | counter |
| azure.open_ai.rairejected_requests.total | ContentSafety - Risks&Safety. Number of calls made to Azure OpenAI API and rejected by content filter applied over a period of time. | float | | counter |
| azure.open_ai.raitotal_requests.total | ContentSafety - Risks&Safety. Number of calls made to Azure OpenAI API and detected by content filter applied over a period of time. | float | | counter |
| azure.open_ai.requests.total | Number of calls made to the Azure OpenAI API over a period of time. | float | | counter |
| azure.open_ai.token_transaction.total | Number of inference tokens processed on an OpenAI model. | float | | counter |
| azure.resource.group | The resource group | keyword | | |
| azure.resource.id | The id of the resource | keyword | | |
| azure.resource.name | The name of the resource | keyword | | |
Expand Down
4 changes: 2 additions & 2 deletions packages/azure_openai/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.1.3
format_version: 3.0.2
name: azure_openai
title: "Azure OpenAI"
version: 0.0.1
version: 0.0.2
source:
license: "Elastic-2.0"
description: "Azure OpenAI Logs and Metrics"
Expand Down