forked from quarkusio/quarkus-super-heroes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prometheus-minikube.yml
137 lines (130 loc) · 3.38 KB
/
prometheus-minikube.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
---
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-config
labels:
system: quarkus-super-heroes
data:
prometheus.yml: |2
global:
scrape_interval: 10s
external_labels:
system: quarkus-super-heroes
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ['localhost:9090']
- job_name: apicurio
honor_labels: true
static_configs:
- targets: ['apicurio:8080']
labels:
app: apicurio
application: fights-service
system: quarkus-super-heroes
- job_name: heroes
metrics_path: /q/metrics
honor_labels: true
static_configs:
- targets: ['rest-heroes']
labels:
app: rest-heroes
application: heroes-service
system: quarkus-super-heroes
- job_name: villains
metrics_path: /q/metrics
honor_labels: true
static_configs:
- targets: ['rest-villains']
labels:
app: rest-villains
application: villains-service
system: quarkus-super-heroes
- job_name: fights
metrics_path: /q/metrics
honor_labels: true
static_configs:
- targets: ['rest-fights']
labels:
app: rest-fights
application: fights-service
system: quarkus-super-heroes
- job_name: event-stats
metrics_path: /q/metrics
honor_labels: true
static_configs:
- targets: ['event-statistics']
labels:
app: event-statistics
application: event-stats
system: quarkus-super-heroes
- job_name: ui-super-heroes
honor_labels: true
static_configs:
- targets: ['ui-super-heroes']
labels:
app: ui-super-heroes
application: super-heroes
system: quarkus-super-heroes
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus
labels:
system: quarkus-super-heroes
name: prometheus
app.kubernetes.io/part-of: super-heroes
app.openshift.io/runtime: prometheus
annotations:
app.openshift.io/connects-to: ui-super-heroes,rest-fights,rest-villains,rest-heroes,event-statistics
spec:
replicas: 1
selector:
matchLabels:
name: prometheus
template:
metadata:
labels:
system: quarkus-super-heroes
name: prometheus
spec:
containers:
- image: quay.io/prometheus/prometheus:v2.32.1
name: prometheus
ports:
- containerPort: 9090
volumeMounts:
- name: prometheus-config
mountPath: /etc/prometheus
- name: prometheus-data
mountPath: /prometheus
resources:
limits:
memory: 128Mi
requests:
memory: 32Mi
volumes:
- name: prometheus-data
emptyDir: { }
- name: prometheus-config
configMap:
name: prometheus-config
---
apiVersion: v1
kind: Service
metadata:
name: prometheus
labels:
name: prometheus
system: quarkus-super-heroes
spec:
ports:
- port: 9090
name: scrape
protocol: TCP
targetPort: 9090
selector:
name: prometheus
type: NodePort