Skip to content

Commit

Permalink
[Backport 7.61.x] Add metrics origins for Nvidia Nim integration (#32063
Browse files Browse the repository at this point in the history
)

Co-authored-by: Ilia Kurenkov <[email protected]>
  • Loading branch information
agent-platform-auto-pr[bot] and iliakur authored Dec 11, 2024
1 parent 661b161 commit 0450ad4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/metrics/metricsource.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ const (
MetricSourceAppgateSDP
MetricSourceAnyscale
MetricSourceMilvus
MetricSourceNvidiaNim
)

// String returns a string representation of MetricSource
Expand Down Expand Up @@ -705,6 +706,8 @@ func (ms MetricSource) String() string {
return "karpenter"
case MetricSourceNvidiaTriton:
return "nvidia_triton"
case MetricSourceNvidiaNim:
return "nvidia_nim"
case MetricSourceRay:
return "ray"
case MetricSourceStrimzi:
Expand Down Expand Up @@ -1233,6 +1236,8 @@ func CheckNameToMetricSource(name string) MetricSource {
return MetricSourceKarpenter
case "nvidia_triton":
return MetricSourceNvidiaTriton
case "nvidia_nim":
return MetricSourceNvidiaNim
case "ray":
return MetricSourceRay
case "strimzi":
Expand Down
3 changes: 3 additions & 0 deletions pkg/serializer/internal/metrics/origin_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ func metricSourceToOriginCategory(ms metrics.MetricSource) int32 {
metrics.MetricSourceYarn,
metrics.MetricSourceZk,
metrics.MetricSourceAwsNeuron,
metrics.MetricSourceNvidiaNim,
metrics.MetricSourceMilvus:
return 11 // integrationMetrics
default:
Expand Down Expand Up @@ -883,6 +884,8 @@ func metricSourceToOriginService(ms metrics.MetricSource) int32 {
return 419
case metrics.MetricSourceMilvus:
return 425
case metrics.MetricSourceNvidiaNim:
return 426
default:
return 0
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Each section from every release note are combined when the
# CHANGELOG.rst is rendered. So the text needs to be worded so that
# it does not depend on any information only available in another
# section. This may mean repeating some details, but each section
# must be readable independently of the other.
#
# Each section note must be formatted as reStructuredText.
---
features:
- |
Add metrics origins for Nvidia Nim integration.

0 comments on commit 0450ad4

Please sign in to comment.