mirror of https://github.com/prometheus/prometheus
Tiago Katcipis
9 years ago
2 changed files with 44 additions and 0 deletions
@ -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 |
@ -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 new issue