使用Operator管理Prometheus
创建Prometheus实例
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
name: inst
namespace: monitoring
spec:
resources:
requests:
memory: 400Mi$ kubectl create -f prometheus-inst.yaml
prometheus.monitoring.coreos.com/inst-1 created$ kubectl -n monitoring get statefulsets
NAME DESIRED CURRENT AGE
prometheus-inst 1 1 1m
使用ServiceMonitor管理监控配置
关联Promethues与ServiceMonitor
自定义ServiceAccount
Last updated