mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
Adding RabbitMQ example as mentioned on #1312
This commit is contained in:
parent
944b1f7e84
commit
bb4722d6b5
27
documentation/examples/contrib/kubernetes/rabbitmq/rc.yml
Normal file
27
documentation/examples/contrib/kubernetes/rabbitmq/rc.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
apiVersion: v1
|
||||
kind: ReplicationController
|
||||
metadata:
|
||||
name: rabbitmq
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
app: rabbitmq
|
||||
template:
|
||||
metadata:
|
||||
name: rabbitmq
|
||||
labels:
|
||||
app: rabbitmq
|
||||
spec:
|
||||
containers:
|
||||
- image: rabbitmq:3.5.4-management
|
||||
name: rabbitmq
|
||||
ports:
|
||||
- containerPort: 5672
|
||||
name: service
|
||||
- containerPort: 15672
|
||||
name: management
|
||||
- image: kbudde/rabbitmq-exporter
|
||||
name: rabbitmq-exporter
|
||||
ports:
|
||||
- containerPort: 9090
|
||||
name: exporter
|
17
documentation/examples/contrib/kubernetes/rabbitmq/svc.yml
Normal file
17
documentation/examples/contrib/kubernetes/rabbitmq/svc.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: rabbitmq
|
||||
labels:
|
||||
name: rabbitmq
|
||||
annotations:
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "9090"
|
||||
spec:
|
||||
ports:
|
||||
- port: 9090
|
||||
name: exporter
|
||||
targetPort: exporter
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: rabbitmq
|
Loading…
Reference in a new issue