mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-11-25 19:05:44 +01:00
40 lines
963 B
YAML
40 lines
963 B
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: Prometheus
|
|
metadata:
|
|
name: k8s
|
|
labels:
|
|
prometheus: k8s
|
|
spec:
|
|
replicas: 1
|
|
baseImage: carlosedp/prometheus
|
|
version: v2.2.1
|
|
retention: "168h"
|
|
serviceAccountName: prometheus-k8s
|
|
serviceMonitorSelector:
|
|
matchExpressions:
|
|
- {key: k8s-app, operator: Exists}
|
|
ruleSelector:
|
|
matchLabels:
|
|
role: prometheus-rulefiles
|
|
prometheus: k8s
|
|
resources:
|
|
requests:
|
|
# 2Gi is default, but won't schedule if you don't have a node with >2Gi
|
|
# memory. Modify based on your target and time-series count for
|
|
# production use. This value is mainly meant for demonstration/testing
|
|
# purposes.
|
|
memory: 512Mi
|
|
alerting:
|
|
alertmanagers:
|
|
- namespace: monitoring
|
|
name: alertmanager-main
|
|
port: web
|
|
storage:
|
|
volumeClaimTemplate:
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 50Gi
|