Skip to content

Commit

Permalink
kruise state metrics add ServiceMonitor configuration (#44)
Browse files Browse the repository at this point in the history
Signed-off-by: liheng.zms <[email protected]>
  • Loading branch information
zmberg authored Feb 15, 2023
1 parent bafb56c commit 0e5e5ba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion versions/kruise-state-metrics/0.1/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: kruise-state-metrics
description: Install kruise-state-metrics to generate and expose kruise metrics
type: application
version: 0.1.0
version: 0.1.1
appVersion: "1.16.0"
icon: https://openkruise.io/img/logo_white.png
keywords:
Expand Down
14 changes: 14 additions & 0 deletions versions/kruise-state-metrics/0.1/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,17 @@ spec:
targetPort: telemetry
selector:
{{- include "kruise-state-metrics.selectorLabels" . | nindent 4 }}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "kruise-state-metrics.fullname" . }}
namespace: {{ .Values.installation.namespace }}
labels:
{{- include "kruise-state-metrics.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "kruise-state-metrics.labels" . | nindent 6 }}
endpoints:
- port: http-metrics

0 comments on commit 0e5e5ba

Please sign in to comment.