Skip to content

Instantly share code, notes, and snippets.

@alexanderdavidsen
Last active April 5, 2018 10:45
Show Gist options
  • Save alexanderdavidsen/38e33526e6b16aa1e8daa7afd96614cf to your computer and use it in GitHub Desktop.
Save alexanderdavidsen/38e33526e6b16aa1e8daa7afd96614cf to your computer and use it in GitHub Desktop.
Guard serviceMonitor for prometheus-operator
# Creates a serviceMonitor for Guard. Can be used with prometheus-operator:
prometheus:
serviceMonitors:
- name: guard
labels:
prometheus: kube-prometheus
selector:
matchLabels:
app: guard
endpoints:
- port: api
interval: 30s
path: /metrics
scheme: https
tlsConfig:
insecureSkipVerify: true
namespaceSelector:
any: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment