mirror of
				https://github.com/prometheus-operator/kube-prometheus.git
				synced 2025-11-04 10:01:03 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			662 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			662 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
apiVersion: monitoring.coreos.com/v1
 | 
						|
kind: Prometheus
 | 
						|
metadata:
 | 
						|
  name: frontend
 | 
						|
  namespace: default
 | 
						|
  labels:
 | 
						|
    prometheus: frontend
 | 
						|
spec:
 | 
						|
  serviceAccountName: prometheus-frontend
 | 
						|
  version: v1.7.1
 | 
						|
  serviceMonitorSelector:
 | 
						|
    matchLabels:
 | 
						|
      tier: frontend
 | 
						|
  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: 400Mi
 | 
						|
  alerting:
 | 
						|
    alertmanagers:
 | 
						|
    - namespace: monitoring
 | 
						|
      name: alertmanager-main
 | 
						|
      port: web
 |