-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable monitoring shinyproxy via prometheus (#67)
* added skip_existing flag, bumped to 1.6.0 * added servicemonitor * Added specific service for prometheus's servicemonitor * add code chunk langauges * Shinyproxy monitor doc * Update configmap.yaml * more parameters for configuring monitoring * only minor version is enough
- Loading branch information
Showing
6 changed files
with
137 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- if .Values.monitor.enabled -}} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "library-chart.fullname" . }}-metrics | ||
labels: | ||
{{- include "library-chart.labels" . | nindent 4 }} | ||
servicename: {{ include "library-chart.fullname" . }}-metrics | ||
spec: | ||
type: {{ .Values.service.type }} | ||
ports: | ||
- name: {{ .Values.monitor.port.name }} | ||
port: 9090 | ||
targetPort: {{ .Values.monitor.port.number }} | ||
protocol: TCP | ||
selector: | ||
{{- include "library-chart.selectorLabels" . | nindent 4 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- if .Values.monitor.enabled -}} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ include "library-chart.fullname" . }}-monitor | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
release: {{ .Values.monitor.metadata.labels.release }} | ||
app.kubernetes.io/name: {{ include "library-chart.fullname" . }} | ||
spec: | ||
endpoints: | ||
- port: {{ .Values.monitor.port.name }} | ||
interval: {{ .Values.monitor.interval }} | ||
path: /actuator/prometheus | ||
namespaceSelector: | ||
matchNames: | ||
- {{ .Release.Namespace }} | ||
selector: | ||
matchLabels: | ||
servicename: {{ include "library-chart.fullname" . }}-metrics | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters