-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3839dcf
commit 7b06cc3
Showing
3 changed files
with
48 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{/* | ||
Get default scaling metric | ||
*/}} | ||
{{- define "supersonic.defaultMetric" -}} | ||
{{- if not ( eq .Values.prometheus.serverLoadMetric "" ) }} | ||
{{- printf "%s" .Values.prometheus.serverLoadMetric -}} | ||
{{- else }} | ||
sum by (release) ( | ||
rate(nv_inference_queue_duration_us{release=~"{{ include "supersonic.name" . }}"}[15s]) | ||
) | ||
/ | ||
sum by (release) ( | ||
(rate(nv_inference_exec_count{release=~"{{ include "supersonic.name" . }}"}[15s]) * 1000) + 0.001 | ||
) | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Get server load threshold (defaults to 100 if not set) | ||
*/}} | ||
{{- define "supersonic.serverLoadThreshold" -}} | ||
{{- default 100 .Values.prometheus.serverLoadThreshold -}} | ||
{{- end -}} |