Skip to content

Commit

Permalink
Add ServiceMonitors for rest of OPEA applications (#524)
Browse files Browse the repository at this point in the history
Signed-off-by: Eero Tamminen <[email protected]>
  • Loading branch information
eero-t authored Nov 6, 2024
1 parent c476fde commit fc6235a
Show file tree
Hide file tree
Showing 17 changed files with 169 additions and 26 deletions.
11 changes: 6 additions & 5 deletions helm-charts/audioqna/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ curl http://localhost:3008/v1/audioqna \

## Values

| Key | Type | Default | Description |
| ---------------- | ------ | --------------------------- | ------------------------------------------------------------------------ |
| image.repository | string | `"opea/audioqna"` | |
| service.port | string | `"3008"` | |
| tgi.LLM_MODEL_ID | string | `Intel/neural-chat-7b-v3-3` | Models id from https://huggingface.co/, or predownloaded model directory |
| Key | Type | Default | Description |
| ----------------- | ------ | --------------------------- | -------------------------------------------------------------------------------------- |
| image.repository | string | `"opea/audioqna"` | |
| service.port | string | `"3008"` | |
| tgi.LLM_MODEL_ID | string | `Intel/neural-chat-7b-v3-3` | Models id from https://huggingface.co/, or predownloaded model directory |
| global.monitoring | bool | `false` | Enable usage metrics for the service components. See ../monitoring.md before enabling! |
18 changes: 18 additions & 0 deletions helm-charts/audioqna/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

{{- if .Values.global.monitoring }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "audioqna.fullname" . }}
labels:
release: {{ .Values.global.prometheusRelease }}
spec:
selector:
matchLabels:
{{- include "audioqna.selectorLabels" . | nindent 6 }}
endpoints:
- port: audioqna
interval: 5s
{{- end }}
6 changes: 6 additions & 0 deletions helm-charts/audioqna/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,9 @@ global:
modelUseHostPath: ""
# modelUseHostPath: /mnt/opea-models
# modelUsePVC: model-volume

# Install Prometheus serviceMonitors for service components
monitoring: false

# Prometheus Helm install release name needed for serviceMonitors
prometheusRelease: prometheus-stack
11 changes: 6 additions & 5 deletions helm-charts/codegen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ Open a browser to access `http://<k8s-node-ip-address>:${port}` to play with the

## Values

| Key | Type | Default | Description |
| ---------------- | ------ | ---------------------------------- | ------------------------------------------------------------------------ |
| image.repository | string | `"opea/codegen"` | |
| service.port | string | `"7778"` | |
| tgi.LLM_MODEL_ID | string | `"Qwen/Qwen2.5-Coder-7B-Instruct"` | Models id from https://huggingface.co/, or predownloaded model directory |
| Key | Type | Default | Description |
| ----------------- | ------ | ---------------------------------- | -------------------------------------------------------------------------------------- |
| image.repository | string | `"opea/codegen"` | |
| service.port | string | `"7778"` | |
| tgi.LLM_MODEL_ID | string | `"Qwen/Qwen2.5-Coder-7B-Instruct"` | Models id from https://huggingface.co/, or predownloaded model directory |
| global.monitoring | bool | `false` | Enable usage metrics for the service components. See ../monitoring.md before enabling! |
18 changes: 18 additions & 0 deletions helm-charts/codegen/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

{{- if .Values.global.monitoring }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "codegen.fullname" . }}
labels:
release: {{ .Values.global.prometheusRelease }}
spec:
selector:
matchLabels:
{{- include "codegen.selectorLabels" . | nindent 6 }}
endpoints:
- port: codegen
interval: 5s
{{- end }}
6 changes: 6 additions & 0 deletions helm-charts/codegen/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@ global:
modelUseHostPath: ""
# modelUseHostPath: /mnt/opea-models
# modelUsePVC: model-volume

# Install Prometheus serviceMonitors for service components
monitoring: false

# Prometheus Helm install release name needed for serviceMonitors
prometheusRelease: prometheus-stack
11 changes: 6 additions & 5 deletions helm-charts/codetrans/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ Open a browser to access `http://<k8s-node-ip-address>:${port}` to play with the

## Values

| Key | Type | Default | Description |
| ---------------- | ------ | -------------------------------------- | ------------------------------------------------------------------------ |
| image.repository | string | `"opea/codetrans"` | |
| service.port | string | `"7777"` | |
| tgi.LLM_MODEL_ID | string | `"mistralai/Mistral-7B-Instruct-v0.3"` | Models id from https://huggingface.co/, or predownloaded model directory |
| Key | Type | Default | Description |
| ----------------- | ------ | -------------------------------------- | -------------------------------------------------------------------------------------- |
| image.repository | string | `"opea/codetrans"` | |
| service.port | string | `"7777"` | |
| tgi.LLM_MODEL_ID | string | `"mistralai/Mistral-7B-Instruct-v0.3"` | Models id from https://huggingface.co/, or predownloaded model directory |
| global.monitoring | bool | `false` | Enable usage metrics for the service components. See ../monitoring.md before enabling! |
18 changes: 18 additions & 0 deletions helm-charts/codetrans/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

{{- if .Values.global.monitoring }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "codetrans.fullname" . }}
labels:
release: {{ .Values.global.prometheusRelease }}
spec:
selector:
matchLabels:
{{- include "codetrans.selectorLabels" . | nindent 6 }}
endpoints:
- port: codetrans
interval: 5s
{{- end }}
6 changes: 6 additions & 0 deletions helm-charts/codetrans/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,9 @@ global:
modelUseHostPath: ""
# modelUseHostPath: /mnt/opea-models
# modelUsePVC: model-volume

# Install Prometheus serviceMonitors for service components
monitoring: false

# Prometheus Helm install release name needed for serviceMonitors
prometheusRelease: prometheus-stack
11 changes: 6 additions & 5 deletions helm-charts/docsum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ Open a browser to access `http://<k8s-node-ip-address>:${port}` to play with the

## Values

| Key | Type | Default | Description |
| ---------------- | ------ | ----------------------------- | ------------------------------------------------------------------------ |
| image.repository | string | `"opea/docsum"` | |
| service.port | string | `"8888"` | |
| tgi.LLM_MODEL_ID | string | `"Intel/neural-chat-7b-v3-3"` | Models id from https://huggingface.co/, or predownloaded model directory |
| Key | Type | Default | Description |
| ----------------- | ------ | ----------------------------- | -------------------------------------------------------------------------------------- |
| image.repository | string | `"opea/docsum"` | |
| service.port | string | `"8888"` | |
| tgi.LLM_MODEL_ID | string | `"Intel/neural-chat-7b-v3-3"` | Models id from https://huggingface.co/, or predownloaded model directory |
| global.monitoring | bool | `false` | Enable usage metrics for the service components. See ../monitoring.md before enabling! |
18 changes: 18 additions & 0 deletions helm-charts/docsum/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

{{- if .Values.global.monitoring }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "docsum.fullname" . }}
labels:
release: {{ .Values.global.prometheusRelease }}
spec:
selector:
matchLabels:
{{- include "docsum.selectorLabels" . | nindent 6 }}
endpoints:
- port: docsum
interval: 5s
{{- end }}
6 changes: 6 additions & 0 deletions helm-charts/docsum/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ global:
modelUseHostPath: ""
# modelUseHostPath: /mnt/opea-models
# modelUsePVC: model-volume

# Install Prometheus serviceMonitors for service components
monitoring: false

# Prometheus Helm install release name needed for serviceMonitors
prometheusRelease: prometheus-stack
11 changes: 6 additions & 5 deletions helm-charts/faqgen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ Open a browser to access `http://<k8s-node-ip-address>:${port}` to play with the

## Values

| Key | Type | Default | Description |
| ---------------- | ------ | --------------------------------------- | ------------------------------------------------------------------------ |
| image.repository | string | `"opea/faqgen"` | |
| service.port | string | `"8888"` | |
| tgi.LLM_MODEL_ID | string | `"meta-llama/Meta-Llama-3-8B-Instruct"` | Models id from https://huggingface.co/, or predownloaded model directory |
| Key | Type | Default | Description |
| ----------------- | ------ | --------------------------------------- | -------------------------------------------------------------------------------------- |
| image.repository | string | `"opea/faqgen"` | |
| service.port | string | `"8888"` | |
| tgi.LLM_MODEL_ID | string | `"meta-llama/Meta-Llama-3-8B-Instruct"` | Models id from https://huggingface.co/, or predownloaded model directory |
| global.monitoring | bool | `false` | Enable usage metrics for the service components. See ../monitoring.md before enabling! |
18 changes: 18 additions & 0 deletions helm-charts/faqgen/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

{{- if .Values.global.monitoring }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "faqgen.fullname" . }}
labels:
release: {{ .Values.global.prometheusRelease }}
spec:
selector:
matchLabels:
{{- include "faqgen.selectorLabels" . | nindent 6 }}
endpoints:
- port: faqgen
interval: 5s
{{- end }}
6 changes: 6 additions & 0 deletions helm-charts/faqgen/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,9 @@ global:
modelUseHostPath: ""
# modelUseHostPath: /mnt/opea-models
# modelUsePVC: model-volume

# Install Prometheus serviceMonitors for service components
monitoring: false

# Prometheus Helm install release name needed for serviceMonitors
prometheusRelease: prometheus-stack
2 changes: 1 addition & 1 deletion helm-charts/visualqna/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ Open a browser to access `http://<k8s-node-ip-address>:${port}` to play with the
| image.repository | string | `"opea/visualqna"` | |
| service.port | string | `"8888"` | |
| tgi.LLM_MODEL_ID | string | `"llava-hf/llava-v1.6-mistral-7b-hf"` | Models id from https://huggingface.co/, or predownloaded model directory |
| global.monitoring | bop; | false | Enable usage metrics for the service components. See ../monitoring.md before enabling! |
| global.monitoring | bool | `false` | Enable usage metrics for the service components. See ../monitoring.md before enabling! |
18 changes: 18 additions & 0 deletions helm-charts/visualqna/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

{{- if .Values.global.monitoring }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "visualqna.fullname" . }}
labels:
release: {{ .Values.global.prometheusRelease }}
spec:
selector:
matchLabels:
{{- include "visualqna.selectorLabels" . | nindent 6 }}
endpoints:
- port: visualqna
interval: 5s
{{- end }}

0 comments on commit fc6235a

Please sign in to comment.