Skip to content

Commit

Permalink
Add support for servicemonitor for mcrouter, bump image (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkarlsen authored Apr 1, 2022
1 parent 597c0ed commit 2f532e7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/mcrouter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: mcrouter
home: https://github.com/facebook/mcrouter
icon: https://img.stackshare.io/service/4370/G7xgmEZ.png
version: 0.2.6
version: 0.3.0
appVersion: 0.40.0
description: Mcrouter is a memcached protocol router for scaling memcached deployments.
sources:
Expand Down
16 changes: 16 additions & 0 deletions charts/mcrouter/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- if and .Values.exporter.serviceMonitor.enabled .Values.exporter.enabled -}}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ template "fullname" . }}
spec:
endpoints:
- path: /metrics
port: monitoring
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
selector:
matchLabels:
app: {{ template "fullname" . }}
{{- end -}}
4 changes: 3 additions & 1 deletion charts/mcrouter/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Container image
image: quay.io/evryfs/docker-mcrouter:0.40.0-6
image: quay.io/evryfs/docker-mcrouter:0.40.0-8

## Memcached chart parameters
memcached:
Expand Down Expand Up @@ -59,6 +59,8 @@ statefulset:

exporter:
enabled: false
serviceMonitor:
enabled: false
image:
repository: quay.io/dev25/mcrouter_exporter
tag: 0.1.0
Expand Down

0 comments on commit 2f532e7

Please sign in to comment.