feat(prometheus): Add metric aggregator
This commit is contained in:
parent
441a1d7235
commit
65c12b4f95
@ -16,6 +16,6 @@ data:
|
|||||||
- name: Prometheus
|
- name: Prometheus
|
||||||
type: prometheus
|
type: prometheus
|
||||||
access: proxy
|
access: proxy
|
||||||
url: "http://prometheus-operator:9090"
|
url: "http://prometheus-operated:9090"
|
||||||
version: 1
|
version: 1
|
||||||
isDefault: false
|
isDefault: false
|
||||||
|
@ -3,6 +3,7 @@ kind: Kustomization
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- grafana
|
|
||||||
- promtail
|
- promtail
|
||||||
- loki
|
- loki
|
||||||
|
- prometheus
|
||||||
|
- grafana
|
||||||
|
39623
manifests/prometheus/bundle.yaml
Normal file
39623
manifests/prometheus/bundle.yaml
Normal file
File diff suppressed because it is too large
Load Diff
26
manifests/prometheus/clusterrole.yaml
Normal file
26
manifests/prometheus/clusterrole.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: prometheus
|
||||||
|
namespace: monitoring
|
||||||
|
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources:
|
||||||
|
- nodes
|
||||||
|
- nodes/metrics
|
||||||
|
- services
|
||||||
|
- endpoints
|
||||||
|
- pods
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources:
|
||||||
|
- configmaps
|
||||||
|
verbs: ["get"]
|
||||||
|
- apiGroups:
|
||||||
|
- networking.k8s.io
|
||||||
|
resources:
|
||||||
|
- ingresses
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- nonResourceURLs: ["/metrics"]
|
||||||
|
verbs: ["get"]
|
13
manifests/prometheus/clusterrolebinding.yaml
Normal file
13
manifests/prometheus/clusterrolebinding.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: prometheus
|
||||||
|
namespace: monitoring
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: prometheus
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: prometheus
|
||||||
|
namespace: monitoring
|
6
manifests/prometheus/kustomization.yaml
Normal file
6
manifests/prometheus/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
resources:
|
||||||
|
- bundle.yaml
|
||||||
|
- serviceaccount.yaml
|
||||||
|
- clusterrole.yaml
|
||||||
|
- clusterrolebinding.yaml
|
||||||
|
- prometheus.yaml
|
11
manifests/prometheus/prometheus.yaml
Normal file
11
manifests/prometheus/prometheus.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: Prometheus
|
||||||
|
metadata:
|
||||||
|
name: prometheus
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
serviceAccountName: prometheus
|
||||||
|
serviceMonitorSelector: {}
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 300Mi
|
5
manifests/prometheus/serviceaccount.yaml
Normal file
5
manifests/prometheus/serviceaccount.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: prometheus
|
||||||
|
namespace: monitoring
|
Loading…
Reference in New Issue
Block a user