Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Commit

Permalink
Create service monitor for prometheus metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyRet committed Jan 9, 2019
1 parent 8aa8e94 commit 8b4c408
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions deploy/metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: allocation-api
namespace: offender-management-staging
labels:
k8s-apps: allocation-api
spec:
jobLabel: allocation-api
selector:
matchExpressions:
- {key: allocation-api, operator: Exists}
namespaceSelector:
matchNames:
- offender-management-staging
- monitoring
endpoints:
- port: http-metrics
interval: 15s

0 comments on commit 8b4c408

Please sign in to comment.