Skip to content

Commit

Permalink
Merge pull request #22 from commandemy/fix-issues
Browse files Browse the repository at this point in the history
added patch and updated service monitor
  • Loading branch information
mgrainer authored Jun 22, 2021
2 parents 40589ea + af37aeb commit bf51134
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
20 changes: 20 additions & 0 deletions examples/12-factor-app-v2/k8s/patch-cluster-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
- apiGroups:
- ""
resources:
- nodes/metrics
verbs:
- get
- nonResourceURLs:
- /metrics
verbs:
- get
- apiGroups:
- ""
resources:
- services
- pods
- endpoints
verbs:
- get
- list
- watch
3 changes: 2 additions & 1 deletion examples/12-factor-app-v2/k8s/service-monitor-traefik.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ spec:
matchLabels:
app: traefik
namespaceSelector:
name: 12-factor-app
matchNames:
- 12-factor-app
endpoints:
- port: metrics
5 changes: 3 additions & 2 deletions examples/12-factor-app-v2/k8s/service-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ spec:
matchLabels:
app: api
namespaceSelector:
name: 12-factor-app
matchNames:
- 12-factor-app
endpoints:
- port: metrics # Here we use the name of the port defined earlier
- port: metrics # Here we use the name of the port defined earlier

0 comments on commit bf51134

Please sign in to comment.