2
This commit is contained in:
parent
19814868a0
commit
14fd382eff
@ -4,6 +4,7 @@ data:
|
|||||||
global:
|
global:
|
||||||
scrape_interval: 15s
|
scrape_interval: 15s
|
||||||
evaluation_interval: 15s
|
evaluation_interval: 15s
|
||||||
|
query_log_file: /prometheus/query.log
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
|
|
||||||
- job_name: 'kubernetes-nodes'
|
- job_name: 'kubernetes-nodes'
|
||||||
|
@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
kind: "Service"
|
kind: "Service"
|
||||||
metadata:
|
metadata:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
namespace: prometheus
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
spec:
|
spec:
|
||||||
@ -21,7 +21,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
name: prometheus
|
name: prometheus
|
||||||
namespace: prometheus
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@ -34,7 +34,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: prometheus
|
- name: prometheus
|
||||||
image: prom/prometheus:v2.2.1
|
image: prom/prometheus:v2.35.0
|
||||||
command:
|
command:
|
||||||
- "/bin/prometheus"
|
- "/bin/prometheus"
|
||||||
args:
|
args:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
@ -25,7 +25,7 @@ metadata:
|
|||||||
name: prometheus
|
name: prometheus
|
||||||
namespace: default
|
namespace: default
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user