Skip to content
Snippets Groups Projects
Commit de87bcf5 authored by Sören Henning's avatar Sören Henning
Browse files

Add prometheues configuration

parent d0e70684
No related branches found
No related tags found
No related merge requests found
Pipeline #417 passed
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: prometheus
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prometheus
subjects:
- kind: ServiceAccount
name: prometheus
namespace: titan-scalability
\ No newline at end of file
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: prometheus
rules:
- apiGroups: [""]
resources:
- nodes
- services
- endpoints
- pods
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources:
- configmaps
verbs: ["get"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
\ No newline at end of file
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
name: prometheus
spec:
serviceAccountName: prometheus
serviceMonitorSelector:
matchLabels:
#app: cp-kafka
appScope: titan-ccp
resources:
requests:
memory: 400Mi
#scrapeInterval: 1s
enableAdminAPI: true
\ No newline at end of file
apiVersion: v1
kind: ServiceAccount
metadata:
name: prometheus
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment