-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathprometheus-prometheus.yaml
48 lines (48 loc) · 1.23 KB
/
prometheus-prometheus.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# for local clusters, applies grafana user keys and tokens
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
labels:
prometheus: k8s
name: k8s
namespace: default
spec:
alerting:
alertmanagers:
- name: alertmanager-main
namespace: default
port: web
image: quay.io/prometheus/prometheus:v2.22.1
nodeSelector:
kubernetes.io/os: linux
podMonitorNamespaceSelector: {}
podMonitorSelector: {}
probeNamespaceSelector: {}
probeSelector: {}
replicas: 2
resources:
requests:
memory: 400Mi
ruleSelector:
matchLabels:
prometheus: k8s
role: alert-rules
securityContext:
fsGroup: 2000
runAsNonRoot: true
runAsUser: 1000
serviceAccountName: prometheus-k8s
serviceMonitorNamespaceSelector: {}
serviceMonitorSelector: {}
version: v2.22.1
remoteWrite:
- url: 'https://prometheus-us-central1.grafana.net/api/prom/push'
basicAuth:
username:
name: kubepromsecret
key: '750773'
password:
name: kubepromsecret
key: 'eyJrIjoiOWVlMDRiMWI5NTNlYWM4ODY5MTQ5Zjk4MTE2YjRiNWJiYmEwMDQ0OSIsIm4iOiJQb3NlZGlvbiIsImlkIjo3ODQ5NjJ9'
replicaExternalLabelName: '__replica__'
externalLabels: { cluster: 'test' }