2017-04-24 17:34:59 -07:00
|
|
|
apiVersion: v1
|
|
|
|
|
kind: ServiceAccount
|
|
|
|
|
metadata:
|
|
|
|
|
name: prometheus
|
2018-05-18 14:31:54 -07:00
|
|
|
namespace: rook-ceph
|
2017-04-24 17:34:59 -07:00
|
|
|
---
|
2020-08-14 10:59:17 +02:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2017-04-24 17:34:59 -07:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
name: prometheus
|
2019-04-12 21:39:08 +05:30
|
|
|
aggregationRule:
|
|
|
|
|
clusterRoleSelectors:
|
2021-03-15 12:24:32 +05:30
|
|
|
- matchLabels:
|
|
|
|
|
rbac.ceph.rook.io/aggregate-to-prometheus: "true"
|
2019-04-12 21:39:08 +05:30
|
|
|
rules: []
|
|
|
|
|
---
|
2020-08-14 10:59:17 +02:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2019-04-12 21:39:08 +05:30
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
name: prometheus-rules
|
|
|
|
|
labels:
|
|
|
|
|
rbac.ceph.rook.io/aggregate-to-prometheus: "true"
|
2017-04-24 17:34:59 -07:00
|
|
|
rules:
|
2021-03-15 12:24:32 +05:30
|
|
|
- apiGroups: [""]
|
|
|
|
|
resources:
|
|
|
|
|
- nodes
|
|
|
|
|
- services
|
|
|
|
|
- endpoints
|
|
|
|
|
- pods
|
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
|
- apiGroups: [""]
|
|
|
|
|
resources:
|
|
|
|
|
- configmaps
|
|
|
|
|
verbs: ["get"]
|
|
|
|
|
- nonResourceURLs: ["/metrics"]
|
|
|
|
|
verbs: ["get"]
|
2017-04-24 17:34:59 -07:00
|
|
|
---
|
2020-08-14 10:59:17 +02:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2017-04-24 17:34:59 -07:00
|
|
|
kind: ClusterRoleBinding
|
|
|
|
|
metadata:
|
|
|
|
|
name: prometheus
|
|
|
|
|
roleRef:
|
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
name: prometheus
|
|
|
|
|
subjects:
|
2021-03-15 12:24:32 +05:30
|
|
|
- kind: ServiceAccount
|
|
|
|
|
name: prometheus
|
|
|
|
|
namespace: rook-ceph
|
2017-04-24 17:34:59 -07:00
|
|
|
---
|
2017-12-01 15:02:56 -08:00
|
|
|
apiVersion: monitoring.coreos.com/v1
|
2017-03-10 11:23:56 -08:00
|
|
|
kind: Prometheus
|
|
|
|
|
metadata:
|
|
|
|
|
name: rook-prometheus
|
2018-05-18 14:31:54 -07:00
|
|
|
namespace: rook-ceph
|
2017-04-24 17:34:59 -07:00
|
|
|
labels:
|
|
|
|
|
prometheus: rook-prometheus
|
2017-03-10 11:23:56 -08:00
|
|
|
spec:
|
2017-04-24 17:34:59 -07:00
|
|
|
serviceAccountName: prometheus
|
2017-03-10 11:23:56 -08:00
|
|
|
serviceMonitorSelector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
team: rook
|
2019-04-16 15:28:33 +05:30
|
|
|
ruleSelector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
role: alert-rules
|
|
|
|
|
prometheus: rook-prometheus
|
2017-03-10 11:23:56 -08:00
|
|
|
resources:
|
|
|
|
|
requests:
|
2018-07-26 10:52:19 -06:00
|
|
|
memory: 400Mi
|