Skip to content

Commit

Permalink
Add annotation for Prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaiacs committed Aug 21, 2023
1 parent 0b5b497 commit e0d4f01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ metadata:
name: {{ .Chart.Name }}
labels:
app: {{ .Chart.Name }}
spec:
annotations:
prometheus.io/scrape: {{ .Values.prometheus_scrape | quote }}
prometheus.io/path: {{ .Values.prometheus_path | quote }}
prometheus.io/port: {{ .Values.prometheus_port | quote }}
replicas: 1
selector:
matchLabels:
Expand Down
4 changes: 4 additions & 0 deletions helm/andrew-django-admin/templates/postgres-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: {{ .Chart.Name }}-postgres
labels:
app: {{ .Chart.Name }}-postgres
annotations:
prometheus.io/scrape: {{ .Values.prometheus_scrape | quote }}
prometheus.io/path: {{ .Values.prometheus_path | quote }}
prometheus.io/port: {{ .Values.prometheus_port | quote }}
spec:
replicas: 1
selector:
Expand Down

0 comments on commit e0d4f01

Please sign in to comment.