Skip to content

Commit ecda86c

Browse files
authored
Merge pull request microservices-demo#758 from microservices-demo/fix-rabbitmq-scrape
Add annotation to not scrape
2 parents 774574e + c77d444 commit ecda86c

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

deploy/kubernetes/manifests/rabbitmq-dep.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ spec:
1212
metadata:
1313
labels:
1414
name: rabbitmq
15+
annotations:
16+
prometheus.io/scrape: "false"
1517
spec:
1618
containers:
1719
- name: rabbitmq
18-
image: rabbitmq:3.6.8
20+
image: rabbitmq:3.6.8-management
1921
ports:
22+
- containerPort: 15672
23+
name: management
2024
- containerPort: 5672
25+
name: rabbitmq
2126
securityContext:
2227
capabilities:
2328
drop:
@@ -28,5 +33,10 @@ spec:
2833
- SETUID
2934
- DAC_OVERRIDE
3035
readOnlyRootFilesystem: true
36+
- name: rabbitmq-exporter
37+
image: kbudde/rabbitmq-exporter
38+
ports:
39+
- containerPort: 9090
40+
name: exporter
3141
nodeSelector:
32-
beta.kubernetes.io/os: linux
42+
beta.kubernetes.io/os: linux

deploy/kubernetes/manifests/rabbitmq-svc.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ spec:
1010
ports:
1111
# the port that this service should serve on
1212
- port: 5672
13+
name: rabbitmq
1314
targetPort: 5672
15+
- port: 9090
16+
name: exporter
17+
targetPort: exporter
18+
protocol: TCP
1419
selector:
1520
name: rabbitmq

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy