Skip to content

Commit

Permalink
ServiceMonitors for api-server and oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiimk committed Sep 14, 2024
1 parent 2906cb9 commit eb054b2
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/kamu-api-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: kamu-api-server
description: API server component of the Kamu Compute Node
type: application
version: 0.37.0
appVersion: "0.37.0"
version: 0.37.1
appVersion: "0.37.1"
home: https://kamu.dev
icon: https://www.kamu.dev/images/kamu_logo_icon_bg_square.png
sources:
Expand Down
15 changes: 15 additions & 0 deletions charts/kamu-api-server/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "kamu-api-server.fullname" . }}
labels:
{{- include "kamu-api-server.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "kamu-api-server.selectorLabels" . | nindent 6 }}
endpoints:
- interval: 15s
path: /system/metrics
port: http
scheme: http
4 changes: 2 additions & 2 deletions charts/kamu-oracle-provider/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: kamu-oracle-provider
description: Oracle provider that uses Kamu Node to supply data to blockchain smart contracts
type: application
version: 0.37.0
appVersion: "0.37.0"
version: 0.37.1
appVersion: "0.37.1"
home: https://kamu.dev
icon: https://www.kamu.dev/images/kamu_logo_icon_bg_square.png
sources:
Expand Down
21 changes: 21 additions & 0 deletions charts/kamu-oracle-provider/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "kamu-oracle-provider.fullname" . }}
labels:
{{- include "kamu-oracle-provider.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
# Headless service, for monitoring only
clusterIP: None
type: ClusterIP
selector:
{{- include "kamu-oracle-provider.selectorLabels" . | nindent 4 }}
ports:
- port: 8080
name: http
targetPort: http
protocol: TCP
15 changes: 15 additions & 0 deletions charts/kamu-oracle-provider/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "kamu-api-server.fullname" . }}
labels:
{{- include "kamu-api-server.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "kamu-api-server.selectorLabels" . | nindent 6 }}
endpoints:
- interval: 15s
path: /system/metrics
port: http
scheme: http

0 comments on commit eb054b2

Please sign in to comment.