Skip to content

Commit

Permalink
Merge pull request #35 from stakater-charts/remove-unnecessary-labels
Browse files Browse the repository at this point in the history
remove unnecessary labels and other doc fix
  • Loading branch information
usamaahmadkhan authored Jun 11, 2020
2 parents 0e9479b + 4d2cedc commit 05e4fd8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ To uninstall the chart:
| serviceMonitor.additionalLabels | Labels for serviceMonitor | `{}` |
| serviceMonitor.annotations | Annotations for serviceMonitor | `{}` |
| serviceMonitor.jobLabel | Job Label used for application selector | `k8s-app` |
| serviceMonitor.endpoints | Array of endpoints to be scraped by prometheus | - interval: 5s<br>&nbsp;&nbsp;path: /actuator/prometheus<br>&nbsp;&nbsp;port: web |
| serviceMonitor.endpoints | Array of endpoints to be scraped by prometheus | - interval: 5s<br>&nbsp;&nbsp;path: /actuator/prometheus<br>&nbsp;&nbsp;port: http |
3 changes: 0 additions & 3 deletions application/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ metadata:
{{- if .Values.service.additionalLabels }}
{{ toYaml .Values.service.additionalLabels | indent 4 }}
{{- end }}
{{- if .Values.serviceMonitor.enabled }}
{{ .Values.serviceMonitor.jobLabel }}: {{ template "application.name" . }}
{{- end }}
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
Expand Down
4 changes: 1 addition & 3 deletions application/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ metadata:
{{- end }}
name: {{ template "application.name" . }}-svc-monitor
spec:
{{- $jobLabel := .Values.serviceMonitor.jobLabel }}
jobLabel: {{ $jobLabel }}
selector:
matchLabels:
{{ $jobLabel }}: {{ template "application.name" . }}
app: {{ template "application.name" . }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
Expand Down
3 changes: 0 additions & 3 deletions application/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,6 @@ serviceMonitor:
annotations:
# key: value

# Job Label used for application selector
jobLabel: k8s-app

# List of the endpoints of service from which prometheus will scrape data
endpoints:
- interval: 5s
Expand Down

0 comments on commit 05e4fd8

Please sign in to comment.