Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #128 from yoshihiro-shu/yoshi/add/service-monitor
Browse files Browse the repository at this point in the history
add: service-monitor yaml
  • Loading branch information
yoshihiro-shu authored Jan 20, 2024
2 parents 5380753 + 84a453b commit 35bdb35
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions deployment/helm/tech-blog-backend/templates/service-monitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "tech-blog-backend.fullname" . }}-service-monitor
labels:
release: prometheus
{{- include "tech-blog-backend.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
app.kubernetes.io/name: tech-blog-backend
namespaceSelector:
matchNames:
- tech-blog
endpoints:
- port: api-v1
path: metrics
interval: 30s

0 comments on commit 35bdb35

Please sign in to comment.